pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/knot Use PKG_SYSCONF* variables correctly in net/k...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/43431b29cbce
branches:  trunk
changeset: 366229:43431b29cbce
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Aug 07 08:44:14 2017 +0000

description:
Use PKG_SYSCONF* variables correctly in net/knot.

Set PKG_SYSCONFSUBDIR to "knot" to have all of the config files
located in the "knot" subdirectory of ${PKG_SYSCONFBASE}.

Pass ${PKG_SYSCONFBASE} to the configure script since the package's
build infrastructure automatically appends "/knot" to the value
passed in through --sysconfdir.

Remove ${PKG_SYSCONFDIR} from INSTALLATION_DIRS since it is
automatically created by the package install script.

Bump the PKGREVISION due to changes in the package install scripts.

diffstat:

 net/knot/Makefile |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r ec72e55bc774 -r 43431b29cbce net/knot/Makefile
--- a/net/knot/Makefile Mon Aug 07 08:26:38 2017 +0000
+++ b/net/knot/Makefile Mon Aug 07 08:44:14 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.34 2016/12/09 22:28:17 pettai Exp $
+# $NetBSD: Makefile,v 1.35 2017/08/07 08:44:14 jlam Exp $
 
 DISTNAME=      knot-2.3.3
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  https://secure.nic.cz/files/knot-dns/
 EXTRACT_SUFX=  .tar.xz
@@ -14,7 +15,7 @@
 
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --prefix=${PREFIX:Q}
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASE}
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}/knot
 CONFIGURE_ARGS+=       --with-rundir=${VARBASE}/run/knot
 CONFIGURE_ARGS+=       --with-storage=${VARBASE}/knot/lib
@@ -33,7 +34,7 @@
 RCD_SCRIPTS=   knot
 
 EGDIR=                 ${PREFIX}/share/examples/knot
-KNOT_SYSCONFDIR=       ${PKG_SYSCONFDIR}/knot
+PKG_SYSCONFSUBDIR=     knot
 
 SUBST_CLASSES+=                paths
 SUBST_FILES.paths=     ${WRKSRC}/samples/Makefile.in
@@ -41,11 +42,11 @@
 SUBST_SED.paths=       -e 's,@EGDIR@,${EGDIR},'
 
 CONF_FILES=    ${EGDIR}/knot.sample.conf \
-                       ${KNOT_SYSCONFDIR}/knot.sample.conf
+                       ${PKG_SYSCONFDIR}/knot.conf
 CONF_FILES+=   ${EGDIR}/example.com.zone \
-                       ${KNOT_SYSCONFDIR}/example.com.zone
+                       ${PKG_SYSCONFDIR}/example.com.zone
 
-INSTALLATION_DIRS=     ${EGDIR} ${KNOT_SYSCONFDIR}
+INSTALLATION_DIRS=     ${EGDIR}
 OWN_DIRS+=             ${VARBASE}/knot
 
 .include "../../devel/userspace-rcu/buildlink3.mk"



Home | Main Index | Thread Index | Old Index