Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/avahi: avahi-0.6.31-r4.ebuild ChangeLog
Date: Sun, 09 Feb 2014 00:48:09
Message-Id: 20140209004803.466F02004C@flycatcher.gentoo.org
1 vapier 14/02/09 00:48:03
2
3 Modified: ChangeLog
4 Added: avahi-0.6.31-r4.ebuild
5 Log:
6 Add patch from Debian to fix running on older kernels w/newer kernel headers #484212 by Fab.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.261 net-dns/avahi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.261&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.261&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?r1=1.260&r2=1.261
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v
20 retrieving revision 1.260
21 retrieving revision 1.261
22 diff -u -r1.260 -r1.261
23 --- ChangeLog 27 Jan 2014 13:37:36 -0000 1.260
24 +++ ChangeLog 9 Feb 2014 00:48:03 -0000 1.261
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-dns/avahi
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.260 2014/01/27 13:37:36 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.261 2014/02/09 00:48:03 vapier Exp $
30 +
31 +*avahi-0.6.31-r4 (09 Feb 2014)
32 +
33 + 09 Feb 2014; Mike Frysinger <vapier@g.o> +avahi-0.6.31-r4.ebuild,
34 + +files/avahi-0.6.31-so_reuseport-may-not-exist-in-running-kernel.patch:
35 + Add patch from Debian to fix running on older kernels w/newer kernel headers
36 + #484212 by Fab.
37
38 27 Jan 2014; Anthony G. Basile <blueness@g.o> avahi-0.6.31-r3.ebuild:
39 Use mono-env.eclass for USE=mono builds
40
41
42
43 1.1 net-dns/avahi/avahi-0.6.31-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/avahi-0.6.31-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/avahi-0.6.31-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: avahi-0.6.31-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.31-r4.ebuild,v 1.1 2014/02/09 00:48:03 vapier Exp $
53
54 EAPI="5"
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57 PYTHON_REQ_USE="gdbm"
58
59 WANT_AUTOMAKE=1.11
60
61 inherit autotools eutils flag-o-matic multilib mono-env python-r1 systemd user
62
63 DESCRIPTION="System which facilitates service discovery on a local network"
64 HOMEPAGE="http://avahi.org/"
65 SRC_URI="http://avahi.org/download/${P}.tar.gz"
66
67 LICENSE="LGPL-2.1"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-linux"
70 IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt4 test utils"
71
72 REQUIRED_USE="
73 utils? ( || ( gtk gtk3 ) )
74 python? ( dbus gdbm )
75 mono? ( dbus )
76 howl-compat? ( dbus )
77 mdnsresponder-compat? ( dbus )
78 "
79
80 COMMON_DEPEND="
81 dev-libs/libdaemon
82 dev-libs/expat
83 dev-libs/glib:2
84 gdbm? ( sys-libs/gdbm )
85 qt4? ( dev-qt/qtcore:4 )
86 gtk? ( x11-libs/gtk+:2 )
87 gtk3? ( x11-libs/gtk+:3 )
88 dbus? ( sys-apps/dbus )
89 kernel_linux? ( sys-libs/libcap )
90 introspection? ( dev-libs/gobject-introspection )
91 mono? (
92 dev-lang/mono
93 gtk? ( dev-dotnet/gtk-sharp )
94 )
95 python? (
96 ${PYTHON_DEPS}
97 gtk? ( dev-python/pygtk )
98 dbus? ( dev-python/dbus-python )
99 )
100 bookmarks? (
101 dev-python/twisted-core
102 dev-python/twisted-web
103 )
104 "
105
106 DEPEND="
107 ${COMMON_DEPEND}
108 dev-util/intltool
109 virtual/pkgconfig
110 doc? (
111 app-doc/doxygen
112 )
113 "
114
115 RDEPEND="
116 ${COMMON_DEPEND}
117 howl-compat? ( !net-misc/howl )
118 mdnsresponder-compat? ( !net-misc/mDNSResponder )
119 "
120
121 pkg_preinst() {
122 enewgroup netdev
123 enewgroup avahi
124 enewuser avahi -1 -1 -1 avahi
125
126 if use autoipd; then
127 enewgroup avahi-autoipd
128 enewuser avahi-autoipd -1 -1 -1 avahi-autoipd
129 fi
130 }
131
132 pkg_setup() {
133 use mono && mono-env_pkg_setup
134 }
135
136 src_prepare() {
137 if use ipv6; then
138 sed -i \
139 -e s/use-ipv6=no/use-ipv6=yes/ \
140 avahi-daemon/avahi-daemon.conf || die
141 fi
142
143 sed -i\
144 -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
145 doxygen_to_devhelp.xsl || die
146
147 # Make gtk utils optional
148 epatch "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch
149
150 # Fix init scripts for >=openrc-0.9.0, bug #383641
151 epatch "${FILESDIR}"/${PN}-0.6.x-openrc-0.9.x-init-scripts-fixes.patch
152
153 # install-exec-local -> install-exec-hook
154 epatch "${FILESDIR}"/${P}-install-exec-hook.patch
155
156 # Backport host-name-from-machine-id patch, bug #466134
157 epatch "${FILESDIR}"/${P}-host-name-from-machine-id.patch
158
159 # Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575
160 epatch "${FILESDIR}"/${P}-fix-install-avahi-discover.patch
161
162 epatch "${FILESDIR}"/${P}-so_reuseport-may-not-exist-in-running-kernel.patch
163
164 # Drop DEPRECATED flags, bug #384743
165 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED=1::g' avahi-ui/Makefile.am || die
166
167 # Fix references to Lennart's home directory, bug #466210
168 sed -i -e 's/\/home\/lennart\/tmp\/avahi//g' man/* || die
169
170 # Prevent .pyc files in DESTDIR
171 >py-compile
172
173 eautoreconf
174 }
175
176 src_configure() {
177 use sh && replace-flags -O? -O0
178
179 local myconf="--disable-static"
180
181 if use python; then
182 python_export_best
183 myconf+="
184 $(use_enable dbus python-dbus)
185 $(use_enable gtk pygtk)
186 "
187 fi
188
189 if use mono; then
190 myconf+=" $(use_enable doc monodoc)"
191 fi
192
193 # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
194 unset DISPLAY
195
196 econf \
197 --localstatedir="${EPREFIX}/var" \
198 --with-distro=gentoo \
199 --disable-python-dbus \
200 --disable-pygtk \
201 --disable-xmltoman \
202 --disable-monodoc \
203 --enable-glib \
204 --enable-gobject \
205 $(use_enable test tests) \
206 $(use_enable autoipd) \
207 $(use_enable mdnsresponder-compat compat-libdns_sd) \
208 $(use_enable howl-compat compat-howl) \
209 $(use_enable doc doxygen-doc) \
210 $(use_enable mono) \
211 $(use_enable dbus) \
212 $(use_enable python) \
213 $(use_enable gtk) \
214 $(use_enable gtk3) \
215 $(use_enable nls) \
216 $(use_enable introspection) \
217 $(use_enable utils gtk-utils) \
218 --disable-qt3 \
219 $(use_enable qt4) \
220 $(use_enable gdbm) \
221 $(systemd_with_unitdir) \
222 ${myconf}
223 }
224
225 src_compile() {
226 emake || die "emake failed"
227
228 use doc && { emake avahi.devhelp || die ; }
229 }
230
231 src_install() {
232 emake install DESTDIR="${D}" || die "make install failed"
233 use bookmarks && use python && use dbus && use gtk || \
234 rm -f "${ED}"/usr/bin/avahi-bookmarks
235
236 use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc
237 use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h
238
239 if use autoipd; then
240 insinto /$(get_libdir)/rcscripts/net
241 doins "${FILESDIR}"/autoipd.sh || die
242
243 insinto /$(get_libdir)/rc/net
244 newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die
245 fi
246
247 dodoc docs/{AUTHORS,NEWS,README,TODO} || die
248
249 if use doc; then
250 dohtml -r doxygen/html/. || die
251 insinto /usr/share/devhelp/books/avahi
252 doins avahi.devhelp || die
253 fi
254
255 find "${ED}" -name '*.la' -exec rm -f {} +
256 }
257
258 pkg_postinst() {
259 if use autoipd; then
260 elog
261 elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
262 elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
263 elog
264 fi
265 }