summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2014-07-08 16:24:27 +0000
committerleeym <leeym@FreeBSD.org>2014-07-08 16:24:27 +0000
commit9916b5a49bb4c50b2e74f0763a6b19c746b4e3c4 (patch)
treed6ce4a1d93f57cbfe64354cb868b12849a958f8a
parent5b5a1e72a1944f8ca48cfebb93fb71a464ad76dc (diff)
downloadFreeBSD-ports-9916b5a49bb4c50b2e74f0763a6b19c746b4e3c4.zip
FreeBSD-ports-9916b5a49bb4c50b2e74f0763a6b19c746b4e3c4.tar.gz
- support stage
-rw-r--r--dns/checkdns/Makefile19
-rw-r--r--dns/checkdns/pkg-plist2
2 files changed, 8 insertions, 13 deletions
diff --git a/dns/checkdns/Makefile b/dns/checkdns/Makefile
index 8f9d5f1..743f51f 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 f1d211f..2ded32a 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
OpenPOWER on IntegriCloud