2013-09-21 01:05:58 +02:00
|
|
|
# Created by: Alexander Kuehn <freebsd@nagilum.org>
|
2010-08-23 04:40:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= swapmon
|
2012-06-27 15:31:10 +02:00
|
|
|
PORTVERSION= 1.5
|
2010-08-23 04:40:15 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= # none
|
|
|
|
DISTFILES= # none
|
|
|
|
|
|
|
|
MAINTAINER= freebsd@nagilum.org
|
|
|
|
COMMENT= Add/remove swapspace as needed
|
|
|
|
|
2014-12-11 01:40:16 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2010-08-23 04:40:15 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
|
2014-02-25 16:27:15 +01:00
|
|
|
PLIST_FILES= sbin/swapmon man/man1/swapmon.1.gz
|
2010-08-23 04:40:15 +02:00
|
|
|
|
2014-02-25 16:27:15 +01:00
|
|
|
post-extract:
|
2010-08-23 04:40:15 +02:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/${PORTNAME}.sh.in \
|
|
|
|
> ${WRKDIR}/${PORTNAME}.sh
|
2014-02-25 16:27:15 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
|
|
|
${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 \
|
|
|
|
${STAGEDIR}${MANPREFIX}/man/man1
|
2010-08-23 04:40:15 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "To have swapmon run automatically after each boot"
|
|
|
|
@${ECHO_MSG} "execute the following command as root:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " echo '${PORTNAME}_enable=\"YES\"' >>/etc/rc.conf"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|