summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2006-01-01 12:07:11 +0000
committerSven Wegener <swegener@gentoo.org>2006-01-01 12:07:11 +0000
commit5fac5767bc37064a86c6952b1204ae2e16cbe807 (patch)
tree362faaf513ddd61f4c0557e166e8eaa9f527ae2c /net-dns/avahi
parent+net-dns/avahi:bookmarks - Install the avahi-bookmarks application (requires ... (diff)
downloadhistorical-5fac5767bc37064a86c6952b1204ae2e16cbe807.tar.gz
historical-5fac5767bc37064a86c6952b1204ae2e16cbe807.tar.bz2
historical-5fac5767bc37064a86c6952b1204ae2e16cbe807.zip
Revision bump to pull in some changes from Gentopia. The init script needs dbus, if we've compiled avahi with dbus support. This is a work-a-round, a clean solution will be available in upstream's sources.
Package-Manager: portage-2.0.53
Diffstat (limited to 'net-dns/avahi')
-rw-r--r--net-dns/avahi/ChangeLog13
-rw-r--r--net-dns/avahi/Manifest12
-rw-r--r--net-dns/avahi/avahi-0.6.1-r1.ebuild122
-rw-r--r--net-dns/avahi/files/0.6.1-dbus-0.60-support.patch29
-rw-r--r--net-dns/avahi/files/0.6.1-need-dbus-initscript.patch14
-rw-r--r--net-dns/avahi/files/digest-avahi-0.6.1-r11
6 files changed, 185 insertions, 6 deletions
diff --git a/net-dns/avahi/ChangeLog b/net-dns/avahi/ChangeLog
index fac5ebbcbc7b..66b0fdc8423f 100644
--- a/net-dns/avahi/ChangeLog
+++ b/net-dns/avahi/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-dns/avahi
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.22 2005/12/04 10:41:08 swegener Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.23 2006/01/01 12:07:10 swegener Exp $
+
+*avahi-0.6.1-r1 (01 Jan 2006)
+
+ 01 Jan 2006; Sven Wegener <swegener@gentoo.org>
+ +files/0.6.1-need-dbus-initscript.patch,
+ +files/0.6.1-dbus-0.60-support.patch, +avahi-0.6.1-r1.ebuild:
+ Revision bump to pull in some changes from Gentopia. The init script needs
+ dbus, if we've compiled avahi with dbus support. This is a work-a-round,
+ a clean solution will be available in upstream's sources.
04 Dec 2005; Sven Wegener <swegener@gentoo.org> avahi-0.6.1.ebuild:
Add support for the gdbm USE flag.
diff --git a/net-dns/avahi/Manifest b/net-dns/avahi/Manifest
index a3af96eb2901..3d6e2990ea47 100644
--- a/net-dns/avahi/Manifest
+++ b/net-dns/avahi/Manifest
@@ -1,16 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 a95b45072975e2694253f22c87777d0b ChangeLog 3066
+MD5 61d06ab3b3190c4da02395258f5433a1 ChangeLog 3467
MD5 5da4a9160b981e4d0f2e64e12a39de37 avahi-0.5.2-r1.ebuild 2085
+MD5 e02a44d127f87504f9e2c162c00e1d8f avahi-0.6.1-r1.ebuild 2765
MD5 10acd5db4e98791ddd421b34c404c7f3 avahi-0.6.1.ebuild 2402
+MD5 f950c746ff7017804d0265baf8b2390b files/0.6.1-dbus-0.60-support.patch 1074
+MD5 2189d236532868b9ae0d0ae87195acda files/0.6.1-need-dbus-initscript.patch 322
MD5 b06b1183ea48e210c1943f0913f63714 files/digest-avahi-0.5.2-r1 63
MD5 82793ef545794b3d74b3094017ed5572 files/digest-avahi-0.6.1 63
+MD5 82793ef545794b3d74b3094017ed5572 files/digest-avahi-0.6.1-r1 63
MD5 e522a390cede4510e8dbd0446e695912 metadata.xml 297
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDksfNI1lqEGTUzyQRAs5CAKCMVKfb8vcC2DNZ1KF1jVWwsirAJgCgyhVx
-sHqPGqy5f0acuKTHDNGmSII=
-=PBdw
+iD8DBQFDt8X5I1lqEGTUzyQRAlzSAJwIceqp250NcMuUtCjaTQcchl3UNACgsZre
+5Ss7uiQ2JZcIPh33SwazvB0=
+=Ghr3
-----END PGP SIGNATURE-----
diff --git a/net-dns/avahi/avahi-0.6.1-r1.ebuild b/net-dns/avahi/avahi-0.6.1-r1.ebuild
new file mode 100644
index 000000000000..91ae9301295d
--- /dev/null
+++ b/net-dns/avahi/avahi-0.6.1-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.1-r1.ebuild,v 1.1 2006/01/01 12:07:11 swegener Exp $
+
+inherit eutils qt3 mono python
+
+DESCRIPTION="System which facilitates service discovery on a local network"
+HOMEPAGE="http://www.freedesktop.org/Software/Avahi"
+SRC_URI="http://www.freedesktop.org/~lennart/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt"
+
+RDEPEND=">=dev-libs/libdaemon-0.5
+ dev-libs/expat
+ gdbm? ( sys-libs/gdbm )
+ qt? ( $(qt_min_version 3.3) )
+ gtk? (
+ >=x11-libs/gtk+-2
+ >=gnome-base/libglade-2
+ >=dev-libs/glib-2
+ )
+ mono? ( >=dev-lang/mono-1.1.3 )
+ dbus? ( >=sys-apps/dbus-0.30 )
+ python? (
+ >=virtual/python-2.4
+ dbus? (
+ bookmarks? (
+ dev-python/twisted
+ dev-python/twisted-web
+ )
+ )
+ gtk? ( >=dev-python/pygtk-2 )
+ )
+ dbus? (
+ howl-compat? ( !net-misc/howl )
+ mdnsresponder-compat? ( !net-misc/mDNSResponder )
+ )"
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ mono? ( >=dev-util/monodoc-1.1.8 )
+ )"
+
+export PKG_CONFIG_PATH="${QTDIR}/lib/pkgconfig"
+
+pkg_setup() {
+ if use python && ! built_with_use dev-lang/python gdbm
+ then
+ die "Need dev-lang/python compiled with gdbm support!"
+ fi
+}
+
+pkg_preinst() {
+ enewgroup avahi
+ enewuser avahi -1 -1 -1 avahi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch "${FILESDIR}"/${PV}-dbus-0.60-support.patch
+ use dbus && epatch "${FILESDIR}"/${PV}-need-dbus-initscript.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
+
+ econf \
+ --localstatedir=/var \
+ --with-distro=gentoo \
+ --disable-qt4 \
+ --disable-python-dbus \
+ --disable-pygtk \
+ --disable-xmltoman \
+ --disable-monodoc \
+ $(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 qt qt3) \
+ $(use_enable gtk glib) \
+ $(use_enable gdbm) \
+ ${myconf} \
+ || die "econf failed"
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+
+ dodoc docs/{AUTHORS,README,TODO}
+
+ # Let's do some cleanup
+ rmdir "${D}"/Disabled &>/dev/null
+ use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${ROOT}"/usr/lib/python*/site-packages/avahi
+}
+
+pkg_postinst() {
+ python_mod_optimize "${ROOT}"/usr/lib/python*/site-packages/avahi
+}
diff --git a/net-dns/avahi/files/0.6.1-dbus-0.60-support.patch b/net-dns/avahi/files/0.6.1-dbus-0.60-support.patch
new file mode 100644
index 000000000000..b026c847755f
--- /dev/null
+++ b/net-dns/avahi/files/0.6.1-dbus-0.60-support.patch
@@ -0,0 +1,29 @@
+Index: avahi-daemon/dbus-protocol.c
+===================================================================
+--- avahi-daemon/dbus-protocol.c (revision 1027)
++++ avahi-daemon/dbus-protocol.c (revision 1040)
+@@ -156,7 +156,6 @@
+ return client;
+ }
+
+-
+ static DBusHandlerResult msg_signal_filter_impl(AVAHI_GCC_UNUSED DBusConnection *c, DBusMessage *m, AVAHI_GCC_UNUSED void *userdata) {
+ DBusError error;
+
+@@ -1029,7 +1028,15 @@
+ goto fail;
+ }
+
+- if (dbus_bus_request_name(server->bus, AVAHI_DBUS_NAME, DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT, &error) != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
++ if (dbus_bus_request_name(
++ server->bus,
++ AVAHI_DBUS_NAME,
++#if (DBUS_VERSION_MAJOR == 0) && (DBUS_VERSION_MINOR >= 60)
++ DBUS_NAME_FLAG_DO_NOT_QUEUE,
++#else
++ DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT,
++#endif
++ &error) != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ if (dbus_error_is_set(&error)) {
+ avahi_log_error("dbus_bus_request_name(): %s", error.message);
+ goto fail;
diff --git a/net-dns/avahi/files/0.6.1-need-dbus-initscript.patch b/net-dns/avahi/files/0.6.1-need-dbus-initscript.patch
new file mode 100644
index 000000000000..10b20215ebd1
--- /dev/null
+++ b/net-dns/avahi/files/0.6.1-need-dbus-initscript.patch
@@ -0,0 +1,14 @@
+Index: initscript/gentoo/avahi-daemon.in
+===================================================================
+--- initscript/gentoo/avahi-daemon.in (revision 1048)
++++ initscript/gentoo/avahi-daemon.in (working copy)
+@@ -6,7 +6,8 @@
+ opts="${opts} reload"
+
+ depend() {
+- use net dbus
++ use net
++ need dbus
+ }
+
+ start() {
diff --git a/net-dns/avahi/files/digest-avahi-0.6.1-r1 b/net-dns/avahi/files/digest-avahi-0.6.1-r1
new file mode 100644
index 000000000000..f997656dd88a
--- /dev/null
+++ b/net-dns/avahi/files/digest-avahi-0.6.1-r1
@@ -0,0 +1 @@
+MD5 330613902c59bd597f140a8254e9f4ec avahi-0.6.1.tar.gz 850021