diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-06-29 23:12:08 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-06-29 23:12:08 +0800 |
commit | 1c6db4872c27f506cddbff413bfdbc404f63cb94 (patch) | |
tree | dccf5a7a455ad342560ff634ca55641cb8eb2bd8 /sysutils | |
parent | 8c219f7819443837f398254f4af41c3ba3f4e24c (diff) | |
download | freebsd-ports-gnome-1c6db4872c27f506cddbff413bfdbc404f63cb94.tar.gz freebsd-ports-gnome-1c6db4872c27f506cddbff413bfdbc404f63cb94.tar.zst freebsd-ports-gnome-1c6db4872c27f506cddbff413bfdbc404f63cb94.zip |
1: Stagify.
2: use @sample to handle config file.
Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/swapexd/Makefile | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sysutils/swapexd/Makefile b/sysutils/swapexd/Makefile index 8297f3678db7..08dee419769b 100644 --- a/sysutils/swapexd/Makefile +++ b/sysutils/swapexd/Makefile @@ -11,9 +11,8 @@ COMMENT= Tool for growing and shrinking on-disk swap space 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> |