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

Stage support

This commit is contained in:
Antoine Brodin 2014-02-06 18:23:17 +00:00
parent d0e1209e19
commit 0d6613fbbd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343132

View File

@ -12,19 +12,12 @@ COMMENT= Utility for detecting traceroutes and reporting them via syslog
PLIST_FILES= sbin/tdetect etc/rc.d/tdetect.sh
SUB_FILES= pkg-message
NO_STAGE= yes
pre-configure:
@${REINPLACE_CMD} -e 's/trdetect/tdetect/g' ${WRKSRC}/config.h
@${REINPLACE_CMD} -e 's/LOG_AUTHPRIV/LOG_SECURITY/g' ${WRKSRC}/config.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \
${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \
${INSTALL_SCRIPT} -m 750 ${FILESDIR}/tdetect.sh ${PREFIX}/etc/rc.d/tdetect.sh; \
${CAT} ${PKGMESSAGE}; \
fi
${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${STAGEDIR}${PREFIX}/sbin/tdetect
${INSTALL_SCRIPT} -m 750 ${FILESDIR}/tdetect.sh ${STAGEDIR}${PREFIX}/etc/rc.d/tdetect.sh
.include <bsd.port.mk>