aboutsummaryrefslogtreecommitdiff
path: root/sysutils/swapexd
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-04-03 11:26:48 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-04-03 11:26:48 +0000
commit0438143249634ab5028e53cb468d99a894c62995 (patch)
tree204c01c7973e83331fc29d8b09e59b3e9f219bd6 /sysutils/swapexd
parent68f48ea6c2e03359333e7b211625e51e06aa2026 (diff)
downloadports-0438143249634ab5028e53cb468d99a894c62995.tar.gz
ports-0438143249634ab5028e53cb468d99a894c62995.zip
Remove OSVERSION checks that do not make sense any more.
For example (${OSVERSION} >= 900000 && ${OSVERSION} < 900021) is always true, as is (${OSVERSION} > 900002 || ${OSVERSION} < 900000 && ${OSVERSION} > 800107). Regarding patches, when an EXTRA_PATCHES is no longer needed, I remove it, when it is always needed, I renamed it, in one case, I merged two patches. Differential Revision: https://reviews.freebsd.org/D2209
Notes
Notes: svn path=/head/; revision=383107
Diffstat (limited to 'sysutils/swapexd')
-rw-r--r--sysutils/swapexd/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysutils/swapexd/Makefile b/sysutils/swapexd/Makefile
index 08dee419769b..9c6e28d695be 100644
--- a/sysutils/swapexd/Makefile
+++ b/sysutils/swapexd/Makefile
@@ -13,18 +13,13 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= sbin/${PORTNAME} etc/rc.d/swapexd "@sample etc/swapexd.conf.sample"
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/rc.d/swapexd
@${REINPLACE_CMD} -e "s,/etc/,${PREFIX}/etc/,g" ${WRKSRC}/swapexd.h
-.if ${OSVERSION} < 800076
- @${REINPLACE_CMD} -e "s,swapctl -s -m ,swapctl -s -h ,g" ${WRKSRC}/swapexd.c
-.endif
do-install:
${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>
+.include <bsd.port.mk>