pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/openldap-server openldap-server: fix PR pkg/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bec87b5a7c42
branches:  trunk
changeset: 401808:bec87b5a7c42
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Fri Sep 27 07:14:02 2019 +0000

description:
openldap-server: fix PR pkg/50679

pkgsrc changes:
---------------
* Make the configuration file DB_CONFIG installed only if 'bdb' option is
  enabled

diffstat:

 databases/openldap-server/Makefile   |  6 +++---
 databases/openldap-server/PLIST      |  4 ++--
 databases/openldap-server/options.mk |  6 ++++--
 3 files changed, 9 insertions(+), 7 deletions(-)

diffs (74 lines):

diff -r 576ea2ecd9fa -r bec87b5a7c42 databases/openldap-server/Makefile
--- a/databases/openldap-server/Makefile        Fri Sep 27 07:00:51 2019 +0000
+++ b/databases/openldap-server/Makefile        Fri Sep 27 07:14:02 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2017/06/28 09:11:39 jperkin Exp $
+# $NetBSD: Makefile,v 1.53 2019/09/27 07:14:02 triaxx Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
 COMMENT=       Lightweight Directory Access Protocol server suite
@@ -51,8 +51,6 @@
 
 CNFS_PERMS=            slapd.conf
 
-DB_CONFIG=             DB_CONFIG
-
 RCD_SCRIPTS=           slapd
 
 FILES_SUBST+=          OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
@@ -71,7 +69,9 @@
 
 .include "../../databases/openldap/Makefile.common"
 
+.if !empty(PKG_OPTIONS:Mbdb)
 CONF_FILES_PERMS+=     ${EGDIR}/DB_CONFIG ${OPENLDAP_VARDIR}/openldap-data/DB_CONFIG ${OPENLDAP_FILEPERMS}
+.endif
 
 .include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
diff -r 576ea2ecd9fa -r bec87b5a7c42 databases/openldap-server/PLIST
--- a/databases/openldap-server/PLIST   Fri Sep 27 07:00:51 2019 +0000
+++ b/databases/openldap-server/PLIST   Fri Sep 27 07:14:02 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2014/03/11 14:05:00 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.13 2019/09/27 07:14:02 triaxx Exp $
 ${PLIST.slapi}lib/libslapi.la
 libexec/slapd
 sbin/slapacl
@@ -10,7 +10,7 @@
 sbin/slappasswd
 sbin/slapschema
 sbin/slaptest
-share/examples/openldap/DB_CONFIG
+${PLIST.bdb}share/examples/openldap/DB_CONFIG
 share/examples/openldap/schema/README
 share/examples/openldap/schema/collective.ldif
 share/examples/openldap/schema/collective.schema
diff -r 576ea2ecd9fa -r bec87b5a7c42 databases/openldap-server/options.mk
--- a/databases/openldap-server/options.mk      Fri Sep 27 07:00:51 2019 +0000
+++ b/databases/openldap-server/options.mk      Fri Sep 27 07:14:02 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.20 2018/12/20 17:54:09 adam Exp $
+# $NetBSD: options.mk,v 1.21 2019/09/27 07:14:02 triaxx Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.openldap-server
 PKG_SUPPORTED_OPTIONS= bdb dso inet6 sasl slapi slp smbk5pwd
@@ -8,7 +8,7 @@
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=   slapi
+PLIST_VARS+=   slapi bdb
 
 ###
 ### Whether to build with the Berkeley DB based slapd backends.
@@ -18,7 +18,9 @@
 ###
 .if !empty(PKG_OPTIONS:Mbdb)
 BDB_ACCEPTED=          db4 db5
+DB_CONFIG=             DB_CONFIG
 CONFIGURE_ARGS+=       --enable-bdb --enable-hdb
+PLIST.bdb=             yes
 TEST_TARGET=           test
 .  include "../../mk/bdb.buildlink3.mk"
 .else



Home | Main Index | Thread Index | Old Index