From owner-freebsd-ports@FreeBSD.ORG Mon Feb 7 12:54:23 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 2107716A4CE for ; Mon, 7 Feb 2005 12:54:23 +0000 (GMT) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 060FC43D45 for ; Mon, 7 Feb 2005 12:54:22 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 55583125465; Mon, 7 Feb 2005 13:54:20 +0100 (CET) Date: Mon, 7 Feb 2005 13:54:20 +0100 From: Anton Berezin To: Boris Kovalenko Message-ID: <20050207125420.GA85693@heechee.tobez.org> Mail-Followup-To: Anton Berezin , Boris Kovalenko , freebsd-ports@freebsd.org References: <42075175.20603@ntmk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42075175.20603@ntmk.ru> User-Agent: Mutt/1.4.2.1i 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:23 -0000 On Mon, Feb 07, 2005 at 04:31:01PM +0500, Boris Kovalenko wrote: > 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 Would not it just be easier to re-arrange the original plist to be: @cwd %%CWD_TRICK%% ..... @cwd %%RC_DIR%% quagga%%RC_SUFX%% watchquagga%%RC_SUFX%% This should work fine, if me reading of pkg_* code is correct. the disadvantage is, of course, using a feature (-p = replace only the _first_ @cwd), which is not documented. \Anto. -- The moronity of the universe is a monotonically increasing function. -- Jarkko Hietaniemi