1 |
commit: cb927f919b08c29f682c39b2448325205f802282 |
2 |
Author: Tobias Leupold <tobias.leupold <AT> gmx <DOT> de> |
3 |
AuthorDate: Sun Nov 5 14:55:55 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 9 17:58:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb927f91 |
7 |
|
8 |
app-misc/vcontrold: Daemon for comm with Viessmann Vito heatings |
9 |
|
10 |
Closes: https://bugs.gentoo.org/574964 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/6132 |
12 |
|
13 |
app-misc/vcontrold/Manifest | 1 + |
14 |
app-misc/vcontrold/files/vcontrold | 5 ++++ |
15 |
app-misc/vcontrold/metadata.xml | 28 +++++++++++++++++++ |
16 |
app-misc/vcontrold/vcontrold-0.98.5.ebuild | 43 ++++++++++++++++++++++++++++++ |
17 |
4 files changed, 77 insertions(+) |
18 |
|
19 |
diff --git a/app-misc/vcontrold/Manifest b/app-misc/vcontrold/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..7c116c62837 |
22 |
--- /dev/null |
23 |
+++ b/app-misc/vcontrold/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST vcontrold-0.98.5.tar.gz 86684 BLAKE2B 07ed2c932b9f1c03410cbd6c23cfbfb7bf1aeaff027f597fb6f05a6b61c647f229a75b5a87d893a66c6b8e917595083d193c5da8585c6b9546d12c5867ca1a1b SHA512 b94dbb09ffe274e0a0a0ac4948365ed3213f221dbc00ed2b2adec2ac5a632e293686d62a07575454b3d11b1b8e4e058625a067461996dd720c2f84066d57e60e |
26 |
|
27 |
diff --git a/app-misc/vcontrold/files/vcontrold b/app-misc/vcontrold/files/vcontrold |
28 |
new file mode 100644 |
29 |
index 00000000000..369dc6d8e64 |
30 |
--- /dev/null |
31 |
+++ b/app-misc/vcontrold/files/vcontrold |
32 |
@@ -0,0 +1,5 @@ |
33 |
+#!/sbin/openrc-run |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+command="/usr/sbin/vcontrold" |
38 |
|
39 |
diff --git a/app-misc/vcontrold/metadata.xml b/app-misc/vcontrold/metadata.xml |
40 |
new file mode 100644 |
41 |
index 00000000000..b718f1673eb |
42 |
--- /dev/null |
43 |
+++ b/app-misc/vcontrold/metadata.xml |
44 |
@@ -0,0 +1,28 @@ |
45 |
+<?xml version="1.0" encoding="UTF-8"?> |
46 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
47 |
+<pkgmetadata> |
48 |
+<maintainer type="person"> |
49 |
+ <email>tobias.leupold@×××.de</email> |
50 |
+ <name>Tobias Leupold</name> |
51 |
+</maintainer> |
52 |
+<maintainer type="project"> |
53 |
+ <email>proxy-maint@g.o</email> |
54 |
+ <name>Proxy Maintainers</name> |
55 |
+</maintainer> |
56 |
+<longdescription lang="en"> |
57 |
+ Vcontrold can be used for communication with Viessmann Vito heatings |
58 |
+ through their Optolink interface using an optical communication device |
59 |
+ (which can be built quite cheap and easily, cf. the homepage of the |
60 |
+ "OpenV" project). |
61 |
+</longdescription> |
62 |
+<use> |
63 |
+ <flag name="man">Build the manpages</flag> |
64 |
+ <flag name="vclient"> |
65 |
+ Build the vclient helper program to talk to vcontrold |
66 |
+ </flag> |
67 |
+ <flag name="vsim"> |
68 |
+ Build the vsim helper program (simulates the heating's answers, for |
69 |
+ development and debugging) |
70 |
+ </flag> |
71 |
+</use> |
72 |
+</pkgmetadata> |
73 |
|
74 |
diff --git a/app-misc/vcontrold/vcontrold-0.98.5.ebuild b/app-misc/vcontrold/vcontrold-0.98.5.ebuild |
75 |
new file mode 100644 |
76 |
index 00000000000..e5b4f78672d |
77 |
--- /dev/null |
78 |
+++ b/app-misc/vcontrold/vcontrold-0.98.5.ebuild |
79 |
@@ -0,0 +1,43 @@ |
80 |
+# Copyright 1999-2018 Gentoo Foundation |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+ |
83 |
+EAPI=6 |
84 |
+ |
85 |
+inherit cmake-utils |
86 |
+ |
87 |
+DESCRIPTION="Daemon for communication with Viessmann Vito heatings" |
88 |
+HOMEPAGE="https://github.com/openv/vcontrold/" |
89 |
+SRC_URI="https://github.com/openv/vcontrold/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
90 |
+ |
91 |
+LICENSE="GPL-3" |
92 |
+SLOT="0" |
93 |
+KEYWORDS="~amd64 ~arm ~x86" |
94 |
+IUSE="+man +vclient vsim" |
95 |
+ |
96 |
+RDEPEND="dev-libs/libxml2" |
97 |
+DEPEND="${RDEPEND} |
98 |
+ man? ( dev-python/docutils )" |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ sed "s/@VERSION@/${PV}/" "src/version.h.in" \ |
102 |
+ > "src/version.h" || die "Setting version failed" |
103 |
+ |
104 |
+ cmake-utils_src_prepare |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ local mycmakeargs=( |
109 |
+ -DMANPAGES="$(usex man)" |
110 |
+ -DVCLIENT="$(usex vclient)" |
111 |
+ -DVSIM="$(usex vsim)" |
112 |
+ ) |
113 |
+ |
114 |
+ cmake-utils_src_configure |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ cmake-utils_src_install |
119 |
+ doinitd "${FILESDIR}/vcontrold" |
120 |
+ insinto /etc/vcontrold/ |
121 |
+ doins -r xml |
122 |
+} |