New comment by CameronNemo on void-packages repository https://github.com/void-linux/void-packages/pull/24750#issuecomment-688575530 Comment: Hello @ailiop-git, This package appears to contain an example configuration file in /var that is a duplicate of one shipped in the /usr/share/examples directory. Would you please verify that this example config is not needed and if so remove it (see patch below)? Thanks, Cameron ```diff diff --git a/srcpkgs/openldap/INSTALL b/srcpkgs/openldap/INSTALL index 386d43a645..20e8baba07 100644 --- a/srcpkgs/openldap/INSTALL +++ b/srcpkgs/openldap/INSTALL @@ -2,6 +2,5 @@ case "$ACTION" in post) chown ldap:ldap etc/openldap/slapd.conf - chown -R ldap:ldap var/lib/openldap ;; esac diff --git a/srcpkgs/openldap/template b/srcpkgs/openldap/template index ce708074fb..2a67446611 100644 --- a/srcpkgs/openldap/template +++ b/srcpkgs/openldap/template @@ -1,6 +1,6 @@ # Template file for 'openldap' pkgname=openldap -version=2.4.52 +version=2.4.53 revision=1 build_style=gnu-configure configure_args="--prefix=/usr @@ -20,10 +20,13 @@ conf_files="/etc/openldap/ldap.conf /etc/openldap/slapd.conf" short_desc="OpenLDAP (Lightweight Directory Access Protocol)" maintainer="Orphaned " license="OLDAP-2.0" -homepage="http://www.openldap.org" +homepage="https://www.openldap.org" distfiles="https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${version}.tgz" -checksum=277b453f8e1593d759e6d6f4c8744f2042fa843e558f8e267f1c7890b8c35508 +checksum=035860e2fb812f2e294ea3e9914944691e4e4f52521b8945a5aacdcd088d8ae8 +make_dirs=" + /var/lib/openldap 0755 ldap ldap + /var/lib/openldap/openldap-data 0755 ldap ldap" system_accounts="ldap" ldap_homedir="/var/lib/openldap" @@ -41,6 +44,8 @@ post_install() { vmkdir usr/share/examples/openldap mv ${DESTDIR}/etc/openldap/*.{example,default} ${DESTDIR}/usr/share/examples/openldap chmod 0644 ${DESTDIR}/usr/share/examples/openldap/* + # example file from above also duplicated in /var + rm -f -- "${DESTDIR}/var/lib/openldap/openldap-data/DB_CONFIG.example" } ```