1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

www/fcgiwrap: fix rc script, strip sbin/fcgiwrap

PR:		186638
Submitted by:	johan@stromnet.se
Approved by:	freebsd@skysmurf.nl (maintainer)
This commit is contained in:
Kurt Jaeger 2014-07-13 15:30:08 +00:00
parent 0bf075c98b
commit 599ded05f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361688
2 changed files with 10 additions and 2 deletions

View File

@ -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/fcgiwrap.8.gz
post-patch:
@${REINPLACE_CMD} 's/@prefix@@mandir@/@mandir@/' ${WRKSRC}/Makefile.in
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/fcgiwrap
.include <bsd.port.mk>

View File

@ -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"