summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-05-03 10:48:08 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-05-03 10:48:08 +0000
commit2181d425e52bb9cf34e059270c398c6e43ed4f2b (patch)
treec610c151571b1d8c925cc993926bbcab41d6a467 /www-apache/mod_dnssd
parentFix bug 268390 : unrecognised options --enable-debug (diff)
downloadgentoo-2-2181d425e52bb9cf34e059270c398c6e43ed4f2b.tar.gz
gentoo-2-2181d425e52bb9cf34e059270c398c6e43ed4f2b.tar.bz2
gentoo-2-2181d425e52bb9cf34e059270c398c6e43ed4f2b.zip
Bump to 0.6. Fix linking, bug #266433.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'www-apache/mod_dnssd')
-rw-r--r--www-apache/mod_dnssd/ChangeLog8
-rw-r--r--www-apache/mod_dnssd/files/mod_dnssd-0.6-ldflags.patch21
-rw-r--r--www-apache/mod_dnssd/mod_dnssd-0.6.ebuild39
3 files changed, 67 insertions, 1 deletions
diff --git a/www-apache/mod_dnssd/ChangeLog b/www-apache/mod_dnssd/ChangeLog
index cfadcf862b27..8dd243087247 100644
--- a/www-apache/mod_dnssd/ChangeLog
+++ b/www-apache/mod_dnssd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-apache/mod_dnssd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_dnssd/ChangeLog,v 1.5 2009/03/09 18:02:04 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_dnssd/ChangeLog,v 1.6 2009/05/03 10:48:08 eva Exp $
+
+*mod_dnssd-0.6 (03 May 2009)
+
+ 03 May 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +files/mod_dnssd-0.6-ldflags.patch, +mod_dnssd-0.6.ebuild:
+ Bump to 0.6. Fix linking, bug #266433.
09 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> mod_dnssd-0.5.ebuild:
Migrate to EAPI 2.
diff --git a/www-apache/mod_dnssd/files/mod_dnssd-0.6-ldflags.patch b/www-apache/mod_dnssd/files/mod_dnssd-0.6-ldflags.patch
new file mode 100644
index 000000000000..55d15c55438e
--- /dev/null
+++ b/www-apache/mod_dnssd/files/mod_dnssd-0.6-ldflags.patch
@@ -0,0 +1,21 @@
+---
+ Respect LDFLAGS and properly use LIBS to avoid missing symbols at runtime.
+
+--- a/src/Makefile.in 2009-01-22 17:42:02.000000000 +0100
++++ b/src/Makefile.in 2009-04-16 22:26:17.092709780 +0200
+@@ -16,13 +16,13 @@
+
+ APXS=@APXS@
+ APACHECTL=@APACHECTL@
+-LIBS=-Wl,"@LIBS@" @AVAHI_LIBS@
++LIBS="@LIBS@" @AVAHI_LIBS@
+ CFLAGS=-Wc,"@CFLAGS@" @AVAHI_CFLAGS@
+
+ all: mod_dnssd.la
+
+ mod_dnssd.la: @srcdir@/mod_dnssd.c
+- $(APXS) -c $(CFLAGS) $(LIBS) @srcdir@/mod_dnssd.c
++ $(APXS) -c $(CFLAGS) -Wl,$(LDFLAGS) @srcdir@/mod_dnssd.c $(LIBS)
+
+ install: all
+ $(APXS) -i -a mod_dnssd.la
diff --git a/www-apache/mod_dnssd/mod_dnssd-0.6.ebuild b/www-apache/mod_dnssd/mod_dnssd-0.6.ebuild
new file mode 100644
index 000000000000..a061e0e94eba
--- /dev/null
+++ b/www-apache/mod_dnssd/mod_dnssd-0.6.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_dnssd/mod_dnssd-0.6.ebuild,v 1.1 2009/05/03 10:48:08 eva Exp $
+
+EAPI="2"
+
+inherit apache-module eutils
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="mod_dnssd is an Apache module which adds Zeroconf support via DNS-SD using Avahi"
+HOMEPAGE="http://0pointer.de/lennart/projects/mod_dnssd/"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc"
+
+DEPEND="net-dns/avahi[dbus]"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_CONF="80_${PN}"
+APACHE2_MOD_DEFINE="DNSSD"
+
+need_apache2
+
+src_prepare() {
+ # Respect LDFLAGS and use LIBS properly.
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+}
+
+src_configure() {
+ econf --with-apxs=${APXS} --disable-lynx
+}
+
+# Do not use inherited src_compile since it doesn't do what we want
+src_compile() {
+ emake || die "emake failed"
+}