1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix rc script

Reported by:	Adam McMaster <adam@moosoft.net>
This commit is contained in:
Pav Lucistnik 2005-11-15 20:48:23 +00:00
parent a8758fe8aa
commit c102162b3a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148403
2 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= privoxy
PORTVERSION= 3.0.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ijbswa
@ -32,7 +32,7 @@ MAN1= privoxy.1
post-patch:
${REINPLACE_CMD} \
-e 's,^\(confdir\) \.,\1 ${PREFIX}/etc/privoxy,' \
-e 's,^\(logdir\) \.,\1 /tmp,' \
-e 's,^\(logdir\) \.,\1 /var/log/privoxy,' \
-e 's,^\(actionsfile standard\),#\1,' \
-e 's,^\(actionsfile user\),#\1,' \
${WRKSRC}/config
@ -66,6 +66,9 @@ post-install:
${TOUCH} /var/log/jarfile
${CHOWN} privoxy:privoxy /var/log/jarfile
${CHMOD} 0600 /var/log/jarfile
${TOUCH} /var/run/privoxy
${CHOWN} privoxy:privoxy /var/run/privoxy
${CHMOD} 0600 /var/run/privoxy
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -11,7 +11,7 @@
#
privoxy_enable=${privoxy_enable-"NO"}
privoxy_flags=${privoxy_flags-""}
privoxy_pidfile=${privoxy_pidfile-"/var/run/privoxy.pid"}
privoxy_pidfile=${privoxy_pidfile-"/var/run/privoxy/privoxy.pid"}
. %%RC_SUBR%%
@ -30,7 +30,7 @@ privoxy_start()
echo "${name} is already running"
else
echo "Starting ${name}."
su -m privoxy -c '${command} ${privoxy_flags} ${configfile} --pidfile ${pidfile}' \
su -m privoxy -c "${command} ${privoxy_flags} ${configfile} --pidfile ${pidfile}" \
1>/dev/null 2>&1
fi
}