summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@gentoo.org>2006-12-30 07:21:20 +0000
committerSaleem Abdulrasool <compnerd@gentoo.org>2006-12-30 07:21:20 +0000
commit50a581c91f3f993c1f2450aab6302b3dd0a7e484 (patch)
tree53c532b1ed7ee12aa08c8aa07c274c3c39fc3ab7 /sys-auth/nss-mdns
parentBuild up dirs/symlinks in $ROOT in pkg_preinst() before portage has a chance ... (diff)
downloadgentoo-2-50a581c91f3f993c1f2450aab6302b3dd0a7e484.tar.gz
gentoo-2-50a581c91f3f993c1f2450aab6302b3dd0a7e484.tar.bz2
gentoo-2-50a581c91f3f993c1f2450aab6302b3dd0a7e484.zip
fix avahi-socket path (bug #159341)
(Portage version: 2.1.2_rc4-r2)
Diffstat (limited to 'sys-auth/nss-mdns')
-rw-r--r--sys-auth/nss-mdns/ChangeLog8
-rw-r--r--sys-auth/nss-mdns/files/digest-nss-mdns-0.8-r13
-rw-r--r--sys-auth/nss-mdns/files/nss-mdns-0.8-avahi-socket.patch22
-rw-r--r--sys-auth/nss-mdns/nss-mdns-0.8-r1.ebuild60
4 files changed, 92 insertions, 1 deletions
diff --git a/sys-auth/nss-mdns/ChangeLog b/sys-auth/nss-mdns/ChangeLog
index eab7ea15c634..e0e65a6203e8 100644
--- a/sys-auth/nss-mdns/ChangeLog
+++ b/sys-auth/nss-mdns/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-auth/nss-mdns
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-mdns/ChangeLog,v 1.11 2006/08/01 14:52:20 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-mdns/ChangeLog,v 1.12 2006/12/30 07:21:20 compnerd Exp $
+
+*nss-mdns-0.8-r1 (30 Dec 2006)
+
+ 30 Dec 2006; Saleem Abdulrasool <compnerd@gentoo.org>
+ +files/nss-mdns-0.8-avahi-socket.patch, +nss-mdns-0.8-r1.ebuild:
+ Fix avahi-socket path, bug #159341
01 Aug 2006; Simon Stelling <blubb@gentoo.org> nss-mdns-0.8.ebuild:
stable on amd64
diff --git a/sys-auth/nss-mdns/files/digest-nss-mdns-0.8-r1 b/sys-auth/nss-mdns/files/digest-nss-mdns-0.8-r1
new file mode 100644
index 000000000000..bef767a68856
--- /dev/null
+++ b/sys-auth/nss-mdns/files/digest-nss-mdns-0.8-r1
@@ -0,0 +1,3 @@
+MD5 d7545fbf6df15f3af502531efcf15a25 nss-mdns-0.8.tar.gz 342256
+RMD160 08b361275e68c7623ba41d304867178ae6a0301f nss-mdns-0.8.tar.gz 342256
+SHA256 280212222924155627aea4ac2eb57073b8aa78a831b177fcae46de1ac211715a nss-mdns-0.8.tar.gz 342256
diff --git a/sys-auth/nss-mdns/files/nss-mdns-0.8-avahi-socket.patch b/sys-auth/nss-mdns/files/nss-mdns-0.8-avahi-socket.patch
new file mode 100644
index 000000000000..2b73165b7135
--- /dev/null
+++ b/sys-auth/nss-mdns/files/nss-mdns-0.8-avahi-socket.patch
@@ -0,0 +1,22 @@
+--- src/Makefile.am 2006-12-30 01:00:22.000000000 -0600
++++ src/Makefile.am 2006-12-30 01:01:11.000000000 -0600
+@@ -20,7 +20,7 @@
+ AM_CFLAGS = \
+ -DMDNS_ALLOW_FILE=\"$(sysconfdir)/mdns.allow\" \
+ -DRESOLV_CONF_FILE=\"$(sysconfdir)/resolv.conf\" \
+- -DAVAHI_SOCKET=\"$(localstatedir)/run/avahi-daemon/socket\"
++ -DAVAHI_SOCKET=\"$(ROOT)var/run/avahi-daemon/socket\"
+
+ #AM_CFLAGS += -DNDEBUG=1 -Os
+
+--- src/Makefile.in 2006-12-30 01:00:19.000000000 -0600
++++ src/Makefile.in 2006-12-30 01:00:37.000000000 -0600
+@@ -301,7 +301,7 @@
+ # This cool debug trap works on i386/gcc only
+ AM_CFLAGS = -DMDNS_ALLOW_FILE=\"$(sysconfdir)/mdns.allow\" \
+ -DRESOLV_CONF_FILE=\"$(sysconfdir)/resolv.conf\" \
+- -DAVAHI_SOCKET=\"$(localstatedir)/run/avahi-daemon/socket\" \
++ -DAVAHI_SOCKET=\"$(ROOT)var/run/avahi-daemon/socket\" \
+ '-DDEBUG_TRAP=__asm__("int $$3")'
+ lib_LTLIBRARIES = \
+ libnss_mdns.la \
diff --git a/sys-auth/nss-mdns/nss-mdns-0.8-r1.ebuild b/sys-auth/nss-mdns/nss-mdns-0.8-r1.ebuild
new file mode 100644
index 000000000000..17c6686813aa
--- /dev/null
+++ b/sys-auth/nss-mdns/nss-mdns-0.8-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-mdns/nss-mdns-0.8-r1.ebuild,v 1.1 2006/12/30 07:21:20 compnerd Exp $
+
+inherit autotools eutils
+
+DESCRIPTION="Name Service Switch module for Multicast DNS"
+HOMEPAGE="http://0pointer.de/lennart/projects/nss-mdns/"
+SRC_URI="http://0pointer.de/lennart/projects/nss-mdns/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="avahi"
+
+DEPEND="avahi? ( net-dns/avahi )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${PN}-0.8-avahi-socket.patch
+ eautomake
+}
+
+src_compile() {
+ econf $(use_enable avahi) || die "configure failed"
+ emake || die "compile failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+
+ insinto /etc
+ doins ${FILESDIR}/mdns.allow
+
+ dodoc README
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "You must modify your name service switch look up file to enable"
+ ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses"
+ ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both"
+ ewarn "use mdns. Keep in mind that mdns will be slower if there are no"
+ ewarn "IPv6 addresses published via mDNS on the network. There are also"
+ ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts"
+ ewarn "and 169.254.x.x addresses."
+ ewarn
+ ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf"
+ ewarn "An example line looks like:"
+ einfo "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
+ ewarn
+ ewarn "If you want to perform mDNS lookups for domains other than the ones"
+ ewarn "ending in .local, add them to /etc/mdns.allow"
+ ewarn
+ ebeep 5
+ epause 10
+}