diff options
author | hauke <hauke> | 2012-02-09 13:41:00 +0000 |
---|---|---|
committer | hauke <hauke> | 2012-02-09 13:41:00 +0000 |
commit | 512ef99626f55f67f9d4bb080ace3fa00ec5fbac (patch) | |
tree | 49b19155d5b22f558d3b8c45026a4b31d2b2a046 /net | |
parent | fb62c28604f9bb52fe3c086ce23d431be00f7ec2 (diff) | |
download | pkgsrc-512ef99626f55f67f9d4bb080ace3fa00ec5fbac.tar.gz |
Make package use PKG_SYSCONFBASE (has anybody actually ever used it?).
While we are here, set LICENSE.
Diffstat (limited to 'net')
-rw-r--r-- | net/mDNSResponder-nss/Makefile | 10 | ||||
-rw-r--r-- | net/mDNSResponder-nss/distinfo | 4 | ||||
-rw-r--r-- | net/mDNSResponder-nss/patches/patch-aa | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/net/mDNSResponder-nss/Makefile b/net/mDNSResponder-nss/Makefile index 1ebd3de5997..b32a95f049c 100644 --- a/net/mDNSResponder-nss/Makefile +++ b/net/mDNSResponder-nss/Makefile @@ -1,13 +1,15 @@ -# $NetBSD: Makefile,v 1.10 2011/08/21 18:48:42 jmcneill Exp $ +# $NetBSD: Makefile,v 1.11 2012/02/09 13:41:00 hauke Exp $ DISTNAME= mDNSResponder-258.14 PKGNAME= mDNSResponder-nss-258.14 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.opensource.apple.com/tarballs/mDNSResponder/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://developer.apple.com/bonjour/ COMMENT= Apple's mDNS responder - NetBSD nsswitch module +LICENSE= modified-bsd # needs nsswitch ONLY_FOR_PLATFORM= NetBSD-[3-9]*-* @@ -16,12 +18,16 @@ INSTALLATION_DIRS= lib share/examples/nss_mdns ${PKGMANDIR}/man5 PKG_DESTDIR_SUPPORT= user-destdir +BUILD_DEFS+= PKG_SYSCONFBASE +CONF_FILES= ${PREFIX}/share/examples/nss_mdns/nss_mdns.conf \ + ${PKG_SYSCONFDIR}/nss_mdns.conf + post-extract: ${CP} ${FILESDIR}/netbsd.c ${FILESDIR}/netbsd.h ${WRKSRC}/mDNSPosix do-build: (cd ${WRKSRC}/mDNSPosix && ${CC} -c -fPIC -I. -I${LOCALBASE}/include \ - nss_mdns.c netbsd.c) + -DPKG_SYSCONFBASE=\"${PKG_SYSCONFBASE}\" nss_mdns.c netbsd.c) (cd ${WRKSRC}/mDNSPosix && ${LD} -shared *.o -o nss_mdns.so.0 \ -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -ldns_sd) diff --git a/net/mDNSResponder-nss/distinfo b/net/mDNSResponder-nss/distinfo index 64d5a155329..67fb9fe1bf2 100644 --- a/net/mDNSResponder-nss/distinfo +++ b/net/mDNSResponder-nss/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.3 2011/08/21 18:48:43 jmcneill Exp $ +$NetBSD: distinfo,v 1.4 2012/02/09 13:41:00 hauke Exp $ SHA1 (mDNSResponder-258.14.tar.gz) = 2a34794ff9a5184ce1e57ccea4001b5af6635f7b RMD160 (mDNSResponder-258.14.tar.gz) = fbd9dcfa84dbeb9de379066958a0b509af074dbc Size (mDNSResponder-258.14.tar.gz) = 1833244 bytes -SHA1 (patch-aa) = e8e0f41dd5793cc431f56866e8b44a3c9f3c207a +SHA1 (patch-aa) = 4bc20847ce6fd2398f1beca5adb0eab357cda0a8 diff --git a/net/mDNSResponder-nss/patches/patch-aa b/net/mDNSResponder-nss/patches/patch-aa index 39068d86103..06c2da192b1 100644 --- a/net/mDNSResponder-nss/patches/patch-aa +++ b/net/mDNSResponder-nss/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.2 2010/07/20 07:24:10 sbd Exp $ +$NetBSD: patch-aa,v 1.3 2012/02/09 13:41:01 hauke Exp $ --- mDNSPosix/nss_mdns.c.orig 2008-11-04 20:06:20.000000000 +0000 +++ mDNSPosix/nss_mdns.c @@ -189,7 +189,7 @@ $NetBSD: patch-aa,v 1.2 2010/07/20 07:24:10 sbd Exp $ // Types and Constants -const char * k_conf_file = "/etc/nss_mdns.conf"; -+static const char * k_conf_file = "/etc/nss_mdns.conf"; ++static const char * k_conf_file = PKG_SYSCONFBASE "/nss_mdns.conf"; #define CONF_LINE_SIZE 1024 -const char k_comment_char = '#'; |