USE_RC_SUBR question

Pav Lucistnik pav at FreeBSD.org
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 exilog.sh)
>    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
bsd.port.mk.

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 oook.cz>
              <pav at FreeBSD.org>

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?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060515/5629ec64/attachment.pgp


More information about the freebsd-ports mailing list