Date: Mon, 15 May 2006 22:04:17 +0200 From: Pav Lucistnik <pav@FreeBSD.org> To: Larry Rosenman <ler@lerctr.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: USE_RC_SUBR question Message-ID: <1147723457.9404.22.camel@ikaros.oook.cz> In-Reply-To: <00f701c67859$baa38960$aa0610ac@aus.pervasive.com> References: <00f701c67859$baa38960$aa0610ac@aus.pervasive.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-+N4qeYXzk1T63P4Mc7aQ Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Larry Rosenman p=ED=B9e v po 15. 05. 2006 v 14:57 -0500: > I just converted one of my ports to the new USE_RC_SUBR=3D convention, an= d > 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. =20 >=20 > 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=20 > rcNG. Put %%SERVER%% in your rc script and have it replaced using SUB_LIST in the Makefile. --=20 Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> East or west, ~ is best. --=-+N4qeYXzk1T63P4Mc7aQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: 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?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEaN7BntdYP8FOsoIRAos/AJ992u44y9S/PbYdlWhQCJlJmpvnAQCdEkXr nHPFBS2qqJHFZZVDzWyVg6s= =sIys -----END PGP SIGNATURE----- --=-+N4qeYXzk1T63P4Mc7aQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147723457.9404.22.camel>