Subject: Re: Dumb question : keep conf at update/reinstall
To: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 07/03/2002 14:41:56
--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Wed, Jul 03, 2002 at 02:27:58PM +0200, Xavier HUMBERT wrote:
> But, no, not a word about keeping conf files. I am looking for a
> rather simple package with conf file, to read as an example, but even
> with grep's help that's not that easy ...

you need to include mk/bsd.pkg.install.mk and define few variables.
check mk/bsd.pkg.install.mk for details.  you can also check various
packages using this framework as examples.

it is as easy as add:

CONF_FILES+=3D    ${PREFIX}/share/examples/yourpackage/config.conf.default \
                ${PKG_SYSCONFDIR}/config.conf

to your package's Makefile.

regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9IvEUWc63C347cOIRAj++AJ4/4lPS+NLMXDu0J0PvF3/V31nExwCeIwQm
XXv7spKtyJOdBm/WCdHau+I=
=Lp82
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--