Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/avahi/
Date: Tue, 04 Aug 2020 11:51:35
Message-Id: 1596541886.975535c0511ab7f4efaf3f4f8431dddd583ad496.blueness@gentoo
1 commit: 975535c0511ab7f4efaf3f4f8431dddd583ad496
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 4 11:48:56 2020 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 4 11:51:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=975535c0
7
8 net-dns/avahi: remove older versions
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
12
13 net-dns/avahi/Manifest | 1 -
14 net-dns/avahi/avahi-0.7-r2.ebuild | 220 --------------------------------------
15 net-dns/avahi/avahi-0.7-r4.ebuild | 214 ------------------------------------
16 net-dns/avahi/avahi-0.7-r5.ebuild | 212 ------------------------------------
17 net-dns/avahi/metadata.xml | 6 +-
18 5 files changed, 2 insertions(+), 651 deletions(-)
19
20 diff --git a/net-dns/avahi/Manifest b/net-dns/avahi/Manifest
21 index 8c49f959d60..8827967c8d2 100644
22 --- a/net-dns/avahi/Manifest
23 +++ b/net-dns/avahi/Manifest
24 @@ -1,2 +1 @@
25 -DIST avahi-0.7.tar.gz 940047 BLAKE2B 8299577bf27ee65fad5d743dbf94202b148a6fc86825cae303f94c44482eea07cf6570d970ca286e81a787d6a64598b7123f2ac17a259ddc50ef431b9c94b530 SHA512 61f656da7614d8cca1862180038f571db3474c84f05db4d3509f614cdbf8b1a1047661b7e24d63682d5b48ed1bfa1b08b3c9e6dbe9222bcd62d99bc168a11abe
26 DIST avahi-0.8.tar.gz 953319 BLAKE2B ddede1b8790ff3057ea5f4bb710e95578229e078a7abac83121e043017dda1ab3d971c723f920fdd4f3d98b88bd2cf21f9645bec1b7bbd2ea194cb399a5f5b46 SHA512 27bba9a551152dfc7e721f326042e7bfce55d227044a6cbaee04d6fb0e3f59c36e159c2b7a4dd42d1c955cdf37cc1c303e91991c08928bbded91d796e9a22abe
27
28 diff --git a/net-dns/avahi/avahi-0.7-r2.ebuild b/net-dns/avahi/avahi-0.7-r2.ebuild
29 deleted file mode 100644
30 index a86a94cf5af..00000000000
31 --- a/net-dns/avahi/avahi-0.7-r2.ebuild
32 +++ /dev/null
33 @@ -1,220 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI="6"
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -PYTHON_REQ_USE="gdbm"
41 -
42 -inherit autotools eutils flag-o-matic ltprune multilib multilib-minimal mono-env python-r1 systemd user
43 -
44 -DESCRIPTION="System which facilitates service discovery on a local network"
45 -HOMEPAGE="http://avahi.org/"
46 -SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="LGPL-2.1"
49 -SLOT="0"
50 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
51 -IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt5 selinux test"
52 -RESTRICT="!test? ( test )"
53 -
54 -REQUIRED_USE="
55 - python? ( dbus gdbm ${PYTHON_REQUIRED_USE} )
56 - mono? ( dbus )
57 - howl-compat? ( dbus )
58 - mdnsresponder-compat? ( dbus )
59 -"
60 -
61 -COMMON_DEPEND="
62 - dev-libs/libdaemon
63 - dev-libs/expat
64 - dev-libs/glib:2[${MULTILIB_USEDEP}]
65 - gdbm? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] )
66 - qt5? ( dev-qt/qtcore:5 )
67 - gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
68 - gtk3? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
69 - dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
70 - kernel_linux? ( sys-libs/libcap )
71 - introspection? ( dev-libs/gobject-introspection:= )
72 - mono? (
73 - dev-lang/mono
74 - gtk? ( dev-dotnet/gtk-sharp:2 )
75 - )
76 - python? (
77 - ${PYTHON_DEPS}
78 - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
79 - introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )
80 - )
81 - bookmarks? (
82 - ${PYTHON_DEPS}
83 - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
84 - )
85 -"
86 -
87 -DEPEND="
88 - ${COMMON_DEPEND}
89 - dev-util/glib-utils
90 - doc? ( app-doc/doxygen )
91 - app-doc/xmltoman
92 - dev-util/intltool
93 - virtual/pkgconfig
94 -"
95 -
96 -RDEPEND="
97 - ${COMMON_DEPEND}
98 - howl-compat? ( !net-misc/howl )
99 - mdnsresponder-compat? ( !net-misc/mDNSResponder )
100 - selinux? ( sec-policy/selinux-avahi )
101 -"
102 -
103 -MULTILIB_WRAPPED_HEADERS=( /usr/include/avahi-qt5/qt-watch.h )
104 -
105 -PATCHES=(
106 - "${FILESDIR}/${P}-qt5.patch"
107 - "${FILESDIR}/${P}-CVE-2017-6519.patch"
108 -)
109 -
110 -pkg_preinst() {
111 - enewgroup netdev
112 - enewgroup avahi
113 - enewuser avahi -1 -1 -1 avahi
114 -
115 - if use autoipd; then
116 - enewgroup avahi-autoipd
117 - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd
118 - fi
119 -}
120 -
121 -pkg_setup() {
122 - use mono && mono-env_pkg_setup
123 -}
124 -
125 -src_prepare() {
126 - default
127 -
128 - if ! use ipv6; then
129 - sed -i \
130 - -e s/use-ipv6=yes/use-ipv6=no/ \
131 - avahi-daemon/avahi-daemon.conf || die
132 - fi
133 -
134 - sed -i\
135 - -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
136 - doxygen_to_devhelp.xsl || die
137 -
138 - # Prevent .pyc files in DESTDIR
139 - >py-compile
140 -
141 - eautoreconf
142 -
143 - # bundled manpages
144 - multilib_copy_sources
145 -}
146 -
147 -src_configure() {
148 - # those steps should be done once-per-ebuild rather than per-ABI
149 - use python && python_setup
150 -
151 - multilib-minimal_src_configure
152 -}
153 -
154 -multilib_src_configure() {
155 - local myconf=( --disable-static )
156 -
157 - if use python; then
158 - myconf+=(
159 - $(multilib_native_use_enable dbus python-dbus)
160 - $(multilib_native_use_enable introspection pygobject)
161 - )
162 - fi
163 -
164 - if use mono; then
165 - myconf+=( $(multilib_native_use_enable doc monodoc) )
166 - fi
167 -
168 - if ! multilib_is_native_abi; then
169 - myconf+=(
170 - # used by daemons only
171 - --disable-libdaemon
172 - --with-xml=none
173 - )
174 - fi
175 -
176 - myconf+=( $(multilib_native_use_enable qt5) )
177 -
178 - econf \
179 - --localstatedir="${EPREFIX}/var" \
180 - --with-distro=gentoo \
181 - --disable-python-dbus \
182 - --enable-manpages \
183 - --enable-xmltoman \
184 - --disable-monodoc \
185 - --enable-glib \
186 - --enable-gobject \
187 - $(multilib_native_use_enable test tests) \
188 - $(multilib_native_use_enable autoipd) \
189 - $(use_enable mdnsresponder-compat compat-libdns_sd) \
190 - $(use_enable howl-compat compat-howl) \
191 - $(multilib_native_use_enable doc doxygen-doc) \
192 - $(multilib_native_use_enable mono) \
193 - $(use_enable dbus) \
194 - $(multilib_native_use_enable python) \
195 - $(use_enable gtk) \
196 - $(use_enable gtk3) \
197 - $(use_enable nls) \
198 - $(multilib_native_use_enable introspection) \
199 - --disable-qt3 \
200 - --disable-qt4 \
201 - $(use_enable gdbm) \
202 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
203 - "${myconf[@]}"
204 -}
205 -
206 -multilib_src_compile() {
207 - emake
208 -
209 - multilib_is_native_abi && use doc && emake avahi.devhelp
210 -}
211 -
212 -multilib_src_install() {
213 - emake install DESTDIR="${D}"
214 - use bookmarks && use python && use dbus && use gtk || \
215 - rm -f "${ED}"/usr/bin/avahi-bookmarks
216 -
217 - # https://github.com/lathiat/avahi/issues/28
218 - use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc
219 - use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
220 -
221 - if multilib_is_native_abi && use doc; then
222 - docinto html
223 - dodoc -r doxygen/html/.
224 - insinto /usr/share/devhelp/books/avahi
225 - doins avahi.devhelp
226 - fi
227 -
228 - # The build system creates an empty "/run" directory, so we clean it up here
229 - rmdir "${ED}"/run
230 -}
231 -
232 -multilib_src_install_all() {
233 - if use autoipd; then
234 - insinto /lib/rcscripts/net
235 - doins "${FILESDIR}"/autoipd.sh
236 -
237 - insinto /lib/netifrc/net
238 - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh
239 - fi
240 -
241 - dodoc docs/{AUTHORS,NEWS,README,TODO}
242 -
243 - prune_libtool_files --all
244 -}
245 -
246 -pkg_postinst() {
247 - if use autoipd; then
248 - elog
249 - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
250 - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
251 - elog
252 - fi
253 -}
254
255 diff --git a/net-dns/avahi/avahi-0.7-r4.ebuild b/net-dns/avahi/avahi-0.7-r4.ebuild
256 deleted file mode 100644
257 index a67f33d8734..00000000000
258 --- a/net-dns/avahi/avahi-0.7-r4.ebuild
259 +++ /dev/null
260 @@ -1,214 +0,0 @@
261 -# Copyright 1999-2020 Gentoo Authors
262 -# Distributed under the terms of the GNU General Public License v2
263 -
264 -EAPI="7"
265 -
266 -PYTHON_COMPAT=( python2_7 )
267 -PYTHON_REQ_USE="gdbm"
268 -
269 -inherit autotools eutils flag-o-matic multilib multilib-minimal mono-env python-r1 systemd
270 -
271 -DESCRIPTION="System which facilitates service discovery on a local network"
272 -HOMEPAGE="http://avahi.org/"
273 -SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
274 -
275 -LICENSE="LGPL-2.1"
276 -SLOT="0"
277 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
278 -IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt5 selinux systemd test"
279 -RESTRICT="!test? ( test )"
280 -
281 -REQUIRED_USE="
282 - python? ( dbus gdbm ${PYTHON_REQUIRED_USE} )
283 - mono? ( dbus )
284 - howl-compat? ( dbus )
285 - mdnsresponder-compat? ( dbus )
286 - systemd? ( dbus )
287 -"
288 -
289 -DEPEND="
290 - dev-libs/libdaemon
291 - dev-libs/expat
292 - dev-libs/glib:2[${MULTILIB_USEDEP}]
293 - gdbm? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] )
294 - qt5? ( dev-qt/qtcore:5 )
295 - gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
296 - gtk3? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
297 - dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
298 - kernel_linux? ( sys-libs/libcap )
299 - introspection? ( dev-libs/gobject-introspection:= )
300 - mono? (
301 - dev-lang/mono
302 - gtk? ( dev-dotnet/gtk-sharp:2 )
303 - )
304 - python? (
305 - ${PYTHON_DEPS}
306 - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
307 - introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )
308 - )
309 - bookmarks? (
310 - ${PYTHON_DEPS}
311 - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
312 - )
313 -"
314 -RDEPEND="
315 - acct-user/avahi
316 - acct-group/avahi
317 - acct-group/netdev
318 - autoipd? (
319 - acct-user/avahi-autoipd
320 - acct-group/avahi-autoipd
321 - )
322 - ${DEPEND}
323 - howl-compat? ( !net-misc/howl )
324 - mdnsresponder-compat? ( !net-misc/mDNSResponder )
325 - selinux? ( sec-policy/selinux-avahi )
326 -"
327 -BDEPEND="
328 - dev-util/glib-utils
329 - doc? ( app-doc/doxygen )
330 - app-doc/xmltoman
331 - dev-util/intltool
332 - virtual/pkgconfig
333 -"
334 -
335 -MULTILIB_WRAPPED_HEADERS=( /usr/include/avahi-qt5/qt-watch.h )
336 -
337 -PATCHES=(
338 - "${FILESDIR}/${P}-qt5.patch"
339 - "${FILESDIR}/${P}-CVE-2017-6519.patch"
340 -)
341 -
342 -pkg_setup() {
343 - use mono && mono-env_pkg_setup
344 -}
345 -
346 -src_prepare() {
347 - default
348 -
349 - if ! use ipv6; then
350 - sed -i \
351 - -e s/use-ipv6=yes/use-ipv6=no/ \
352 - avahi-daemon/avahi-daemon.conf || die
353 - fi
354 -
355 - sed -i\
356 - -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
357 - doxygen_to_devhelp.xsl || die
358 -
359 - # Prevent .pyc files in DESTDIR
360 - >py-compile
361 -
362 - eautoreconf
363 -
364 - # bundled manpages
365 - multilib_copy_sources
366 -}
367 -
368 -src_configure() {
369 - # those steps should be done once-per-ebuild rather than per-ABI
370 - use python && python_setup
371 -
372 - multilib-minimal_src_configure
373 -}
374 -
375 -multilib_src_configure() {
376 - local myconf=( --disable-static )
377 -
378 - if use python; then
379 - myconf+=(
380 - $(multilib_native_use_enable dbus python-dbus)
381 - $(multilib_native_use_enable introspection pygobject)
382 - )
383 - fi
384 -
385 - if use mono; then
386 - myconf+=( $(multilib_native_use_enable doc monodoc) )
387 - fi
388 -
389 - if ! multilib_is_native_abi; then
390 - myconf+=(
391 - # used by daemons only
392 - --disable-libdaemon
393 - --with-xml=none
394 - )
395 - fi
396 -
397 - myconf+=( $(multilib_native_use_enable qt5) )
398 -
399 - econf \
400 - --localstatedir="${EPREFIX}/var" \
401 - --with-distro=gentoo \
402 - --disable-python-dbus \
403 - --enable-manpages \
404 - --enable-xmltoman \
405 - --disable-monodoc \
406 - --enable-glib \
407 - --enable-gobject \
408 - $(multilib_native_use_enable test tests) \
409 - $(multilib_native_use_enable autoipd) \
410 - $(use_enable mdnsresponder-compat compat-libdns_sd) \
411 - $(use_enable howl-compat compat-howl) \
412 - $(multilib_native_use_enable doc doxygen-doc) \
413 - $(multilib_native_use_enable mono) \
414 - $(use_enable dbus) \
415 - $(multilib_native_use_enable python) \
416 - $(use_enable gtk) \
417 - $(use_enable gtk3) \
418 - $(use_enable nls) \
419 - $(multilib_native_use_enable introspection) \
420 - --disable-qt3 \
421 - --disable-qt4 \
422 - $(use_enable gdbm) \
423 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
424 - "${myconf[@]}"
425 -}
426 -
427 -multilib_src_compile() {
428 - emake
429 -
430 - multilib_is_native_abi && use doc && emake avahi.devhelp
431 -}
432 -
433 -multilib_src_install() {
434 - emake install DESTDIR="${D}"
435 - use bookmarks && use python && use dbus && use gtk || \
436 - rm -f "${ED}"/usr/bin/avahi-bookmarks
437 -
438 - # https://github.com/lathiat/avahi/issues/28
439 - use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc
440 - use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
441 -
442 - if multilib_is_native_abi && use doc; then
443 - docinto html
444 - dodoc -r doxygen/html/.
445 - insinto /usr/share/devhelp/books/avahi
446 - doins avahi.devhelp
447 - fi
448 -
449 - # The build system creates an empty "/run" directory, so we clean it up here
450 - rmdir "${ED}"/run || die
451 -}
452 -
453 -multilib_src_install_all() {
454 - if use autoipd; then
455 - insinto /lib/rcscripts/net
456 - doins "${FILESDIR}"/autoipd.sh
457 -
458 - insinto /lib/netifrc/net
459 - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh
460 - fi
461 -
462 - dodoc docs/{AUTHORS,NEWS,README,TODO}
463 -
464 - find "${ED}" -name '*.la' -type f -delete || die
465 -}
466 -
467 -pkg_postinst() {
468 - if use autoipd; then
469 - elog
470 - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
471 - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
472 - elog
473 - fi
474 -}
475
476 diff --git a/net-dns/avahi/avahi-0.7-r5.ebuild b/net-dns/avahi/avahi-0.7-r5.ebuild
477 deleted file mode 100644
478 index e9e84e60c39..00000000000
479 --- a/net-dns/avahi/avahi-0.7-r5.ebuild
480 +++ /dev/null
481 @@ -1,212 +0,0 @@
482 -# Copyright 1999-2020 Gentoo Authors
483 -# Distributed under the terms of the GNU General Public License v2
484 -
485 -EAPI="7"
486 -
487 -PYTHON_COMPAT=( python3_{6,7} )
488 -PYTHON_REQ_USE="gdbm"
489 -inherit autotools flag-o-matic multilib-minimal mono-env python-r1 systemd
490 -
491 -DESCRIPTION="System which facilitates service discovery on a local network"
492 -HOMEPAGE="http://avahi.org/"
493 -SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
494 -
495 -LICENSE="LGPL-2.1"
496 -SLOT="0"
497 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
498 -IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt5 selinux systemd test"
499 -
500 -REQUIRED_USE="
501 - python? ( dbus gdbm ${PYTHON_REQUIRED_USE} )
502 - mono? ( dbus )
503 - howl-compat? ( dbus )
504 - mdnsresponder-compat? ( dbus )
505 - systemd? ( dbus )
506 -"
507 -
508 -RESTRICT="!test? ( test )"
509 -
510 -DEPEND="
511 - dev-libs/libdaemon
512 - dev-libs/expat
513 - dev-libs/glib:2[${MULTILIB_USEDEP}]
514 - gdbm? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] )
515 - qt5? ( dev-qt/qtcore:5 )
516 - gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
517 - gtk3? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
518 - dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
519 - kernel_linux? ( sys-libs/libcap )
520 - introspection? ( dev-libs/gobject-introspection:= )
521 - mono? (
522 - dev-lang/mono
523 - gtk? ( dev-dotnet/gtk-sharp:2 )
524 - )
525 - python? (
526 - ${PYTHON_DEPS}
527 - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
528 - introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )
529 - )
530 - bookmarks? (
531 - ${PYTHON_DEPS}
532 - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
533 - )
534 -"
535 -RDEPEND="
536 - acct-user/avahi
537 - acct-group/avahi
538 - acct-group/netdev
539 - autoipd? (
540 - acct-user/avahi-autoipd
541 - acct-group/avahi-autoipd
542 - )
543 - ${DEPEND}
544 - howl-compat? ( !net-misc/howl )
545 - mdnsresponder-compat? ( !net-misc/mDNSResponder )
546 - selinux? ( sec-policy/selinux-avahi )
547 -"
548 -BDEPEND="
549 - dev-util/glib-utils
550 - doc? ( app-doc/doxygen )
551 - app-doc/xmltoman
552 - dev-util/intltool
553 - virtual/pkgconfig
554 -"
555 -
556 -MULTILIB_WRAPPED_HEADERS=( /usr/include/avahi-qt5/qt-watch.h )
557 -
558 -PATCHES=(
559 - "${FILESDIR}/${P}-qt5.patch"
560 - "${FILESDIR}/${P}-CVE-2017-6519.patch"
561 - "${FILESDIR}/${P}-remove-empty-avahi_discover.patch"
562 - "${FILESDIR}/${P}-python3.patch"
563 - "${FILESDIR}/${P}-python3-unittest.patch"
564 - "${FILESDIR}/${P}-python3-gdbm.patch"
565 -)
566 -
567 -pkg_setup() {
568 - use mono && mono-env_pkg_setup
569 - use python || use bookmarks && python_setup
570 -}
571 -
572 -src_prepare() {
573 - default
574 -
575 - if ! use ipv6; then
576 - sed -i \
577 - -e "s/use-ipv6=yes/use-ipv6=no/" \
578 - avahi-daemon/avahi-daemon.conf || die
579 - fi
580 -
581 - sed -i \
582 - -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
583 - doxygen_to_devhelp.xsl || die
584 -
585 - eautoreconf
586 -
587 - # bundled manpages
588 - multilib_copy_sources
589 -}
590 -
591 -multilib_src_configure() {
592 - local myconf=(
593 - --disable-monodoc
594 - --disable-python-dbus
595 - --disable-qt3
596 - --disable-qt4
597 - --disable-static
598 - --enable-manpages
599 - --enable-glib
600 - --enable-gobject
601 - --enable-xmltoman
602 - --localstatedir="${EPREFIX}/var"
603 - --with-distro=gentoo
604 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
605 - $(use_enable dbus)
606 - $(use_enable gdbm)
607 - $(use_enable gtk)
608 - $(use_enable gtk3)
609 - $(use_enable howl-compat compat-howl)
610 - $(use_enable mdnsresponder-compat compat-libdns_sd)
611 - $(use_enable nls)
612 - $(multilib_native_use_enable autoipd)
613 - $(multilib_native_use_enable doc doxygen-doc)
614 - $(multilib_native_use_enable introspection)
615 - $(multilib_native_use_enable mono)
616 - $(multilib_native_use_enable python)
617 - $(multilib_native_use_enable test tests)
618 - )
619 -
620 - if use python; then
621 - myconf+=(
622 - $(multilib_native_use_enable dbus python-dbus)
623 - $(multilib_native_use_enable introspection pygobject)
624 - )
625 - fi
626 -
627 - if use mono; then
628 - myconf+=( $(multilib_native_use_enable doc monodoc) )
629 - fi
630 -
631 - if ! multilib_is_native_abi; then
632 - myconf+=(
633 - # used by daemons only
634 - --disable-libdaemon
635 - --with-xml=none
636 - )
637 - fi
638 -
639 - myconf+=( $(multilib_native_use_enable qt5) )
640 -
641 - econf "${myconf[@]}"
642 -}
643 -
644 -multilib_src_compile() {
645 - emake
646 -
647 - multilib_is_native_abi && use doc && emake avahi.devhelp
648 -}
649 -
650 -multilib_src_install() {
651 - emake install DESTDIR="${D}"
652 - use bookmarks && use python && use dbus && use gtk || \
653 - rm -f "${ED}"/usr/bin/avahi-bookmarks
654 -
655 - # https://github.com/lathiat/avahi/issues/28
656 - use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc
657 - use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
658 -
659 - if multilib_is_native_abi && use doc; then
660 - docinto html
661 - dodoc -r doxygen/html/.
662 - insinto /usr/share/devhelp/books/avahi
663 - doins avahi.devhelp
664 - fi
665 -
666 - # The build system creates an empty "/run" directory, so we clean it up here
667 - rmdir "${ED}"/run || die
668 -}
669 -
670 -multilib_src_install_all() {
671 - if use autoipd; then
672 - insinto /lib/rcscripts/net
673 - doins "${FILESDIR}"/autoipd.sh
674 -
675 - insinto /lib/netifrc/net
676 - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh
677 - fi
678 -
679 - dodoc docs/{AUTHORS,NEWS,README,TODO}
680 -
681 - find "${ED}" -name '*.la' -type f -delete || die
682 -}
683 -
684 -pkg_postinst() {
685 - if use autoipd; then
686 - elog
687 - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
688 - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
689 - elog
690 - fi
691 -
692 - systemd_reenable avahi-daemon.service
693 -}
694
695 diff --git a/net-dns/avahi/metadata.xml b/net-dns/avahi/metadata.xml
696 index 0832dd78f28..403d3fbd5a5 100644
697 --- a/net-dns/avahi/metadata.xml
698 +++ b/net-dns/avahi/metadata.xml
699 @@ -9,10 +9,8 @@
700 <flag name="autoipd">Build and install the IPv4LL (RFC3927) network address configuration daemon</flag>
701 <flag name="bookmarks">Install the avahi-bookmarks application (requires <pkg>dev-python/twisted</pkg>)</flag>
702 <flag name="howl-compat">Enable compat libraries for howl</flag>
703 - <flag name="gtk" restrict="&lt;net-dns/avahi-0.8-r2">Use gtk2 for the avahi utilities (overridden by USE=gtk3) and build the avahi-ui library</flag>
704 - <flag name="gtk3" restrict="&lt;net-dns/avahi-0.8-r2">Use gtk3 for the avahi utilities (overrides USE=gtk) and build the avahi-ui-gtk3 library</flag>
705 - <flag name="gtk2" restrict="&gt;=net-dns/avahi-0.8-r2">Use gtk2 for the avahi utilities (overridden by USE=gtk) and build the avahi-ui library</flag>
706 - <flag name="gtk" restrict="&gt;=net-dns/avahi-0.8-r2">Use gtk3 for the avahi utilities (overrides USE=gtk2) and build the avahi-ui-gtk3 library</flag>
707 + <flag name="gtk2">Use gtk2 for the avahi utilities (overridden by USE=gtk) and build the avahi-ui library</flag>
708 + <flag name="gtk">Use gtk3 for the avahi utilities (overrides USE=gtk2) and build the avahi-ui-gtk3 library</flag>
709 <flag name="mdnsresponder-compat">Enable compat libraries for mDNSResponder</flag>
710 </use>
711 <upstream>