mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
93ee365402
This port attempts to monitor swap usage and dynamically add a swapfile as neccessary. PR: ports/148711 Submitted by: Alexander Kuehn <freebsd@nagilum.org> Approved by: wxs (mentor)
41 lines
948 B
Makefile
41 lines
948 B
Makefile
# ports collection makefile for: swapmon
|
|
# Date Created: 27 July 2010
|
|
# Whom: Alexander Kuehn <freebsd@nagilum.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= swapmon
|
|
PORTVERSION= 1.4
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= freebsd@nagilum.org
|
|
COMMENT= Add/remove swapspace as needed
|
|
|
|
LICENSE= BSD
|
|
|
|
NO_BUILD= yes
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
PLIST_FILES= sbin/${PORTNAME}
|
|
|
|
do-install:
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/${PORTNAME}.sh.in \
|
|
> ${WRKDIR}/${PORTNAME}.sh
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/sbin/${PORTNAME}
|
|
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${PREFIX}/man/man1
|
|
|
|
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>
|