diff options
author | Sven Wegener <swegener@gentoo.org> | 2009-04-17 18:37:47 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2009-04-17 18:37:47 +0000 |
commit | e3c268c3945c6c4c472fe31cbceac5a2ab33be0c (patch) | |
tree | 16761e810bb8949d0ac0d10663c364812640f910 /net-dns | |
parent | Marked ~hppa too. (diff) | |
download | gentoo-2-e3c268c3945c6c4c472fe31cbceac5a2ab33be0c.tar.gz gentoo-2-e3c268c3945c6c4c472fe31cbceac5a2ab33be0c.tar.bz2 gentoo-2-e3c268c3945c6c4c472fe31cbceac5a2ab33be0c.zip |
Cleanup.
(Portage version: 2.2_rc30/cvs/Linux x86_64)
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/avahi/ChangeLog | 13 | ||||
-rw-r--r-- | net-dns/avahi/avahi-0.6.19-r2.ebuild | 191 | ||||
-rw-r--r-- | net-dns/avahi/avahi-0.6.22-r1.ebuild | 219 | ||||
-rw-r--r-- | net-dns/avahi/avahi-0.6.23.ebuild | 212 | ||||
-rw-r--r-- | net-dns/avahi/avahi-0.6.24-r1.ebuild | 213 | ||||
-rw-r--r-- | net-dns/avahi/avahi-0.6.24.ebuild | 211 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.1-no-ipv6.patch | 20 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.19-assert-security.patch | 23 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.19-ui-sharp-automake.patch | 15 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.19-ui-sharp-gtk.patch | 16 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.20-autoipd.patch | 13 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.22-gobject.patch | 44 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.22-vncviewer.patch | 16 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-start-after-netmount.patch | 31 | ||||
-rw-r--r-- | net-dns/avahi/files/avahi-vncviewer.patch | 16 |
15 files changed, 12 insertions, 1241 deletions
diff --git a/net-dns/avahi/ChangeLog b/net-dns/avahi/ChangeLog index 4d6d0df578c4..66788a0877d1 100644 --- a/net-dns/avahi/ChangeLog +++ b/net-dns/avahi/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-dns/avahi # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.166 2009/04/01 09:58:30 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.167 2009/04/17 18:37:46 swegener Exp $ + + 17 Apr 2009; Sven Wegener <swegener@gentoo.org> + -files/avahi-0.6.1-no-ipv6.patch, + -files/avahi-0.6.19-assert-security.patch, + -files/avahi-0.6.19-ui-sharp-automake.patch, + -files/avahi-0.6.19-ui-sharp-gtk.patch, -files/avahi-0.6.20-autoipd.patch, + -files/avahi-0.6.22-gobject.patch, -files/avahi-0.6.22-vncviewer.patch, + -files/avahi-start-after-netmount.patch, -files/avahi-vncviewer.patch, + -avahi-0.6.19-r2.ebuild, -avahi-0.6.22-r1.ebuild, -avahi-0.6.23.ebuild, + -avahi-0.6.24.ebuild, -avahi-0.6.24-r1.ebuild: + Cleanup. 01 Apr 2009; Sven Wegener <swegener@gentoo.org> files/autoipd-openrc.sh: Use absolute path to avahi-autoipd in openrc support script. diff --git a/net-dns/avahi/avahi-0.6.19-r2.ebuild b/net-dns/avahi/avahi-0.6.19-r2.ebuild deleted file mode 100644 index b569ef0f3132..000000000000 --- a/net-dns/avahi/avahi-0.6.19-r2.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.19-r2.ebuild,v 1.10 2008/12/14 15:15:48 loki_val Exp $ - -EAPI=1 - -WANT_AUTOMAKE="1.9" -WANT_AUTOCONF="none" - -inherit eutils mono python qt3 qt4 autotools multilib - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="http://avahi.org/" -SRC_URI="http://avahi.org/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha ~amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt3 qt4 autoipd kernel_linux test" - -RDEPEND=">=dev-libs/libdaemon-0.5 - dev-libs/expat - >=dev-libs/glib-2 - gdbm? ( sys-libs/gdbm ) - qt3? ( x11-libs/qt:3 ) - qt4? ( x11-libs/qt:4 ) - gtk? ( - >=x11-libs/gtk+-2.4.0 - >=gnome-base/libglade-2.4.0 - ) - dbus? ( - >=sys-apps/dbus-0.30 - python? ( - || ( - dev-python/dbus-python - ( - <sys-apps/dbus-0.90 - >=sys-apps/dbus-0.30 - ) - ) - ) - ) - mono? ( - >=dev-lang/mono-1.1.10 - gtk? ( >=dev-dotnet/gtk-sharp-2 ) - ) - howl-compat? ( !net-misc/howl ) - mdnsresponder-compat? ( !net-misc/mDNSResponder ) - python? ( - >=virtual/python-2.4 - gtk? ( >=dev-python/pygtk-2 ) - ) - bookmarks? ( - dev-python/twisted - dev-python/twisted-web - ) - kernel_linux? ( sys-libs/libcap ) - !net-misc/mDNSResponder" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - >=dev-util/pkgconfig-0.9.0 - doc? ( - app-doc/doxygen - mono? ( >=virtual/monodoc-1.1.8 ) - )" - -pkg_setup() { - if use python && ! built_with_use dev-lang/python gdbm - then - die "For python support you need dev-lang/python compiled with gdbm support!" - fi - - if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python - then - die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" - fi - - if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus - then - die "For *-compat or mono support you also need to enable the dbus USE flag!" - fi - - if use bookmarks && ! ( use python && use dbus && use gtk ) - then - die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" - fi -} - -pkg_preinst() { - enewgroup netdev - enewgroup avahi - enewuser avahi -1 -1 -1 avahi - - if use autoipd - then - enewgroup avahi-autoipd - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${PN}-0.6.1-no-ipv6.patch - epatch "${FILESDIR}"/${P}-ui-sharp-automake.patch - epatch "${FILESDIR}"/${P}-ui-sharp-gtk.patch - epatch "${FILESDIR}"/${P}-assert-security.patch - epatch "${FILESDIR}"/${PN}-0.6.20-autoipd.patch - epatch "${FILESDIR}"/avahi-start-after-netmount.patch - epatch "${FILESDIR}"/avahi-vncviewer.patch - - eautomake -} - -src_compile() { - local myconf="" - - if use python - then - use dbus && myconf="${myconf} --enable-python-dbus" - use gtk && myconf="${myconf} --enable-pygtk" - fi - - if use mono && use doc - then - myconf="${myconf} --enable-monodoc" - fi - - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module - unset DISPLAY - - econf \ - --localstatedir=/var \ - --with-distro=gentoo \ - --disable-python-dbus \ - --disable-pygtk \ - --disable-xmltoman \ - --disable-monodoc \ - --enable-glib \ - $(use_enable test tests) \ - $(use_enable autoipd) \ - $(use_enable mdnsresponder-compat compat-libdns_sd) \ - $(use_enable howl-compat compat-howl) \ - $(use_enable doc doxygen-doc) \ - $(use_enable mono) \ - $(use_enable dbus) \ - $(use_enable python) \ - $(use_enable gtk) \ - $(use_enable qt3) \ - $(use_enable qt4) \ - $(use_enable gdbm) \ - ${myconf} \ - || die "econf failed" - emake || die "emake failed" -} - -src_install() { - make install py_compile=true DESTDIR="${D}" || die "make install failed" - use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks - - use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h - - if use autoipd - then - insinto /$(get_libdir)/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - fi - - dodoc docs/{AUTHORS,README,TODO} -} - -pkg_postrm() { - use python && python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/avahi -} - -pkg_postinst() { - if use python; then - python_version - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi - fi - - if use autoipd - then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" - elog - fi -} diff --git a/net-dns/avahi/avahi-0.6.22-r1.ebuild b/net-dns/avahi/avahi-0.6.22-r1.ebuild deleted file mode 100644 index 18017ff2f5ac..000000000000 --- a/net-dns/avahi/avahi-0.6.22-r1.ebuild +++ /dev/null @@ -1,219 +0,0 @@ -# Copyright 2000-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.22-r1.ebuild,v 1.10 2008/12/14 15:15:48 loki_val Exp $ - -WANT_AUTOMAKE="1.9" -WANT_AUTOCONF="none" -EAPI="1" - -inherit eutils mono python multilib autotools - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="http://avahi.org/" -SRC_URI="http://avahi.org/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" -IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt3 qt4 autoipd kernel_linux test ipv6" - -RDEPEND=">=dev-libs/libdaemon-0.11-r1 - dev-libs/expat - >=dev-libs/glib-2 - gdbm? ( sys-libs/gdbm ) - qt3? ( x11-libs/qt:3 ) - qt4? ( - || ( - x11-libs/qt-core:4 - x11-libs/qt:4 - ) - ) - gtk? ( - >=x11-libs/gtk+-2.4.0 - >=gnome-base/libglade-2.4.0 - ) - dbus? ( - >=sys-apps/dbus-0.30 - python? ( - || ( - dev-python/dbus-python - ( - <sys-apps/dbus-0.90 - >=sys-apps/dbus-0.30 - ) - ) - ) - ) - mono? ( - >=dev-lang/mono-1.1.10 - gtk? ( >=dev-dotnet/gtk-sharp-2 ) - ) - howl-compat? ( !net-misc/howl ) - mdnsresponder-compat? ( !net-misc/mDNSResponder ) - python? ( - >=virtual/python-2.4 - gtk? ( >=dev-python/pygtk-2 ) - ) - bookmarks? ( - dev-python/twisted - dev-python/twisted-web - ) - kernel_linux? ( sys-libs/libcap ) - !net-misc/mDNSResponder" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - >=dev-util/pkgconfig-0.9.0 - doc? ( - app-doc/doxygen - mono? ( >=virtual/monodoc-1.1.8 ) - )" - -pkg_setup() { - if use python && ! built_with_use dev-lang/python gdbm - then - die "For python support you need dev-lang/python compiled with gdbm support!" - fi - - if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python - then - die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" - fi - - if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus - then - die "For *-compat or mono support you also need to enable the dbus USE flag!" - fi - - if use bookmarks && ! ( use python && use dbus && use gtk ) - then - die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" - fi - - if use python && ! use dbus && ! use gtk - then - die "For proper python support you also need the dbus and gtk USE flags!" - fi -} - -pkg_preinst() { - enewgroup netdev - enewgroup avahi - enewuser avahi -1 -1 -1 avahi - - if use autoipd - then - enewgroup avahi-autoipd - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-vncviewer.patch - epatch "${FILESDIR}"/${P}-gobject.patch - - eautomake - - use ipv6 && sed -i -e s/use-ipv6=no/use-ipv6=yes/ avahi-daemon/avahi-daemon.conf - - sed -i -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" doxygen_to_devhelp.xsl -} - -src_compile() { - local myconf="" - - if use python - then - use dbus && myconf="${myconf} --enable-python-dbus" - use gtk && myconf="${myconf} --enable-pygtk" - fi - - if use mono && use doc - then - myconf="${myconf} --enable-monodoc" - fi - - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module - unset DISPLAY - - econf \ - --localstatedir=/var \ - --with-distro=gentoo \ - --disable-python-dbus \ - --disable-pygtk \ - --disable-xmltoman \ - --disable-monodoc \ - --enable-glib \ - $(use_enable test tests) \ - $(use_enable autoipd) \ - $(use_enable mdnsresponder-compat compat-libdns_sd) \ - $(use_enable howl-compat compat-howl) \ - $(use_enable doc doxygen-doc) \ - $(use_enable mono) \ - $(use_enable dbus) \ - $(use_enable python) \ - $(use_enable gtk) \ - $(use_enable qt3) \ - $(use_enable qt4) \ - $(use_enable gdbm) \ - ${myconf} \ - || die "econf failed" - emake || die "emake failed" - - use doc && emake avahi.devhelp -} - -src_install() { - emake install py_compile=true DESTDIR="${D}" || die "make install failed" - use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks - - use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h - - if use autoipd - then - insinto /$(get_libdir)/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - - insinto /$(get_libdir)/rc/net - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh - fi - - dodoc docs/{AUTHORS,README,TODO} - - if use doc - then - dohtml -r doxygen/html/. - insinto /usr/share/devhelp/books/avahi - doins avahi.devhelp - fi -} - -pkg_postrm() { - use python && python_mod_cleanup -} - -pkg_postinst() { - if use python; then - python_version - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi - fi - - if use autoipd - then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" - elog - fi - - if use dbus - then - elog - elog "If this is your first install of avahi please reload your dbus config" - elog "with /etc/init.d/dbus reload before starting avahi-daemon!" - elog - fi -} diff --git a/net-dns/avahi/avahi-0.6.23.ebuild b/net-dns/avahi/avahi-0.6.23.ebuild deleted file mode 100644 index 5ab13b437a24..000000000000 --- a/net-dns/avahi/avahi-0.6.23.ebuild +++ /dev/null @@ -1,212 +0,0 @@ -# Copyright 2000-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.23.ebuild,v 1.2 2008/12/14 15:15:48 loki_val Exp $ - -EAPI="1" - -inherit eutils mono python multilib - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="http://avahi.org/" -SRC_URI="http://avahi.org/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt3 qt4 autoipd kernel_linux test ipv6" - -RDEPEND=">=dev-libs/libdaemon-0.11-r1 - dev-libs/expat - >=dev-libs/glib-2 - gdbm? ( sys-libs/gdbm ) - qt3? ( x11-libs/qt:3 ) - qt4? ( - || ( - x11-libs/qt-core:4 - x11-libs/qt:4 - ) - ) - gtk? ( - >=x11-libs/gtk+-2.4.0 - >=gnome-base/libglade-2.4.0 - ) - dbus? ( - >=sys-apps/dbus-0.30 - python? ( - || ( - dev-python/dbus-python - ( - <sys-apps/dbus-0.90 - >=sys-apps/dbus-0.30 - ) - ) - ) - ) - mono? ( - >=dev-lang/mono-1.1.10 - gtk? ( >=dev-dotnet/gtk-sharp-2 ) - ) - howl-compat? ( !net-misc/howl ) - mdnsresponder-compat? ( !net-misc/mDNSResponder ) - python? ( - >=virtual/python-2.4 - gtk? ( >=dev-python/pygtk-2 ) - ) - bookmarks? ( - dev-python/twisted - dev-python/twisted-web - ) - kernel_linux? ( sys-libs/libcap ) - !net-misc/mDNSResponder" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - >=dev-util/pkgconfig-0.9.0 - doc? ( - app-doc/doxygen - mono? ( >=virtual/monodoc-1.1.8 ) - )" - -pkg_setup() { - if use python && ! built_with_use dev-lang/python gdbm - then - die "For python support you need dev-lang/python compiled with gdbm support!" - fi - - if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python - then - die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" - fi - - if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus - then - die "For *-compat or mono support you also need to enable the dbus USE flag!" - fi - - if use bookmarks && ! ( use python && use dbus && use gtk ) - then - die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" - fi - - if use python && ! use dbus && ! use gtk - then - die "For proper python support you also need the dbus and gtk USE flags!" - fi -} - -pkg_preinst() { - enewgroup netdev - enewgroup avahi - enewuser avahi -1 -1 -1 avahi - - if use autoipd - then - enewgroup avahi-autoipd - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - use ipv6 && sed -i -e s/use-ipv6=no/use-ipv6=yes/ avahi-daemon/avahi-daemon.conf - - sed -i -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" doxygen_to_devhelp.xsl -} - -src_compile() { - local myconf="" - - if use python - then - use dbus && myconf="${myconf} --enable-python-dbus" - use gtk && myconf="${myconf} --enable-pygtk" - fi - - if use mono && use doc - then - myconf="${myconf} --enable-monodoc" - fi - - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module - unset DISPLAY - - econf \ - --localstatedir=/var \ - --with-distro=gentoo \ - --disable-python-dbus \ - --disable-pygtk \ - --disable-xmltoman \ - --disable-monodoc \ - --enable-glib \ - $(use_enable test tests) \ - $(use_enable autoipd) \ - $(use_enable mdnsresponder-compat compat-libdns_sd) \ - $(use_enable howl-compat compat-howl) \ - $(use_enable doc doxygen-doc) \ - $(use_enable mono) \ - $(use_enable dbus) \ - $(use_enable python) \ - $(use_enable gtk) \ - $(use_enable qt3) \ - $(use_enable qt4) \ - $(use_enable gdbm) \ - ${myconf} \ - || die "econf failed" - emake || die "emake failed" - - use doc && emake avahi.devhelp -} - -src_install() { - emake install py_compile=true DESTDIR="${D}" || die "make install failed" - use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks - - use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h - - if use autoipd - then - insinto /$(get_libdir)/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - - insinto /$(get_libdir)/rc/net - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh - fi - - dodoc docs/{AUTHORS,README,TODO} - - if use doc - then - dohtml -r doxygen/html/. - insinto /usr/share/devhelp/books/avahi - doins avahi.devhelp - fi -} - -pkg_postrm() { - use python && python_mod_cleanup -} - -pkg_postinst() { - if use python; then - python_version - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi - fi - - if use autoipd - then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" - elog - fi - - if use dbus - then - elog - elog "If this is your first install of avahi please reload your dbus config" - elog "with /etc/init.d/dbus reload before starting avahi-daemon!" - elog - fi -} diff --git a/net-dns/avahi/avahi-0.6.24-r1.ebuild b/net-dns/avahi/avahi-0.6.24-r1.ebuild deleted file mode 100644 index 630c1cb8a0b1..000000000000 --- a/net-dns/avahi/avahi-0.6.24-r1.ebuild +++ /dev/null @@ -1,213 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.24-r1.ebuild,v 1.2 2009/03/06 23:04:33 swegener Exp $ - -EAPI="1" - -inherit eutils mono python multilib - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="http://avahi.org/" -SRC_URI="http://avahi.org/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt3 qt4 autoipd kernel_linux test ipv6" - -RDEPEND=">=dev-libs/libdaemon-0.11-r1 - dev-libs/expat - >=dev-libs/glib-2 - gdbm? ( sys-libs/gdbm ) - qt3? ( x11-libs/qt:3 ) - qt4? ( - || ( - x11-libs/qt-core:4 - x11-libs/qt:4 - ) - ) - gtk? ( - >=x11-libs/gtk+-2.4.0 - >=gnome-base/libglade-2.4.0 - ) - dbus? ( - >=sys-apps/dbus-0.30 - python? ( - || ( - dev-python/dbus-python - ( - <sys-apps/dbus-0.90 - >=sys-apps/dbus-0.30 - ) - ) - ) - ) - mono? ( - >=dev-lang/mono-1.1.10 - gtk? ( >=dev-dotnet/gtk-sharp-2 ) - ) - howl-compat? ( !net-misc/howl ) - mdnsresponder-compat? ( !net-misc/mDNSResponder ) - python? ( - >=virtual/python-2.4 - gtk? ( >=dev-python/pygtk-2 ) - ) - bookmarks? ( - dev-python/twisted - dev-python/twisted-web - ) - kernel_linux? ( sys-libs/libcap )" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - >=dev-util/pkgconfig-0.9.0 - doc? ( - app-doc/doxygen - mono? ( >=virtual/monodoc-1.1.8 ) - )" - -pkg_setup() { - if use python && ! built_with_use dev-lang/python gdbm - then - die "For python support you need dev-lang/python compiled with gdbm support!" - fi - - if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python - then - die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" - fi - - if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus - then - die "For *-compat or mono support you also need to enable the dbus USE flag!" - fi - - if use bookmarks && ! ( use python && use dbus && use gtk ) - then - die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" - fi - - if use python && ! use dbus && ! use gtk - then - die "For proper python support you also need the dbus and gtk USE flags!" - fi -} - -pkg_preinst() { - enewgroup netdev - enewgroup avahi - enewuser avahi -1 -1 -1 avahi - - if use autoipd - then - enewgroup avahi-autoipd - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - use ipv6 && sed -i -e s/use-ipv6=no/use-ipv6=yes/ avahi-daemon/avahi-daemon.conf - - sed -i -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" doxygen_to_devhelp.xsl - - epatch "${FILESDIR}"/avahi-0.6.24-CVE-2009-0758.patch -} - -src_compile() { - local myconf="" - - if use python - then - use dbus && myconf="${myconf} --enable-python-dbus" - use gtk && myconf="${myconf} --enable-pygtk" - fi - - if use mono && use doc - then - myconf="${myconf} --enable-monodoc" - fi - - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module - unset DISPLAY - - econf \ - --localstatedir=/var \ - --with-distro=gentoo \ - --disable-python-dbus \ - --disable-pygtk \ - --disable-xmltoman \ - --disable-monodoc \ - --enable-glib \ - $(use_enable test tests) \ - $(use_enable autoipd) \ - $(use_enable mdnsresponder-compat compat-libdns_sd) \ - $(use_enable howl-compat compat-howl) \ - $(use_enable doc doxygen-doc) \ - $(use_enable mono) \ - $(use_enable dbus) \ - $(use_enable python) \ - $(use_enable gtk) \ - $(use_enable qt3) \ - $(use_enable qt4) \ - $(use_enable gdbm) \ - ${myconf} \ - || die "econf failed" - emake || die "emake failed" - - use doc && emake avahi.devhelp -} - -src_install() { - emake install py_compile=true DESTDIR="${D}" || die "make install failed" - use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks - - use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h - - if use autoipd - then - insinto /$(get_libdir)/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - - insinto /$(get_libdir)/rc/net - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh - fi - - dodoc docs/{AUTHORS,README,TODO} - - if use doc - then - dohtml -r doxygen/html/. - insinto /usr/share/devhelp/books/avahi - doins avahi.devhelp - fi -} - -pkg_postrm() { - use python && python_mod_cleanup -} - -pkg_postinst() { - if use python; then - python_version - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi - fi - - if use autoipd - then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" - elog - fi - - if use dbus - then - elog - elog "If this is your first install of avahi please reload your dbus config" - elog "with /etc/init.d/dbus reload before starting avahi-daemon!" - elog - fi -} diff --git a/net-dns/avahi/avahi-0.6.24.ebuild b/net-dns/avahi/avahi-0.6.24.ebuild deleted file mode 100644 index ebcc7cac642a..000000000000 --- a/net-dns/avahi/avahi-0.6.24.ebuild +++ /dev/null @@ -1,211 +0,0 @@ -# Copyright 2000-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.24.ebuild,v 1.8 2009/03/05 21:13:27 swegener Exp $ - -EAPI="1" - -inherit eutils mono python multilib - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="http://avahi.org/" -SRC_URI="http://avahi.org/download/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" -IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt3 qt4 autoipd kernel_linux test ipv6" - -RDEPEND=">=dev-libs/libdaemon-0.11-r1 - dev-libs/expat - >=dev-libs/glib-2 - gdbm? ( sys-libs/gdbm ) - qt3? ( x11-libs/qt:3 ) - qt4? ( - || ( - x11-libs/qt-core:4 - x11-libs/qt:4 - ) - ) - gtk? ( - >=x11-libs/gtk+-2.4.0 - >=gnome-base/libglade-2.4.0 - ) - dbus? ( - >=sys-apps/dbus-0.30 - python? ( - || ( - dev-python/dbus-python - ( - <sys-apps/dbus-0.90 - >=sys-apps/dbus-0.30 - ) - ) - ) - ) - mono? ( - >=dev-lang/mono-1.1.10 - gtk? ( >=dev-dotnet/gtk-sharp-2 ) - ) - howl-compat? ( !net-misc/howl ) - mdnsresponder-compat? ( !net-misc/mDNSResponder ) - python? ( - >=virtual/python-2.4 - gtk? ( >=dev-python/pygtk-2 ) - ) - bookmarks? ( - dev-python/twisted - dev-python/twisted-web - ) - kernel_linux? ( sys-libs/libcap )" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - >=dev-util/pkgconfig-0.9.0 - doc? ( - app-doc/doxygen - mono? ( >=virtual/monodoc-1.1.8 ) - )" - -pkg_setup() { - if use python && ! built_with_use dev-lang/python gdbm - then - die "For python support you need dev-lang/python compiled with gdbm support!" - fi - - if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python - then - die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" - fi - - if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus - then - die "For *-compat or mono support you also need to enable the dbus USE flag!" - fi - - if use bookmarks && ! ( use python && use dbus && use gtk ) - then - die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" - fi - - if use python && ! use dbus && ! use gtk - then - die "For proper python support you also need the dbus and gtk USE flags!" - fi -} - -pkg_preinst() { - enewgroup netdev - enewgroup avahi - enewuser avahi -1 -1 -1 avahi - - if use autoipd - then - enewgroup avahi-autoipd - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - use ipv6 && sed -i -e s/use-ipv6=no/use-ipv6=yes/ avahi-daemon/avahi-daemon.conf - - sed -i -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" doxygen_to_devhelp.xsl -} - -src_compile() { - local myconf="" - - if use python - then - use dbus && myconf="${myconf} --enable-python-dbus" - use gtk && myconf="${myconf} --enable-pygtk" - fi - - if use mono && use doc - then - myconf="${myconf} --enable-monodoc" - fi - - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module - unset DISPLAY - - econf \ - --localstatedir=/var \ - --with-distro=gentoo \ - --disable-python-dbus \ - --disable-pygtk \ - --disable-xmltoman \ - --disable-monodoc \ - --enable-glib \ - $(use_enable test tests) \ - $(use_enable autoipd) \ - $(use_enable mdnsresponder-compat compat-libdns_sd) \ - $(use_enable howl-compat compat-howl) \ - $(use_enable doc doxygen-doc) \ - $(use_enable mono) \ - $(use_enable dbus) \ - $(use_enable python) \ - $(use_enable gtk) \ - $(use_enable qt3) \ - $(use_enable qt4) \ - $(use_enable gdbm) \ - ${myconf} \ - || die "econf failed" - emake || die "emake failed" - - use doc && emake avahi.devhelp -} - -src_install() { - emake install py_compile=true DESTDIR="${D}" || die "make install failed" - use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks - - use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h - - if use autoipd - then - insinto /$(get_libdir)/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - - insinto /$(get_libdir)/rc/net - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh - fi - - dodoc docs/{AUTHORS,README,TODO} - - if use doc - then - dohtml -r doxygen/html/. - insinto /usr/share/devhelp/books/avahi - doins avahi.devhelp - fi -} - -pkg_postrm() { - use python && python_mod_cleanup -} - -pkg_postinst() { - if use python; then - python_version - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi - fi - - if use autoipd - then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!" - elog - fi - - if use dbus - then - elog - elog "If this is your first install of avahi please reload your dbus config" - elog "with /etc/init.d/dbus reload before starting avahi-daemon!" - elog - fi -} diff --git a/net-dns/avahi/files/avahi-0.6.1-no-ipv6.patch b/net-dns/avahi/files/avahi-0.6.1-no-ipv6.patch deleted file mode 100644 index 85d78207604a..000000000000 --- a/net-dns/avahi/files/avahi-0.6.1-no-ipv6.patch +++ /dev/null @@ -1,20 +0,0 @@ -uClibc systems dont define IPV6_V6ONLY when USE=-ipv6 - ---- avahi-core/socket.c -+++ avahi-core/socket.c -@@ -360,6 +360,7 @@ - } - - int avahi_open_socket_ipv6(int no_reuse) { -+#ifdef IPV6_V6ONLY - struct sockaddr_in6 sa, local; - int fd = -1, yes, r; - int ttl; -@@ -425,6 +426,7 @@ - fail: - if (fd >= 0) - close(fd); -+#endif - - return -1; - } diff --git a/net-dns/avahi/files/avahi-0.6.19-assert-security.patch b/net-dns/avahi/files/avahi-0.6.19-assert-security.patch deleted file mode 100644 index 596245ecbe31..000000000000 --- a/net-dns/avahi/files/avahi-0.6.19-assert-security.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: trunk/avahi-daemon/dbus-util.c -=================================================================== ---- trunk/avahi-daemon/dbus-util.c (revision 1357) -+++ trunk/avahi-daemon/dbus-util.c (revision 1482) -@@ -345,4 +345,7 @@ - n = 0; - dbus_message_iter_get_fixed_array(&sub2, &k, &n); -+ -+ if (!k) -+ k = (const uint8_t*) ""; - - strlst = avahi_string_list_add_arbitrary(strlst, k, n); -Index: trunk/avahi-common/strlst.c -=================================================================== ---- trunk/avahi-common/strlst.c (revision 1050) -+++ trunk/avahi-common/strlst.c (revision 1482) -@@ -52,5 +52,5 @@ - AvahiStringList *n; - -- assert(text); -+ assert(size == 0 || text); - - if (!(n = avahi_string_list_add_anonymous(l, size))) diff --git a/net-dns/avahi/files/avahi-0.6.19-ui-sharp-automake.patch b/net-dns/avahi/files/avahi-0.6.19-ui-sharp-automake.patch deleted file mode 100644 index a99cc2ed2a80..000000000000 --- a/net-dns/avahi/files/avahi-0.6.19-ui-sharp-automake.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: trunk/avahi-ui-sharp/Makefile.am -=================================================================== ---- trunk/avahi-ui-sharp/Makefile.am (revision 1478) -+++ trunk/avahi-ui-sharp/Makefile.am (revision 1480) -@@ -39,8 +39,8 @@ - $(ASSEMBLY).config: $(ASSEMBLY).config.in - $(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@ - --zssh.exe: $(srcdir)/zssh.cs -- mcs -out:$@ $^ -r:./avahi-ui-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix -+zssh.exe: $(srcdir)/zssh.cs $(ASSEMBLY) -+ mcs -out:$@ $(srcdir)/zssh.cs -r:./avahi-ui-sharp.dll -r:../avahi-sharp/avahi-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix - - if HAVE_MONO - if HAVE_DBUS diff --git a/net-dns/avahi/files/avahi-0.6.19-ui-sharp-gtk.patch b/net-dns/avahi/files/avahi-0.6.19-ui-sharp-gtk.patch deleted file mode 100644 index 8f3d261e6262..000000000000 --- a/net-dns/avahi/files/avahi-0.6.19-ui-sharp-gtk.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -Nur avahi-0.6.19.orig/avahi-ui-sharp/Makefile.am avahi-0.6.19/avahi-ui-sharp/Makefile.am ---- avahi-0.6.19.orig/avahi-ui-sharp/Makefile.am 2007-06-29 17:46:50.068591000 +0000 -+++ avahi-0.6.19/avahi-ui-sharp/Makefile.am 2007-06-29 17:48:32.023145178 +0000 -@@ -44,6 +44,7 @@ - - if HAVE_MONO - if HAVE_DBUS -+if HAVE_GTK - all: $(ASSEMBLY) $(ASSEMBLY).config zssh.exe - - if HAVE_MONODOC -@@ -68,3 +69,4 @@ - - endif - endif -+endif diff --git a/net-dns/avahi/files/avahi-0.6.20-autoipd.patch b/net-dns/avahi/files/avahi-0.6.20-autoipd.patch deleted file mode 100644 index 9e517575223b..000000000000 --- a/net-dns/avahi/files/avahi-0.6.20-autoipd.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: trunk/avahi-autoipd/main.c -=================================================================== ---- trunk/avahi-autoipd/main.c (revision 1502) -+++ trunk/avahi-autoipd/main.c (revision 1503) -@@ -510,7 +510,7 @@ - sa.sll_halen = ETHER_ADDRLEN; - memset(sa.sll_addr, 0xFF, ETHER_ADDRLEN); - -- if (sendto(fd, packet, packet_len, 0, (struct sockaddr*) &sa, sizeof(sa)) < 0) { -+ if (sendto(fd, packet->ether_payload, packet_len, 0, (struct sockaddr*) &sa, sizeof(sa)) < 0) { - daemon_log(LOG_ERR, "sendto() failed: %s", strerror(errno)); - return -1; - } diff --git a/net-dns/avahi/files/avahi-0.6.22-gobject.patch b/net-dns/avahi/files/avahi-0.6.22-gobject.patch deleted file mode 100644 index 2546ee1c7ddf..000000000000 --- a/net-dns/avahi/files/avahi-0.6.22-gobject.patch +++ /dev/null @@ -1,44 +0,0 @@ -build avahi-gobject only when avahi-client is also built - -(modified to only patch the makefiles) - -Index: trunk/avahi-gobject/Makefile.am -=================================================================== ---- trunk/avahi-gobject/Makefile.am (revision 1669) -+++ trunk/avahi-gobject/Makefile.am (revision 1670) -@@ -23,6 +23,7 @@ - AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' - - if HAVE_GOBJECT -+if HAVE_DBUS - - avahigobjectincludedir=$(includedir)/avahi-gobject - -@@ -109,6 +110,7 @@ - $< > $@ - - endif -+endif - - indent: - indent -brf -nbbo -nbc -ip0 -cs -nbfde -npsl -br -brs -bap -i4 -bs -cdw -ce -npcs -hnl -cli4 -nut -ci8 ga-*.[ch] -Index: trunk/Makefile.am -=================================================================== ---- trunk/Makefile.am (revision 1669) -+++ trunk/Makefile.am (revision 1670) -@@ -112,6 +112,7 @@ - $(srcdir)/avahi-glib/glib-malloc.h - - if HAVE_GOBJECT -+if HAVE_DBUS - DX_INPUT += \ - $(srcdir)/avahi-gobject/ga-client.h \ - $(srcdir)/avahi-gobject/ga-entry-group.h \ -@@ -122,6 +123,7 @@ - $(srcdir)/avahi-gobject/ga-service-resolver.h - endif - endif -+endif - - if HAVE_DBUS - DX_INPUT += \ diff --git a/net-dns/avahi/files/avahi-0.6.22-vncviewer.patch b/net-dns/avahi/files/avahi-0.6.22-vncviewer.patch deleted file mode 100644 index 3a47e79ff7f2..000000000000 --- a/net-dns/avahi/files/avahi-0.6.22-vncviewer.patch +++ /dev/null @@ -1,16 +0,0 @@ -xvncviewer is an alternative on debian. -vncviewer is what the vnc distribution and we use. - ---- avahi-0.6.22/avahi-ui/bssh.c -+++ avahi-0.6.22/avahi-ui/bssh.c -@@ -86,8 +86,8 @@ - - gtk_widget_destroy(d); - -- g_print("xvncviewer %s\n", p); -- execlp("xvncviewer", "xvncviewer", p, NULL); -+ g_print("vncviewer %s\n", p); -+ execlp("vncviewer", "vncviewer", p, NULL); - - } else { - char p[16]; diff --git a/net-dns/avahi/files/avahi-start-after-netmount.patch b/net-dns/avahi/files/avahi-start-after-netmount.patch deleted file mode 100644 index 74de8e64756f..000000000000 --- a/net-dns/avahi/files/avahi-start-after-netmount.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: trunk/initscript/gentoo/avahi-dnsconfd.in -=================================================================== ---- trunk/initscript/gentoo/avahi-dnsconfd.in (revision 1538) -+++ trunk/initscript/gentoo/avahi-dnsconfd.in (working copy) -@@ -3,7 +3,7 @@ - # Copyright 1999-2005 Gentoo Foundation - # Distributed under the terms of the GNU General Public License v2 - --opts="${opts} reload" -+opts="reload" - - depend() { - need avahi-daemon -Index: trunk/initscript/gentoo/avahi-daemon.in -=================================================================== ---- trunk/initscript/gentoo/avahi-daemon.in (revision 1538) -+++ trunk/initscript/gentoo/avahi-daemon.in (working copy) -@@ -1,11 +1,12 @@ - #!/sbin/runscript - # $Id: avahi-start-after-netmount.patch,v 1.1 2007/09/09 20:37:33 swegener Exp $ - # Copyright 1999-2005 Gentoo Foundation - # Distributed under the terms of the GNU General Public License v2 - --opts="${opts} reload" -+opts="reload" - - depend() { -+ before netmount - use net - need dbus - } diff --git a/net-dns/avahi/files/avahi-vncviewer.patch b/net-dns/avahi/files/avahi-vncviewer.patch deleted file mode 100644 index cad6eb210668..000000000000 --- a/net-dns/avahi/files/avahi-vncviewer.patch +++ /dev/null @@ -1,16 +0,0 @@ -xvncviewer is an alternative on debian. -vncviewer is what the vnc distribution and we use. - ---- avahi/avahi-ui/bssh.c -+++ avahi/avahi-ui/bssh.c -@@ -76,8 +76,8 @@ - - gtk_widget_destroy(d); - -- g_print("xvncviewer %s\n", p); -- execlp("xvncviewer", "xvncviewer", p, NULL); -+ g_print("vncviewer %s\n", p); -+ execlp("vncviewer", "vncviewer", p, NULL); - - } else { - char p[16]; |