summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-09 22:48:16 +0000
committerjlam <jlam>2004-01-09 22:48:16 +0000
commit2ab6738fe838d14a56abafaccaaefe84126030e7 (patch)
treec154335ce0244c00f4f07ae7c12a72e8eb64ed7e /databases
parentbaf6d4e7aa2c299f605aba699ec327826f9613ea (diff)
downloadpkgsrc-2ab6738fe838d14a56abafaccaaefe84126030e7.tar.gz
Fix the dynamic PLIST generated when building this package with pkgviews
by delaying installation of config files until INSTALL script time.
Diffstat (limited to 'databases')
-rw-r--r--databases/openldap/Makefile18
-rw-r--r--databases/openldap/PLIST3
-rw-r--r--databases/openldap/distinfo4
-rw-r--r--databases/openldap/patches/patch-af27
-rw-r--r--databases/openldap/patches/patch-ag33
5 files changed, 72 insertions, 13 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile
index 3d4dc9b2a85..8a1985be7bc 100644
--- a/databases/openldap/Makefile
+++ b/databases/openldap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2004/01/09 20:43:02 jlam Exp $
+# $NetBSD: Makefile,v 1.64 2004/01/09 22:48:16 jlam Exp $
#
DISTNAME= openldap-2.1.22
@@ -65,6 +65,7 @@ CONFIGURE_ARGS+= --without-kerberos
EGDIR= ${PREFIX}/share/examples/openldap
MAKE_DIRS= ${PKG_SYSCONFDIR} ${PKG_SYSCONFDIR}/schema
OWN_DIRS= /var/openldap
+OWN_DIRS_PERMS= /var/openldap/openldap-data ${ROOT_USER} ${ROOT_GROUP} 0700
OWN_DIRS_PERMS= /var/openldap/openldap-ldbm ${ROOT_USER} ${ROOT_GROUP} 0700
OWN_DIRS_PERMS+= /var/openldap/openldap-slurp ${ROOT_USER} ${ROOT_GROUP} 0700
@@ -91,16 +92,11 @@ SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
RCD_SCRIPTS= slapd
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}/schema
- for f in ${CNFS} ${CNFS_PERMS} ${SUPPS}; do \
- if [ ! -r ${PKG_SYSCONFDIR}/$${f}.default ]; then \
- ${CP} -p ${PKG_SYSCONFDIR}/$${f} \
- ${PKG_SYSCONFDIR}/$${f}.default; \
- fi; \
- ${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${f}.default \
- ${EGDIR}/$${f}; \
- ${RM} -f ${PKG_SYSCONFDIR}/$${f}.default; \
- done
+ ${_ULIMIT_CMD}cd ${WRKSRC}/libraries/libldap; \
+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} install-conf sysconfdir=${EGDIR}
+ ${_ULIMIT_CMD}cd ${WRKSRC}/servers/slapd; \
+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} install-conf sysconfdir=${EGDIR}; \
+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} install-schema sysconfdir=${EGDIR}
.include "../../databases/db4/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
diff --git a/databases/openldap/PLIST b/databases/openldap/PLIST
index 57cbbf6dd34..b6da50e8f0d 100644
--- a/databases/openldap/PLIST
+++ b/databases/openldap/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2003/09/18 05:37:15 markd Exp $
+@comment $NetBSD: PLIST,v 1.10 2004/01/09 22:48:16 jlam Exp $
bin/ldapadd
bin/ldapcompare
bin/ldapdelete
@@ -206,6 +206,7 @@ sbin/slapcat
sbin/slapindex
sbin/slappasswd
share/examples/openldap/ldap.conf
+share/examples/openldap/schema/README
share/examples/openldap/schema/corba.schema
share/examples/openldap/schema/core.schema
share/examples/openldap/schema/cosine.schema
diff --git a/databases/openldap/distinfo b/databases/openldap/distinfo
index e12849cfc24..32a5b2219ad 100644
--- a/databases/openldap/distinfo
+++ b/databases/openldap/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2003/12/04 14:48:17 agc Exp $
+$NetBSD: distinfo,v 1.21 2004/01/09 22:48:16 jlam Exp $
SHA1 (openldap-2.1.22.tgz) = 6cb4b3fc7e513b718eececb55212019791efe63e
Size (openldap-2.1.22.tgz) = 2033763 bytes
@@ -6,3 +6,5 @@ SHA1 (patch-aa) = 0f7f0ad7e11a16d084955f5125db12a5e53bafec
SHA1 (patch-ac) = 56ee06d724a2de895fc373cc57bf3de17058e30b
SHA1 (patch-ad) = 24734ea7dbfc85c0f1a5ebc7ad9209cfe64ef546
SHA1 (patch-ae) = 89c22ffe19651cacdf7a25b492dab46c7637da4d
+SHA1 (patch-af) = 74edff185f7d5222416023801084c069d08ec057
+SHA1 (patch-ag) = 822efbcc01dfd4b6181c25390761f534aaeb4315
diff --git a/databases/openldap/patches/patch-af b/databases/openldap/patches/patch-af
new file mode 100644
index 00000000000..2c38e751ab1
--- /dev/null
+++ b/databases/openldap/patches/patch-af
@@ -0,0 +1,27 @@
+$NetBSD: patch-af,v 1.1 2004/01/09 22:48:16 jlam Exp $
+
+--- libraries/libldap/Makefile.in.orig Sun Mar 30 09:47:09 2003
++++ libraries/libldap/Makefile.in
+@@ -50,17 +50,18 @@ CFFILES=ldap.conf
+
+ install-local: $(CFFILES) FORCE
+ -$(MKDIR) $(DESTDIR)$(libdir)
+- $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
++ $(LTINSTALL) $(INSTALLFLAGS) -m 444 $(LIBRARY) $(DESTDIR)$(libdir)
+ $(LTFINISH) $(DESTDIR)$(libdir)
++
++install-conf: $(CFFILES) FORCE
+ -$(MKDIR) $(DESTDIR)$(sysconfdir)
+ @for i in $(CFFILES); do \
+ if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
+ echo "installing $$i in $(sysconfdir)"; \
+- echo "$(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i"; \
+- $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i; \
++ echo "$(INSTALL) $(INSTALLFLAGS) -m 444 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i"; \
++ $(INSTALL) $(INSTALLFLAGS) -m 444 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i; \
+ else \
+ echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
+ fi; \
+- $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.default; \
+ done
+
diff --git a/databases/openldap/patches/patch-ag b/databases/openldap/patches/patch-ag
new file mode 100644
index 00000000000..cabb8157f8c
--- /dev/null
+++ b/databases/openldap/patches/patch-ag
@@ -0,0 +1,33 @@
+$NetBSD: patch-ag,v 1.1 2004/01/09 22:48:16 jlam Exp $
+
+--- servers/slapd/Makefile.in.orig Mon Mar 31 11:48:17 2003
++++ servers/slapd/Makefile.in
+@@ -312,7 +312,7 @@ veryclean-local-srv: FORCE
+ fi; \
+ done
+
+-install-local-srv: install-slapd install-conf install-schema install-tools
++install-local-srv: install-slapd install-tools
+
+ install-slapd: FORCE
+ -$(MKDIR) $(DESTDIR)$(libexecdir)
+@@ -363,17 +363,14 @@ install-schema: FORCE
+ else \
+ echo "PRESERVING EXISTING SCHEMA FILE $$SD" ; \
+ fi ; \
+- $(INSTALL) $(INSTALLFLAGS) -m 444 $$i $$SD.default ; \
+ done
+
+ install-conf: FORCE
+ @-$(MKDIR) $(DESTDIR)$(sysconfdir)
+- @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data
+- $(INSTALL) $(INSTALLFLAGS) -m 600 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf.default
+ if test ! -f $(DESTDIR)$(sysconfdir)/slapd.conf; then \
+ echo "installing slapd.conf in $(sysconfdir)"; \
+- echo "$(INSTALL) $(INSTALLFLAGS) -m 600 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf"; \
+- $(INSTALL) $(INSTALLFLAGS) -m 600 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf; \
++ echo "$(INSTALL) $(INSTALLFLAGS) -m 444 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf"; \
++ $(INSTALL) $(INSTALLFLAGS) -m 444 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf; \
+ else \
+ echo "PRESERVING EXISTING CONFIGURATION FILE $(DESTDIR)$(sysconfdir)/slapd.conf" ; \
+ fi