Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/ruby-cruisecontrolrb/Makefile,v retrieving revision 1.11 diff -u -r1.11 Makefile --- Makefile 23 Dec 2010 10:48:06 -0000 1.11 +++ Makefile 5 Jan 2011 08:37:57 -0000 @@ -6,6 +6,7 @@ PORTNAME= cruisecontrolrb PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= www devel ruby MASTER_SITES= RF PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} Index: files/cruisecontrolrb.in =================================================================== RCS file: /home/pcvs/ports/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in,v retrieving revision 1.6 diff -u -r1.6 cruisecontrolrb.in --- files/cruisecontrolrb.in 23 Dec 2010 15:32:11 -0000 1.6 +++ files/cruisecontrolrb.in 4 Jan 2011 15:41:57 -0000 @@ -17,14 +17,15 @@ name=cruisecontrolrb rcvar=${name}_enable -pidfile="%%PREFIX%%/www/${name}/tmp/pids/mongrel.pid" -command="%%PREFIX%%/www/${name}/cruise" +homedir="%%PREFIX%%/www/${name}" +pidfile="${homedir}/tmp/pids/mongrel.pid" +command="./cruise" start_cmd="cruisecontrolrb_start" stop_cmd="cruisecontrolrb_stop" cruisecontrolrb_start() { - ${command} start ${command_args} + cd ${homedir} && ${command} start ${command_args} } cruisecontrolrb_stop() { if [ -f $pidfile ]; then