svn commit: r361688 - in head/www/fcgiwrap: . files
Kurt Jaeger
pi at FreeBSD.org
Sun Jul 13 15:30:09 UTC 2014
Author: pi
Date: Sun Jul 13 15:30:08 2014
New Revision: 361688
URL: http://svnweb.freebsd.org/changeset/ports/361688
QAT: https://qat.redports.org/buildarchive/r361688/
Log:
www/fcgiwrap: fix rc script, strip sbin/fcgiwrap
PR: 186638
Submitted by: johan at stromnet.se
Approved by: freebsd at skysmurf.nl (maintainer)
Modified:
head/www/fcgiwrap/Makefile
head/www/fcgiwrap/files/fcgiwrap.in
Modified: head/www/fcgiwrap/Makefile
==============================================================================
--- head/www/fcgiwrap/Makefile Sun Jul 13 14:53:17 2014 (r361687)
+++ head/www/fcgiwrap/Makefile Sun Jul 13 15:30:08 2014 (r361688)
@@ -2,6 +2,7 @@
PORTNAME= fcgiwrap
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= GH \
http://www.skysmurf.nl/comp/FreeBSD/distfiles/
@@ -32,4 +33,7 @@ PLIST_FILES= sbin/fcgiwrap man/man8/fcgi
post-patch:
@${REINPLACE_CMD} 's/@prefix@@mandir@/@mandir@/' ${WRKSRC}/Makefile.in
+post-stage:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/fcgiwrap
+
.include <bsd.port.mk>
Modified: head/www/fcgiwrap/files/fcgiwrap.in
==============================================================================
--- head/www/fcgiwrap/files/fcgiwrap.in Sun Jul 13 14:53:17 2014 (r361687)
+++ head/www/fcgiwrap/files/fcgiwrap.in Sun Jul 13 15:30:08 2014 (r361688)
@@ -96,7 +96,7 @@ if [ -n "$2" ]; then
eval fcgiwrap_fib="\${fcgiwrap_${profile}_fib:-${fcgiwrap_fib}}"
eval fcgiwrap_user="\${fcgiwrap_${profile}_user:-${fcgiwrap_user}}"
eval fcgiwrap_socket="\${fcgiwrap_${profile}_socket:?}"
- eval fcgiwrap_flags="\${fcgiwrap_${profile}_flags:-${fciwrap_flags}}"
+ eval fcgiwrap_flags="\${fcgiwrap_${profile}_flags:-${fcgiwrap_flags}}"
else
echo "$0: extra argument ignored"
fi
@@ -117,6 +117,10 @@ else
fi
fi
-command_args="-f -p ${pidfile} ${procname} -s ${fcgiwrap_socket}"
+# run_rc_command would send ${name}_flags as parameters to $command (daemon)
+# This ensures they are actually passed to fcgiwrap instead.
+actual_fcgiwrap_flags="${fcgiwrap_flags}"
+fcgiwrap_flags=""
+command_args="-f -p ${pidfile} ${procname} -s ${fcgiwrap_socket} ${actual_fcgiwrap_flags}"
run_rc_command "$1"
More information about the svn-ports-all
mailing list