aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-09-20 17:40:37 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-09-20 17:40:37 +0000
commit233d4a510c040552a153c70bcd66c8868d0a62a8 (patch)
tree850f79650a08ae819698265caca296d35f1f4bd3 /dns
parent393b6aad8a6e08b28ffb8b05da4ddf134507fdd6 (diff)
downloadports-233d4a510c040552a153c70bcd66c8868d0a62a8.tar.gz
ports-233d4a510c040552a153c70bcd66c8868d0a62a8.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/mDNSResponder_nss/Makefile19
-rw-r--r--dns/mDNSResponder_nss/pkg-plist1
2 files changed, 15 insertions, 5 deletions
diff --git a/dns/mDNSResponder_nss/Makefile b/dns/mDNSResponder_nss/Makefile
index 7cb52e5035bf..1826813d2dd9 100644
--- a/dns/mDNSResponder_nss/Makefile
+++ b/dns/mDNSResponder_nss/Makefile
@@ -2,6 +2,7 @@
PORTNAME= mDNSResponder_nss
PORTVERSION= 544
+PORTREVISION= 1
CATEGORIES= dns net
MASTER_SITES= http://opensource.apple.com/tarballs/mDNSResponder/
DISTNAME= ${PORTNAME:S/_nss//}-${PORTVERSION}
@@ -28,14 +29,22 @@ do-build:
(cd ${WRKSRC}/mDNSPosix && ${LD} -shared nss_mdns.o nss_mdns_freebsd.o \
-o nss_mdns.so.1 -L${PREFIX}/lib -R${PREFIX}/lib -ldns_sd)
+post-build:
+ ${STRIP_CMD} ${WRKSRC}/mDNSPosix/nss_mdns.so.1
+
do-install:
- ${INSTALL_LIB} ${WRKSRC}/mDNSPosix/nss_mdns.so.1 ${STAGEDIR}${PREFIX}/lib
- ${LN} -sf ${PREFIX}/lib/nss_mdns.so.1 ${STAGEDIR}${PREFIX}/lib/nss_mdns.so
+ ${INSTALL_LIB} ${WRKSRC}/mDNSPosix/nss_mdns.so.1 \
+ ${STAGEDIR}${PREFIX}/lib
+ ${LN} -sf ${PREFIX}/lib/nss_mdns.so.1 \
+ ${STAGEDIR}${PREFIX}/lib/nss_mdns.so
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_MAN} ${WRKSRC}/mDNSPosix/nss_mdns.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
+ ${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf \
+ ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_MAN} ${WRKSRC}/mDNSPosix/nss_mdns.conf.5 \
+ ${STAGEDIR}${MANPREFIX}/man/man5
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nss_mdns.so.1
+ ${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf \
+ ${STAGEDIR}${PREFIX}/etc/nss_mdns.conf.sample
.include <bsd.port.mk>
diff --git a/dns/mDNSResponder_nss/pkg-plist b/dns/mDNSResponder_nss/pkg-plist
index 5726b8614252..376ed6a629a5 100644
--- a/dns/mDNSResponder_nss/pkg-plist
+++ b/dns/mDNSResponder_nss/pkg-plist
@@ -1,3 +1,4 @@
+@sample etc/nss_mdns.conf.sample
lib/nss_mdns.so
lib/nss_mdns.so.1
man/man5/nss_mdns.conf.5.gz