OPTIONS, LATEST_LINK, and RCng

Freddie Cash fcash-ml at sd73.bc.ca
Mon Feb 23 10:49:02 PST 2004


> Freddie Cash wrote:
>> While updating the www/dansguardian* ports to use the new OPTIONS
>> and LATEST_LINK variables, I noticed that the www/squid port now
>> uses RCng for the startup script.  This is good news, because it
>> means I can rename the dansguardian startup script back to
>> dansguardian.sh and just use RCng to make sure it's started after
>> squid.

> This will work only if you move your start/stop scripts
> to /etc/rc.d, see PR 56736:
>   <http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/56736>

Hmmmm, okay, I'll have a look at that and see if it's worth the effort
right now.

>> One quick question:  Should "squid" be added to the REQUIRE line,
>> or is that only for system services?

> Since you have a RUN_DEPENDS of squid, yes.

Check.

> You should just USE_RC_SUBR=yes with
> post-build:
> 	${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},g' ${FILESDIR}/dansguardian.sh \
> 		>${WRKDIR}/dansguardian.sh
> in the Makefile and . %%RC_SUBR%% in the start/stop script

Something else to chew over.  Thanks.

--
Freddie Cash
fcash-ml at sd73.bc.ca


More information about the freebsd-ports mailing list