mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 08:33:51 +02:00
openldap: add slapd.conf to conf_files; misc tweaks.
This commit is contained in:
parent
f2be949a42
commit
ae82eb8bf9
2 changed files with 6 additions and 8 deletions
|
@ -1,10 +1,7 @@
|
||||||
# INSTALL
|
# INSTALL
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
post)
|
post)
|
||||||
if [ "$UPDATE" = "no" ]; then
|
chown ldap:ldap etc/openldap/slapd.conf
|
||||||
chown ldap:ldap /etc/openldap/slapd.conf
|
chown -R ldap:ldap var/lib/openldap
|
||||||
chown -R ldap:ldap /var/lib/openldap
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libldap'
|
# Template file for 'libldap'
|
||||||
pkgname=openldap
|
pkgname=openldap
|
||||||
version=2.4.42
|
version=2.4.42
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix=/usr
|
configure_args="--prefix=/usr
|
||||||
--libexecdir=/usr/libexec
|
--libexecdir=/usr/libexec
|
||||||
|
@ -15,7 +15,7 @@ configure_args="--prefix=/usr
|
||||||
--disable-static --with-yielding_select=yes"
|
--disable-static --with-yielding_select=yes"
|
||||||
hostmakedepends="pkg-config groff automake libtool"
|
hostmakedepends="pkg-config groff automake libtool"
|
||||||
makedepends="libressl-devel libsasl-devel db-devel"
|
makedepends="libressl-devel libsasl-devel db-devel"
|
||||||
conf_files="/etc/openldap/ldap.conf"
|
conf_files="/etc/openldap/ldap.conf /etc/openldap/slapd.conf"
|
||||||
short_desc="OpenLDAP (Lightweight Directory Access Protocol)"
|
short_desc="OpenLDAP (Lightweight Directory Access Protocol)"
|
||||||
license="OpenLDAP License v2.8 - BSD alike"
|
license="OpenLDAP License v2.8 - BSD alike"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -26,7 +26,6 @@ checksum=eeb7b0e2c5852bfd2650e83909bb6152835c0b862fab10b63954dc1bcbba8e63
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
system_accounts="ldap"
|
system_accounts="ldap"
|
||||||
ldap_homedir="/var/lib/openldap"
|
ldap_homedir="/var/lib/openldap"
|
||||||
make_dirs="/var/lib/openldap 0755 ldap ldap"
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i 's|#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"|#define LDAPI_SOCK LDAP_DIRSEP "run" LDAP_DIRSEP "openldap" LDAP_DIRSEP "ldapi"|' include/ldap_defaults.h
|
sed -i 's|#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"|#define LDAPI_SOCK LDAP_DIRSEP "run" LDAP_DIRSEP "openldap" LDAP_DIRSEP "ldapi"|' include/ldap_defaults.h
|
||||||
|
@ -39,6 +38,8 @@ post_install() {
|
||||||
vsv slapd
|
vsv slapd
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
||||||
|
vmkdir usr/share/examples/openldap
|
||||||
|
mv ${DESTDIR}/etc/openldap/*.{example,default} ${DESTDIR}/usr/share/examples/openldap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue