svn commit: r359772 - head/sysutils/swapexd
Vanilla I. Shu
vanilla at FreeBSD.org
Sun Jun 29 15:12:09 UTC 2014
Author: vanilla
Date: Sun Jun 29 15:12:08 2014
New Revision: 359772
URL: http://svnweb.freebsd.org/changeset/ports/359772
QAT: https://qat.redports.org/buildarchive/r359772/
Log:
1: Stagify.
2: use @sample to handle config file.
Approved by: portmgr@ (blanket approval)
Modified:
head/sysutils/swapexd/Makefile
Modified: head/sysutils/swapexd/Makefile
==============================================================================
--- head/sysutils/swapexd/Makefile Sun Jun 29 15:11:16 2014 (r359771)
+++ head/sysutils/swapexd/Makefile Sun Jun 29 15:12:08 2014 (r359772)
@@ -11,9 +11,8 @@ COMMENT= Tool for growing and shrinking
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_FILES= sbin/${PORTNAME} etc/rc.d/swapexd
+PLIST_FILES= sbin/${PORTNAME} etc/rc.d/swapexd "@sample etc/swapexd.conf.sample"
-NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@@ -24,18 +23,8 @@ post-patch:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
- ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/swapexd ${PREFIX}/etc/rc.d
-
-# Deal with config files -- would be a shame to have to make a pkg-plist this
-# small
-post-install:
- ${ECHO_CMD} '@unexec cmp -s %D/etc/${PORTNAME}.conf.sample %D/etc/${PORTNAME}.conf && rm -f %D/etc/${PORTNAME}.conf || true 2>/dev/null' >> ${TMPPLIST}
- ${ECHO_CMD} 'etc/${PORTNAME}.conf.sample' >> ${TMPPLIST}
- ${ECHO_CMD} '@exec [ -f %D/etc/${PORTNAME}.conf ] || cp -p %D/%F %B/${PORTNAME}.conf' >> ${TMPPLIST}
- [ -f %D/etc/${PORTNAME}.conf ] \
- || ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample \
- ${PREFIX}/etc/${PORTNAME}.conf
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/swapexd ${STAGEDIR}${PREFIX}/etc/rc.d
.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list