Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Feb 2005 16:31:01 +0500
From:      Boris Kovalenko <boris@ntmk.ru>
To:        freebsd-ports@freebsd.org
Subject:   We need new feature for pkg_create?
Message-ID:  <42075175.20603@ntmk.ru>

next in thread | raw e-mail | index | archive | help
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?

-- 
With respect,
	Boris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42075175.20603>