Index: head/sysutils/swapexd/Makefile =================================================================== --- head/sysutils/swapexd/Makefile (revision 273247) +++ head/sysutils/swapexd/Makefile (revision 273248) @@ -1,24 +1,29 @@ # New ports collection makefile for: swapexd # Date created: 26 March 2011 # Whom: Jesse Smith # # $FreeBSD$ # PORTNAME= swapexd -PORTVERSION= 0.1 +PORTVERSION= 0.3 CATEGORIES= sysutils MASTER_SITES= http://makeapbi.sourceforge.net/${PORTNAME}/ MAINTAINER= jessefrgsmith@yahoo.ca COMMENT= A tool for growing and shrinking on-disk swap space WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf +PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf etc/rc.d/swapexd +post-patch: + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/rc.d/swapexd + @${REINPLACE_CMD} -e "s,/etc/,${PREFIX}/etc/,g" ${WRKSRC}/swapexd.h + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf + ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/swapexd ${PREFIX}/etc/rc.d .include Property changes on: head/sysutils/swapexd/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/swapexd/distinfo =================================================================== --- head/sysutils/swapexd/distinfo (revision 273247) +++ head/sysutils/swapexd/distinfo (revision 273248) @@ -1,2 +1,2 @@ -SHA256 (swapexd-0.1.tar.gz) = e010703f2951e1f85f3f955d2001bdbe4476c47b9bb83d1172063e7895816b42 -SIZE (swapexd-0.1.tar.gz) = 7252 +SHA256 (swapexd-0.3.tar.gz) = 44fb12987dac7f855251f2ea06bbe427d6728873c01f71231f716e1dcfc71433 +SIZE (swapexd-0.3.tar.gz) = 7816 Property changes on: head/sysutils/swapexd/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/swapexd/files/patch-rc.d__swapexd =================================================================== --- head/sysutils/swapexd/files/patch-rc.d__swapexd (nonexistent) +++ head/sysutils/swapexd/files/patch-rc.d__swapexd (revision 273248) @@ -0,0 +1,46 @@ +--- ./rc.d/swapexd.orig 2011-04-26 18:37:13.000000000 +0200 ++++ ./rc.d/swapexd 2011-04-27 12:49:43.900653110 +0200 +@@ -7,37 +7,16 @@ + . /etc/rc.subr + + name="swapexd" +- rcvar=`set_rcvar` +- +-stop_cmd="swapexd_stop" +-start_cmd="swapexd_start" +- +-load_rc_config $name ++rcvar=`set_rcvar` + + : ${swapexd_enable=NO} + +-swapexd_start() +-{ +- if [ -e "/var/run/swapexd.pid" ] +- then +- echo "swapexd already running?" +- swapexd_stop +- fi +- +- echo "Starting swapexd..." +- (/usr/local/sbin/swapexd -d -p >/dev/null 2>/dev/null) & +-} ++procname="%%PREFIX%%/sbin/swapexd" ++command="/usr/sbin/daemon" ++pidfile="/var/run/swapexd.pid" ++command_args="-f -p ${pidfile} ${procname} -d -p" + +-swapexd_stop() +-{ +- echo "Stoping swapexd..." +- if [ -e "/var/run/swapexd.pid" ] +- then +- PID=`cat /var/run/swapexd.pid` +- kill -9 $PID +- rm /var/run/swapexd.pid +- fi +-} ++load_rc_config $name + + run_rc_command "$1" + Property changes on: head/sysutils/swapexd/files/patch-rc.d__swapexd ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property