Subject: Re: www/adzap
To: Jeremy C. Reed <reed@reedmedia.net>
From: Juan RP <jrp@hispabsd.org>
List: tech-pkg
Date: 06/13/2003 04:56:48
On Thu, 12 Jun 2003 19:46:08 -0700 (PDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:

> On Fri, 13 Jun 2003, [iso-8859-2] Micha=B3 Pasternak wrote:
>=20
> > Okay. Is PKG_SYSCONFDIR /etc or /usr/pkg/etc and are there any reasons
> > why www/adzap doesn't obey that?
>=20
> See patches/patch-aa
> +. /etc/adzap.conf
>=20
> That line should probably be:
>=20
> +. @PKG_SYSCONFDIR@/adzap.conf
>=20
> (Run "make makepathsum" afterward.)
>=20
> And the Makefile should have something like:
> USE_PKGINSTALL=3D         YES
>=20
> CONF_FILES=3D		${PREFIX}/share/examples/adzap/adzap.conf

The pkgsrc/mk/bsd.pkg.install.mk has it:

# CONF_FILES are pairs of example and true config files, used much like
#       MLINKS in the base system.  At post-install time, if the true config
#       file doesn't exist, then the example one is copied into place.  At
#       deinstall time, the true one is removed if it doesn't differ from t=
he
#       example one.

The right way is declare CONF_FILES pointing to 2 configuration files:

EGDIR=3D		     ${PREFIX}/share/examples/azdap/azdap.conf
CONF_FILES=3D	${EGDIR}/azdap.conf	${PKG_SYSCONFDIR}/azdap.conf
...

HTH,
--=20
Juan RP		jrp@hispabsd.org
--