freebsd-ports/sysutils/swapexd/Makefile
Baptiste Daroussin 2ae9169020 - update to 0.3
- add a patch to have a cleaner rc script and make the port respect PREFIX

PR:		ports/156663
Submitted by:	Jesse <jessefrgsmith _at_ yahoo.ca> (maintainer)
2011-04-27 10:54:11 +00:00

29 lines
816 B
Makefile

# New ports collection makefile for: swapexd
# Date created: 26 March 2011
# Whom: Jesse Smith
#
# $FreeBSD$
#
PORTNAME= swapexd
PORTVERSION= 0.3
CATEGORIES= sysutils
MASTER_SITES= http://makeapbi.sourceforge.net/${PORTNAME}/
MAINTAINER= jessefrgsmith@yahoo.ca
COMMENT= A tool for growing and shrinking on-disk swap space
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf etc/rc.d/swapexd
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/rc.d/swapexd
@${REINPLACE_CMD} -e "s,/etc/,${PREFIX}/etc/,g" ${WRKSRC}/swapexd.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf
${INSTALL_SCRIPT} ${WRKSRC}/rc.d/swapexd ${PREFIX}/etc/rc.d
.include <bsd.port.mk>