From owner-freebsd-ports@FreeBSD.ORG Mon May 15 20:04:26 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3B1A16B0AD for ; Mon, 15 May 2006 20:04:26 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (hood.oook.cz [195.250.137.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E24043D68 for ; Mon, 15 May 2006 20:04:23 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from ikaros.oook.cz (localhost [127.0.0.1]) by hood.oook.cz (8.13.6/8.13.6) with ESMTP id k4FK4Ikt018878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 May 2006 22:04:18 +0200 (CEST) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by ikaros.oook.cz (8.13.6/8.13.6/Submit) id k4FK4HVl018877; Mon, 15 May 2006 22:04:17 +0200 (CEST) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: ikaros.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Larry Rosenman In-Reply-To: <00f701c67859$baa38960$aa0610ac@aus.pervasive.com> References: <00f701c67859$baa38960$aa0610ac@aus.pervasive.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-+N4qeYXzk1T63P4Mc7aQ" Date: Mon, 15 May 2006 22:04:17 +0200 Message-Id: <1147723457.9404.22.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Cc: freebsd-ports@FreeBSD.org Subject: Re: USE_RC_SUBR question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 20:04:28 -0000 --=-+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 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--