diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-12-09 11:40:51 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-12-09 11:40:51 +0000 |
commit | 445b9dc0e520be67892826af6c003b9468e30083 (patch) | |
tree | 2e2d74e5df8e223f276c9881329bb8b4c63960b2 | |
parent | 05cdf71ba8667e3db9307153164df43d516f7057 (diff) | |
download | ports-445b9dc0e520be67892826af6c003b9468e30083.tar.gz ports-445b9dc0e520be67892826af6c003b9468e30083.zip |
Notes
-rw-r--r-- | dns/checkdns/Makefile | 14 | ||||
-rw-r--r-- | dns/checkdns/files/patch-Makefile | 8 | ||||
-rw-r--r-- | dns/checkdns/pkg-plist | 13 |
3 files changed, 22 insertions, 13 deletions
diff --git a/dns/checkdns/Makefile b/dns/checkdns/Makefile index d0613619eac5..548f83e95f08 100644 --- a/dns/checkdns/Makefile +++ b/dns/checkdns/Makefile @@ -7,6 +7,7 @@ PORTNAME= checkdns PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://www.enderunix.org/checkdns/ \ http://www.trunix.org/projeler/checkdns/ @@ -16,11 +17,24 @@ COMMENT= A domain name server analysis and reporting tool SUB_FILES= pkg-message +PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README THANKS TODO + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/main.c \ ${WRKSRC}/INSTALL ${WRKSRC}/README ${WRKSRC}/checkdns.conf-dist post-install: + @if [ ! -f ${PREFIX}/etc/checkdns.conf ]; then \ + ${CP} -p ${PREFIX}/etc/checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ; \ + fi + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR} +.endfor +.endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/dns/checkdns/files/patch-Makefile b/dns/checkdns/files/patch-Makefile index 292bbd778510..327d306d2fc0 100644 --- a/dns/checkdns/files/patch-Makefile +++ b/dns/checkdns/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Sat Jan 15 21:40:27 2005 -+++ Makefile Fri May 20 23:12:20 2005 +--- Makefile.orig Fri Nov 10 00:41:08 2006 ++++ Makefile Fri Nov 10 00:41:25 2006 @@ -9,7 +9,15 @@ $(CC) -o checkdns $(OBJS) @@ -8,9 +8,9 @@ + cp checkdns ${PREFIX}/bin/checkdns + chown root ${PREFIX}/bin/checkdns + chmod 700 ${PREFIX}/bin/checkdns -+ cp -pf checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ++ cp -pf checkdns.conf-dist ${PREFIX}/etc/ + mkdir -p ${PREFIX}/share/checkdns/lang -+ cp -f README THANKS TODO AUTHORS COPYING INSTALL ChangeLog uninstall.sh ${PREFIX}/share/checkdns ++ cp -f checkdns.css ${PREFIX}/share/checkdns + cp -f lang/* ${PREFIX}/share/checkdns/lang + + diff --git a/dns/checkdns/pkg-plist b/dns/checkdns/pkg-plist index 050ea2911956..f1d211f95039 100644 --- a/dns/checkdns/pkg-plist +++ b/dns/checkdns/pkg-plist @@ -1,13 +1,8 @@ bin/checkdns -etc/checkdns.conf -%%DATADIR%%/README -%%DATADIR%%/THANKS -%%DATADIR%%/TODO -%%DATADIR%%/AUTHORS -%%DATADIR%%/COPYING -%%DATADIR%%/INSTALL -%%DATADIR%%/ChangeLog -%%DATADIR%%/uninstall.sh +@unexec if cmp -s %D/etc/checkdns.conf-dist %D/etc/checkdns.conf; then rm -f %D/etc/checkdns.conf; fi +etc/checkdns.conf-dist +@exec if [ ! -f %D/etc/checkdns.conf ] ; then cp -p %D/%F %B/checkdns.conf; fi +%%DATADIR%%/checkdns.css %%DATADIR%%/lang/english %%DATADIR%%/lang/spanish %%DATADIR%%/lang/turkish |