2013-09-03 09:59:01 +00:00
|
|
|
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
|
2008-01-23 08:05:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= swapd
|
|
|
|
PORTVERSION= 1.0.3
|
2010-06-25 22:38:17 +00:00
|
|
|
PORTREVISION= 1
|
2008-01-23 08:05:18 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.rkeene.org/files/oss/swapd/source/
|
|
|
|
|
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
|
|
|
COMMENT= A daemon that watches free memory and manages swap files
|
|
|
|
|
|
|
|
LIB_DEPENDS= statgrab:${PORTSDIR}/devel/libstatgrab
|
|
|
|
|
2013-09-03 09:59:01 +00:00
|
|
|
USES= gmake pkgconfig
|
2008-01-23 08:05:18 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
USE_RC_SUBR= swapd
|
|
|
|
MAN5= swapd.conf.5
|
|
|
|
MAN8= swapd.8
|
|
|
|
|
2013-09-20 23:05:58 +00:00
|
|
|
NO_STAGE= yes
|
2010-06-25 22:38:17 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for f in swapd_swapon swapd_swapoff
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${f} ${PREFIX}/sbin
|
|
|
|
.endfor
|
|
|
|
|
2008-01-23 08:05:18 +00:00
|
|
|
.include <bsd.port.mk>
|