2013-09-03 11:59:01 +02:00
|
|
|
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
|
2008-01-23 09:05:18 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= swapd
|
2014-05-24 17:39:56 +02:00
|
|
|
PORTVERSION= 1.0.5
|
2017-02-25 14:50:59 +01:00
|
|
|
PORTREVISION= 2
|
2008-01-23 09:05:18 +01:00
|
|
|
CATEGORIES= sysutils
|
2014-05-24 17:39:56 +02:00
|
|
|
MASTER_SITES= http://www.rkeene.org/files/oss/swapd/
|
2008-01-23 09:05:18 +01:00
|
|
|
|
2017-01-02 21:04:36 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-07-17 10:57:51 +02:00
|
|
|
COMMENT= Daemon that watches free memory and manages swap files
|
2008-01-23 09:05:18 +01:00
|
|
|
|
2017-02-25 14:50:59 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libstatgrab.so:devel/libstatgrab
|
2008-01-23 09:05:18 +01:00
|
|
|
|
2013-09-03 11:59:01 +02:00
|
|
|
USES= gmake pkgconfig
|
2008-01-23 09:05:18 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
USE_RC_SUBR= swapd
|
|
|
|
|
2010-06-26 00:38:17 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
|
|
|
|
post-install:
|
2017-02-25 14:50:59 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
|
2010-06-26 00:38:17 +02:00
|
|
|
.for f in swapd_swapon swapd_swapoff
|
2014-05-24 17:39:56 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${f} ${STAGEDIR}${PREFIX}/sbin
|
2010-06-26 00:38:17 +02:00
|
|
|
.endfor
|
|
|
|
|
2008-01-23 09:05:18 +01:00
|
|
|
.include <bsd.port.mk>
|