From owner-freebsd-ports@FreeBSD.ORG Mon Feb 7 12:54:03 2005 Return-Path: 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 D0D1616A4CE for ; Mon, 7 Feb 2005 12:54:03 +0000 (GMT) Received: from gate.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36C6743D4C for ; Mon, 7 Feb 2005 12:54:03 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by gate.xbsd.org (Postfix) with ESMTP id 99F80119EF; Mon, 7 Feb 2005 13:56:41 +0100 (CET) Received: from gate.xbsd.org ([127.0.0.1]) by localhost (gate.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59553-06; Mon, 7 Feb 2005 13:56:37 +0100 (CET) Received: from [192.168.20.107] (ALagny-109-1-26-203.w81-49.abo.wanadoo.fr [81.49.53.203]) by gate.xbsd.org (Postfix) with ESMTP id 755A8119E9; Mon, 7 Feb 2005 13:56:36 +0100 (CET) Message-ID: <420764D8.20700@xbsd.org> Date: Mon, 07 Feb 2005 13:53:44 +0100 From: Florent Thoumie User-Agent: Mozilla Thunderbird 1.0 (X11/20050107) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Boris Kovalenko References: <42075175.20603@ntmk.ru> In-Reply-To: <42075175.20603@ntmk.ru> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4DD5239F8CFEAC8F1ECE5916" X-Virus-Scanned: amavisd-new at xbsd.org cc: freebsd-ports@freebsd.org Subject: Re: We need new feature for pkg_create? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 12:54:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4DD5239F8CFEAC8F1ECE5916 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Boris Kovalenko wrote: > Hello! > > I'm net/quagga port maintainer. My port is installing some scripts > to /etc/rc.d. I know, this is bad, but I really need rcorder to be > applied to my scripts. So, to install scripts, I use next trick: > > @cwd %%RC_DIR%% > quagga%%RC_SUFX%% > watchquagga%%RC_SUFX%% > @cwd %%CWD_TRICK%% > > where %%RC_DR%% is set to /etc/rc.d and %%CWD_TRICK%% is set to > ${PREFIX}. In most cases this works well, but not in case when pkg_add > is used with -p option. So, the question is - may be we really need new > feature for pkg_create like @pushwd and @popwd? So, the trick will look > like > > @pushwd > @cwd %%RC_DIR%% > quagga%%RC_SUFX%% > watchquagga%%RC_SUFX%% > @popwd > > So all will be happy and pkg_add -p will work too. Any comments? Krion just committed a new bsd.port.mk containing some features to handle rcNG scripts installation but unfortunately, I was completely unaware of rcorder stuff at the time I wrote the patch. I'll try to write a new patch to take this rcorder problem in consideration soon. In the meantime, I think you can do without this @pushwd/@popwd just putting your rcNG scripts at the end of pkg-plist, and then you would need only something like (replacing %%CWD%% with "" or "@comment ") : [...] %%CWD%%@cwd %%RC_DIR%% quagga%%RC_SUFX%% watchquagga%%RC_SUFX%% -- Florent Thoumie flz@xbsd.org --------------enig4DD5239F8CFEAC8F1ECE5916 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCB2TdMxEkbVFH3PQRAq4uAJwJdFInY+JSmMlbpY4PHlfe7ALaAwCfaLWQ hEG1dB4xYMvbrYVgKNUdm4Q= =c0jy -----END PGP SIGNATURE----- --------------enig4DD5239F8CFEAC8F1ECE5916--