Subject: Re: where do *.pl files and *.conf files go?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 04/01/2004 05:31:06
--Signature=_Thu__1_Apr_2004_05_31_06_+0200_QH1eVU+jc7SrIxGZ
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
On Wed, 31 Mar 2004 13:29:41 -0800 (PST)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:
> On Wed, 31 Mar 2004, Pritesh wrote:
>
> > i've built a package which has "<name1>.pl" script and "<name2>.conf"
> > configuration file. when executing the <name1>.pl, it looks into
> > <name2>.conf file for some variables. these variables can be edited in
> > <name2>.conf file.
> >
> > 1) what is the location where i can install these?
> > 2) what is the general location for installation of *.pl files?
>
> I read that you asked same earlier, but nobody answered yet.
>
> If it is not a module, just install the script to ${PREFIX}/bin/.
>
> If the script uses perl 5, then use:
> USE_PERL5= YES
>
> Also, be sure that the path to perl is correct, like:
>
> REPLACE_INTERPRETER+= perl
> _REPLACE.perl.old= .*/bin/perl
> _REPLACE.perl.new= ${PERL5}
> _REPLACE_FILES.perl= name1.pl
Why not just "REPLACE_PERL= foo" ?
> As for configurations, install the configuration to
> ${PREFIX}/share/examples/${PKGBASE}/
>
> and use:
>
> USE_PKGINSTALL= YES
> CONF_FILES= ${PREFIX}/share/examples/${PKGBASE}/name2.conf
> ${PKG_SYSCONFDIR}/name2.conf
--
Juan RP <juan@xtraeme.unixbsd.org>
--Signature=_Thu__1_Apr_2004_05_31_06_+0200_QH1eVU+jc7SrIxGZ
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFAa4z6ypkLYVDran0RAhw6AKCf/QExFlbX4ZXwQQhMBGTB+/V3NwCgzH7x
X1EFzPuwrYdIYKBEyIC+81E=
=W4K0
-----END PGP SIGNATURE-----
--Signature=_Thu__1_Apr_2004_05_31_06_+0200_QH1eVU+jc7SrIxGZ--