1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- support stage

This commit is contained in:
Yen-Ming Lee 2014-07-08 16:24:27 +00:00
parent cf983bd713
commit 3bb0a6d14d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361267
2 changed files with 8 additions and 13 deletions

View File

@ -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>

View File

@ -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