1 |
commit: f8b3c40ff141c0101da07144168ba57a0115b8bc |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 11 00:58:46 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 11 00:59:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8b3c40f |
7 |
|
8 |
net-dns/avahi: version bump to 0.8 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-dns/avahi/Manifest | 1 + |
14 |
net-dns/avahi/avahi-0.8.ebuild | 222 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 223 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/avahi/Manifest b/net-dns/avahi/Manifest |
18 |
index 6bf6b289a81..8c49f959d60 100644 |
19 |
--- a/net-dns/avahi/Manifest |
20 |
+++ b/net-dns/avahi/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST avahi-0.7.tar.gz 940047 BLAKE2B 8299577bf27ee65fad5d743dbf94202b148a6fc86825cae303f94c44482eea07cf6570d970ca286e81a787d6a64598b7123f2ac17a259ddc50ef431b9c94b530 SHA512 61f656da7614d8cca1862180038f571db3474c84f05db4d3509f614cdbf8b1a1047661b7e24d63682d5b48ed1bfa1b08b3c9e6dbe9222bcd62d99bc168a11abe |
23 |
+DIST avahi-0.8.tar.gz 953319 BLAKE2B ddede1b8790ff3057ea5f4bb710e95578229e078a7abac83121e043017dda1ab3d971c723f920fdd4f3d98b88bd2cf21f9645bec1b7bbd2ea194cb399a5f5b46 SHA512 27bba9a551152dfc7e721f326042e7bfce55d227044a6cbaee04d6fb0e3f59c36e159c2b7a4dd42d1c955cdf37cc1c303e91991c08928bbded91d796e9a22abe |
24 |
|
25 |
diff --git a/net-dns/avahi/avahi-0.8.ebuild b/net-dns/avahi/avahi-0.8.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c09f0b1c463 |
28 |
--- /dev/null |
29 |
+++ b/net-dns/avahi/avahi-0.8.ebuild |
30 |
@@ -0,0 +1,222 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7} ) |
37 |
+PYTHON_REQ_USE="gdbm" |
38 |
+inherit autotools flag-o-matic multilib-minimal mono-env python-r1 systemd |
39 |
+ |
40 |
+DESCRIPTION="System which facilitates service discovery on a local network" |
41 |
+HOMEPAGE="http://avahi.org/" |
42 |
+SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
47 |
+IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt5 selinux systemd test" |
48 |
+ |
49 |
+REQUIRED_USE=" |
50 |
+ python? ( dbus gdbm ${PYTHON_REQUIRED_USE} ) |
51 |
+ mono? ( dbus ) |
52 |
+ howl-compat? ( dbus ) |
53 |
+ mdnsresponder-compat? ( dbus ) |
54 |
+ systemd? ( dbus ) |
55 |
+" |
56 |
+ |
57 |
+RESTRICT="!test? ( test )" |
58 |
+ |
59 |
+DEPEND=" |
60 |
+ dev-libs/libdaemon |
61 |
+ dev-libs/libevent:= |
62 |
+ dev-libs/expat |
63 |
+ dev-libs/glib:2[${MULTILIB_USEDEP}] |
64 |
+ gdbm? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] ) |
65 |
+ qt5? ( dev-qt/qtcore:5 ) |
66 |
+ gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] ) |
67 |
+ gtk3? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) |
68 |
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
69 |
+ kernel_linux? ( sys-libs/libcap ) |
70 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
71 |
+ mono? ( |
72 |
+ dev-lang/mono |
73 |
+ gtk? ( dev-dotnet/gtk-sharp:2 ) |
74 |
+ ) |
75 |
+ python? ( |
76 |
+ ${PYTHON_DEPS} |
77 |
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) |
78 |
+ introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] ) |
79 |
+ ) |
80 |
+ bookmarks? ( |
81 |
+ ${PYTHON_DEPS} |
82 |
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] |
83 |
+ ) |
84 |
+" |
85 |
+RDEPEND=" |
86 |
+ acct-user/avahi |
87 |
+ acct-group/avahi |
88 |
+ acct-group/netdev |
89 |
+ autoipd? ( |
90 |
+ acct-user/avahi-autoipd |
91 |
+ acct-group/avahi-autoipd |
92 |
+ ) |
93 |
+ ${DEPEND} |
94 |
+ howl-compat? ( !net-misc/howl ) |
95 |
+ mdnsresponder-compat? ( !net-misc/mDNSResponder ) |
96 |
+ selinux? ( sec-policy/selinux-avahi ) |
97 |
+" |
98 |
+BDEPEND=" |
99 |
+ dev-util/glib-utils |
100 |
+ doc? ( app-doc/doxygen ) |
101 |
+ app-doc/xmltoman |
102 |
+ dev-util/intltool |
103 |
+ virtual/pkgconfig[${MULTILIB_USEDEP}] |
104 |
+" |
105 |
+ |
106 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/avahi-qt5/qt-watch.h ) |
107 |
+ |
108 |
+# These patches do not apply cleanly but may need to be re-instated. |
109 |
+# I'll leave them commented out for now. |
110 |
+#PATCHES=( |
111 |
+# "${FILESDIR}/${PN}-0.7-qt5.patch" |
112 |
+# "${FILESDIR}/${PN}-0.7-CVE-2017-6519.patch" |
113 |
+# "${FILESDIR}/${PN}-0.7-remove-empty-avahi_discover.patch" |
114 |
+# "${FILESDIR}/${PN}-0.7-python3.patch" |
115 |
+# "${FILESDIR}/${PN}-0.7-python3-unittest.patch" |
116 |
+# "${FILESDIR}/${PN}-0.7-python3-gdbm.patch" |
117 |
+#) |
118 |
+ |
119 |
+pkg_setup() { |
120 |
+ use mono && mono-env_pkg_setup |
121 |
+ use python || use bookmarks && python_setup |
122 |
+} |
123 |
+ |
124 |
+src_prepare() { |
125 |
+ default |
126 |
+ |
127 |
+ if ! use ipv6; then |
128 |
+ sed -i \ |
129 |
+ -e "s/use-ipv6=yes/use-ipv6=no/" \ |
130 |
+ avahi-daemon/avahi-daemon.conf || die |
131 |
+ fi |
132 |
+ |
133 |
+ sed -i \ |
134 |
+ -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \ |
135 |
+ doxygen_to_devhelp.xsl || die |
136 |
+ |
137 |
+ eautoreconf |
138 |
+ |
139 |
+ # bundled manpages |
140 |
+ multilib_copy_sources |
141 |
+} |
142 |
+ |
143 |
+src_configure() { |
144 |
+ # those steps should be done once-per-ebuild rather than per-ABI |
145 |
+ use sh && replace-flags -O? -O0 |
146 |
+ |
147 |
+ multilib-minimal_src_configure |
148 |
+} |
149 |
+ |
150 |
+multilib_src_configure() { |
151 |
+ local myconf=( |
152 |
+ --disable-monodoc |
153 |
+ --disable-python-dbus |
154 |
+ --disable-qt3 |
155 |
+ --disable-qt4 |
156 |
+ --disable-static |
157 |
+ --enable-manpages |
158 |
+ --enable-glib |
159 |
+ --enable-gobject |
160 |
+ --enable-xmltoman |
161 |
+ --localstatedir="${EPREFIX}/var" |
162 |
+ --with-distro=gentoo |
163 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
164 |
+ $(use_enable dbus) |
165 |
+ $(use_enable gdbm) |
166 |
+ $(use_enable gtk) |
167 |
+ $(use_enable gtk3) |
168 |
+ $(use_enable howl-compat compat-howl) |
169 |
+ $(use_enable mdnsresponder-compat compat-libdns_sd) |
170 |
+ $(use_enable nls) |
171 |
+ $(multilib_native_use_enable autoipd) |
172 |
+ $(multilib_native_use_enable doc doxygen-doc) |
173 |
+ $(multilib_native_use_enable introspection) |
174 |
+ $(multilib_native_use_enable mono) |
175 |
+ $(multilib_native_use_enable python) |
176 |
+ $(multilib_native_use_enable test tests) |
177 |
+ ) |
178 |
+ |
179 |
+ if use python; then |
180 |
+ myconf+=( |
181 |
+ $(multilib_native_use_enable dbus python-dbus) |
182 |
+ $(multilib_native_use_enable introspection pygobject) |
183 |
+ ) |
184 |
+ fi |
185 |
+ |
186 |
+ if use mono; then |
187 |
+ myconf+=( $(multilib_native_use_enable doc monodoc) ) |
188 |
+ fi |
189 |
+ |
190 |
+ if ! multilib_is_native_abi; then |
191 |
+ myconf+=( |
192 |
+ # used by daemons only |
193 |
+ --disable-libdaemon |
194 |
+ --with-xml=none |
195 |
+ ) |
196 |
+ fi |
197 |
+ |
198 |
+ myconf+=( $(multilib_native_use_enable qt5) ) |
199 |
+ |
200 |
+ econf "${myconf[@]}" |
201 |
+} |
202 |
+ |
203 |
+multilib_src_compile() { |
204 |
+ emake |
205 |
+ |
206 |
+ multilib_is_native_abi && use doc && emake avahi.devhelp |
207 |
+} |
208 |
+ |
209 |
+multilib_src_install() { |
210 |
+ emake install DESTDIR="${D}" |
211 |
+ use bookmarks && use python && use dbus && use gtk || \ |
212 |
+ rm -f "${ED}"/usr/bin/avahi-bookmarks |
213 |
+ |
214 |
+ # https://github.com/lathiat/avahi/issues/28 |
215 |
+ use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc |
216 |
+ use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h |
217 |
+ |
218 |
+ if multilib_is_native_abi && use doc; then |
219 |
+ docinto html |
220 |
+ dodoc -r doxygen/html/. |
221 |
+ insinto /usr/share/devhelp/books/avahi |
222 |
+ doins avahi.devhelp |
223 |
+ fi |
224 |
+ |
225 |
+ # The build system creates an empty "/run" directory, so we clean it up here |
226 |
+ rmdir "${ED}"/run || die |
227 |
+} |
228 |
+ |
229 |
+multilib_src_install_all() { |
230 |
+ if use autoipd; then |
231 |
+ insinto /lib/rcscripts/net |
232 |
+ doins "${FILESDIR}"/autoipd.sh |
233 |
+ |
234 |
+ insinto /lib/netifrc/net |
235 |
+ newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh |
236 |
+ fi |
237 |
+ |
238 |
+ dodoc docs/{AUTHORS,NEWS,README,TODO} |
239 |
+ |
240 |
+ find "${ED}" -name '*.la' -type f -delete || die |
241 |
+} |
242 |
+ |
243 |
+pkg_postinst() { |
244 |
+ if use autoipd; then |
245 |
+ elog |
246 |
+ elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" |
247 |
+ elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" |
248 |
+ elog |
249 |
+ fi |
250 |
+ |
251 |
+ systemd_reenable avahi-daemon.service |
252 |
+} |