USE_RC_SUBR question

Pav Lucistnik pav at
Mon May 15 20:04:28 UTC 2006

Larry Rosenman píše v po 15. 05. 2006 v 14:57 -0500:

> I just converted one of my ports to the new USE_RC_SUBR= convention, and
> realized
> after it was committed that I screwed up, and installed my own version of
> the rc.d/ script
> as well as the one USE_RC_SUBR installed.  
> In trying to fix it, I have a couple of questions:
> 1) is there an (automated?) way to get which version (exilog or
>    so I can stop the process on uninstall?

Not easily.  You can evaluate ${OSVERSION} and pass the script name into
plist using PLIST_SUB.  Exact ${OSVERSION} values can be found inside

For the systematic solution in the future, check out ports/93373

> 2) is there a way to get at the Environment Variables (I can use either
> PostgreSQL or
> MySQL, and would like to have the startup script have the right REQUIRE
> lines for 
> rcNG.

Put %%SERVER%% in your rc script and have it replaced using SUB_LIST in
the Makefile.

Pav Lucistnik <pav at>
              <pav at>

East or west, ~ is best.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
Url :

More information about the freebsd-ports mailing list