summaryrefslogtreecommitdiff
path: root/sysutils/swapmon/Makefile
blob: 61fd9e8b511e852632313857a7d00bef2e6a5e70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Alexander Kuehn <freebsd@nagilum.org>
# $FreeBSD$

PORTNAME=	swapmon
PORTVERSION=	1.5
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}

NO_STAGE=	yes
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>