Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2014 17:40:37 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368668 - head/dns/mDNSResponder_nss
Message-ID:  <201409201740.s8KHeb9m022209@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Sep 20 17:40:37 2014
New Revision: 368668
URL: http://svnweb.freebsd.org/changeset/ports/368668
QAT: https://qat.redports.org/buildarchive/r368668/

Log:
  - Manage config file (with @sample according to the ports guidelines)
  - Fix stripping
  - Trim long lines
  
  PR:		ports/193229
  Submitted by:	maintainer

Modified:
  head/dns/mDNSResponder_nss/Makefile
  head/dns/mDNSResponder_nss/pkg-plist

Modified: head/dns/mDNSResponder_nss/Makefile
==============================================================================
--- head/dns/mDNSResponder_nss/Makefile	Sat Sep 20 17:40:11 2014	(r368667)
+++ head/dns/mDNSResponder_nss/Makefile	Sat Sep 20 17:40:37 2014	(r368668)
@@ -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>

Modified: head/dns/mDNSResponder_nss/pkg-plist
==============================================================================
--- head/dns/mDNSResponder_nss/pkg-plist	Sat Sep 20 17:40:11 2014	(r368667)
+++ head/dns/mDNSResponder_nss/pkg-plist	Sat Sep 20 17:40:37 2014	(r368668)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409201740.s8KHeb9m022209>