Subject: Re: how does CONF_FILES work for stunnel
To: Juan RP <juan@xtraeme.UnixBSD.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-pkg
Date: 09/11/2003 11:02:24
On Thu, 11 Sep 2003 10:33:02 +0200
Juan RP <juan@xtraeme.UnixBSD.org> wrote:
>=20
> El 2003.09.11 10:22, Jeremy C. Reed escribi=F3:
> > Maybe I should look at this when I am not tired ... but I don't
> > understand how the security/stunnel gets the stunnel.conf-sample
> > placed into the/usr/pkg/etc/ directory.
> >=20
> > It uses:
> > USE_PKGINSTALL=3D yes
> > PKG_SYSCONFSUBDIR=3D stunnel
> >=20
> > But I don't see where it lists the file(s) to copy.
> >=20
> > I am assuming this is because the admin should edit the example and
> > put in place themselves. (Maybe a MESSAGE?)
> >=20
> > The +DEINSTALL has blank CONF_FILES (and SUPPORT_FILES). So I don't
> > see why it uses USE_PKGINSTALL.
> >=20
> > Is this correct? And explanation?
>=20
> True, PKG_INSTALL there is not very useful, it should provide a sample
> config file into their PKG_SYSCONFSUBDIR (IMHO), but if it uses only
> one file, there's no need to add PKG_SYSCONFSUBDIR, right ? I'm not
> sure how works stunnel, perhaps it uses the configuration directory to
> put more files (who knows?, heh).
It originally didn't install anything in /usr/pkg/etc. What Jeremy sees
there can be a remanent of a previous install.
What this package needs is the following. The --sysconfdir magic could
arguably be made more simple...
Quentin Garnier.
Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /pub/NetBSD-CVS/pkgsrc/security/stunnel/Makefile,v
retrieving revision 1.35
diff -u -r1.35 Makefile
--- Makefile 2003/09/05 19:01:00 1.35
+++ Makefile 2003/09/11 08:59:45
@@ -21,6 +21,8 @@
--sysconfdir=3D"${PKG_SYSCONFDIR}"
=20
PKG_SYSCONFSUBDIR=3D stunnel
+CONF_FILES=3D ${PREFIX}/share/examples/stunnel/stunnel.conf-sample \
+ ${PKG_SYSCONFDIR}/stunnel.conf
=20
.include "../../security/openssl/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"