diff options
-rw-r--r-- | dns/checkdns/Makefile | 19 | ||||
-rw-r--r-- | dns/checkdns/pkg-plist | 2 |
2 files changed, 8 insertions, 13 deletions
diff --git a/dns/checkdns/Makefile b/dns/checkdns/Makefile index 8f9d5f1a5975..743f51fb04d6 100644 --- a/dns/checkdns/Makefile +++ b/dns/checkdns/Makefile @@ -11,15 +11,12 @@ MASTER_SITES= http://www.enderunix.org/checkdns/ \ MAINTAINER= ports@FreeBSD.org COMMENT= Domain name server analysis and reporting tool - SUB_FILES= pkg-message PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README THANKS TODO OPTIONS_DEFINE= DOCS -NO_STAGE= yes - .include <bsd.port.options.mk> post-patch: @@ -27,18 +24,18 @@ post-patch: ${WRKSRC}/INSTALL ${WRKSRC}/README ${WRKSRC}/checkdns.conf-dist @${REINPLACE_CMD} -e 's|CC = gcc|CC = ${CC} -include string.h|' ${WRKSRC}/Makefile -post-install: - @if [ ! -f ${PREFIX}/etc/checkdns.conf ]; then \ - ${CP} -p ${PREFIX}/etc/checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ; \ - fi - +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/checkdns ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/checkdns.conf-dist ${STAGEDIR}${PREFIX}/etc/ + ${MKDIR} ${STAGEDIR}${DATADIR}/lang + ${INSTALL_DATA} ${WRKSRC}/checkdns.css ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/lang/* ${STAGEDIR}${DATADIR}/lang .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} .endfor .endif - @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/dns/checkdns/pkg-plist b/dns/checkdns/pkg-plist index f1d211f95039..2ded32a45503 100644 --- a/dns/checkdns/pkg-plist +++ b/dns/checkdns/pkg-plist @@ -1,7 +1,5 @@ bin/checkdns -@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 |