From nobody@FreeBSD.org  Sat Jan 31 17:05:39 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F75510656D2
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Jan 2009 17:05:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5CE8D8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Jan 2009 17:05:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0VH5dCa085073
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Jan 2009 17:05:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0VH5dOD085072;
	Sat, 31 Jan 2009 17:05:39 GMT
	(envelope-from nobody)
Message-Id: <200901311705.n0VH5dOD085072@www.freebsd.org>
Date: Sat, 31 Jan 2009 17:05:39 GMT
From: beni brinckman <beni.brinckman@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc: WARNING: run_rc_command: cannot run %%PREFIX%%/sbin/privoxy
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131218
>Category:       ports
>Synopsis:       www/privoxy+ipv6: /etc/rc: WARNING: run_rc_command: cannot run %%PREFIX%%/sbin/privoxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 31 17:10:01 UTC 2009
>Closed-Date:    Thu Jul 01 10:30:05 UTC 2010
>Last-Modified:  Thu Jul 01 10:30:05 UTC 2010
>Originator:     beni brinckman
>Release:        7.1-prerelease
>Organization:
>Environment:
uname -a
FreeBSD bsdaddict 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Mon Nov 24 20:22:16 EST 2008     root@pcbsdx32-7:/usr/obj/pcbsd-build/cvs/7.0.2-src/sys/PCBSD  i386

>Description:
I installed www/privoxy+ipv6, the patched privoxy for ipv6. It installs fine 
but I have to start it everytime manually at boot.

I added this to /etc/rc.conf :
privoxy_enable="YES"
privoxy_flags="/usr/local/etc/privoxy/config"

Since there is no startup script provided, I copied the one (privoxy.in) from 
www/privoxy/files to my /usr/local/etc/rc.d :
root@bsdaddict# ls -l /usr/local/etc/rc.d/privoxy*
-rwxr-xr-x 1 root wheel 1497 20 jan 21:41 /usr/local/etc/rc.d/privoxy
root@bsdaddict#

I tried renaming it to "privoxy.sh" and "privoxy" (without any extension) but 
nothing seems to work. All I get is this error message in dmesg :
root@bsdaddict# dmesg -a | grep privoxy
/etc/rc: WARNING: run_rc_command: cannot run %%PREFIX%%/sbin/privoxy
root@bsdaddict#

Starting privoxy manually is no problem, everything works as it should.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: itetcu 
State-Changed-When: Wed Feb 18 18:07:19 UTC 2009 
State-Changed-Why:  
Wating for maintainer feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131218 

From: Ion-Mihai Tetcu <itetcu@FreeBSD.org>
To: beni brinckman <beni.brinckman@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org, lars.eggert@gmx.net
Subject: Re: ports/131218: /etc/rc: WARNING: run_rc_command: cannot run 
 %%PREFIX%%/sbin/privoxy
Date: Wed, 18 Feb 2009 20:06:42 +0200

 --Sig_/OlD0wPrX+BqM279echq+h1Y
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 On Sat, 31 Jan 2009 17:05:39 GMT
 beni brinckman <beni.brinckman@gmail.com> wrote:
 
 > >Description:
 > I installed www/privoxy+ipv6, the patched privoxy for ipv6. It
 > installs fine but I have to start it everytime manually at boot.
 >=20
 > I added this to /etc/rc.conf :
 > privoxy_enable=3D"YES"
 > privoxy_flags=3D"/usr/local/etc/privoxy/config"
 >=20
 > Since there is no startup script provided, I copied the one
 > (privoxy.in) from www/privoxy/files to my /usr/local/etc/rc.d :
 > root@bsdaddict# ls -l /usr/local/etc/rc.d/privoxy*
 > -rwxr-xr-x _1 root _wheel _1497 20 jan
 > 21:41 /usr/local/etc/rc.d/privoxy root@bsdaddict#
 >=20
 > I tried renaming it to "privoxy.sh" and "privoxy" (without any
 > extension) but nothing seems to work. All I get is this error message
 > in dmesg : root@bsdaddict# dmesg -a | grep privoxy
 > /etc/rc: WARNING: run_rc_command: cannot run %%PREFIX%%/sbin/privoxy
 > root@bsdaddict#
 
 This doesn't work because %%PREFIX%% is replaced at install time.
 And it would require more changes anyway.
 Please take a look here if you want to learn about the way rc.d scripts
 work:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-script=
 s.html
 
 Also, when submitting a port PR, please put category/port at the
 beginning of the synopsis line as this allows the PR to be
 automatically assigned, the maintainer of the port notified, etc.
 
 
 
 --=20
 IOnut - Un^d^dregistered ;) FreeBSD "user"
   "Intellectual Property" is   nowhere near as valuable   as "Intellect"
 FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B
 
 --Sig_/OlD0wPrX+BqM279echq+h1Y
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.10 (FreeBSD)
 
 iEYEARECAAYFAkmcTjMACgkQJ7GIuiH/oeU19gCbBOUTCDJVroLqXP8LOwSuNtmC
 83EAni56HOIXc4TUo2JD23FrMulEJDaB
 =C7DM
 -----END PGP SIGNATURE-----
 
 --Sig_/OlD0wPrX+BqM279echq+h1Y--
State-Changed-From-To: feedback->suspended 
State-Changed-By: pav 
State-Changed-When: Sun Mar 22 17:41:57 UTC 2009 
State-Changed-Why:  
Feedback timeout on maintainer. Suspend until someone provides rc script 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131218 

From: Stefan Walter <stefan@freebsd.org>
To: Lars Eggert <lars.eggert@gmx.net>
Cc: GNATS <FreeBSD-gnats-submit@FreeBSD.org>, larse@isi.edu
Subject: Re: ports/131218: www/privoxy+ipv6: /etc/rc: WARNING:
 run_rc_command: cannot run %%PREFIX%%/sbin/privoxy
Date: Thu, 20 May 2010 10:03:32 +0200

 Dear maintainer of www/privoxy+ipv6,
 
 a problem report has been submitted for your port for which your 
 feedback might be required; its contents can be found at [1]. If it 
 contains a patch or suggestions for a change, please send a followup to 
 the PR explaining whether or not you approve it and want it to be 
 committed.
 
 Regards,
 Stefan
 
 [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/131218
State-Changed-From-To: suspended->closed 
State-Changed-By: stefan 
State-Changed-When: Thu Jul 1 10:27:26 UTC 2010 
State-Changed-Why:  
Feedback timeout (>1 year), and the problem wasn't really in the port but in a 
script the submitter manually copied from the ports tree without also doing the 
necessary variable substitutions. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131218 
>Unformatted:
