2015-08-14 00:06:16 +02:00
|
|
|
# Template file for 'libldap'
|
|
|
|
pkgname=openldap
|
2015-12-01 10:10:38 +01:00
|
|
|
version=2.4.43
|
|
|
|
revision=1
|
2015-08-14 00:06:16 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--prefix=/usr
|
|
|
|
--libexecdir=/usr/libexec
|
|
|
|
--sysconfdir=/etc
|
|
|
|
--localstatedir=/var/lib/openldap
|
|
|
|
--sbindir=/usr/bin
|
|
|
|
--enable-dynamic --enable-proctitle --with-tls
|
|
|
|
--enable-ipv6 --enable-local --with-cyrus-sasl --with-threads
|
|
|
|
--enable-syslog --enable-slapd --enable-crypt --enable-spasswd
|
|
|
|
--enable-bdb --enable-hdb --enable-overlays=mod
|
|
|
|
--disable-static --with-yielding_select=yes"
|
|
|
|
hostmakedepends="pkg-config groff automake libtool"
|
|
|
|
makedepends="libressl-devel libsasl-devel db-devel"
|
2015-08-18 08:47:22 +02:00
|
|
|
conf_files="/etc/openldap/ldap.conf /etc/openldap/slapd.conf"
|
2015-08-14 00:06:16 +02:00
|
|
|
short_desc="OpenLDAP (Lightweight Directory Access Protocol)"
|
|
|
|
license="OpenLDAP License v2.8 - BSD alike"
|
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
|
|
homepage="http://www.openldap.org"
|
|
|
|
distfiles="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$version.tgz"
|
2015-12-01 10:10:38 +01:00
|
|
|
checksum=34d78e5598a2b0360d26a9050fcdbbe198c65493b013bb607839d5598b6978c8
|
2015-08-14 00:06:16 +02:00
|
|
|
|
|
|
|
system_accounts="ldap"
|
|
|
|
ldap_homedir="/var/lib/openldap"
|
|
|
|
|
|
|
|
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|%LOCALSTATEDIR%/run|/run/openldap|' servers/slapd/slapd.{conf,ldif}
|
|
|
|
sed -i 's|-$(MKDIR) $(DESTDIR)$(localstatedir)/run|-$(MKDIR) $(DESTDIR)/run/openldap|' servers/slapd/Makefile.in
|
|
|
|
aclocal; autoconf; autoheader; libtoolize -f
|
|
|
|
}
|
|
|
|
post_install() {
|
2015-08-18 08:37:25 +02:00
|
|
|
ln -sf ../libexec/slapd ${DESTDIR}/usr/bin/slapd
|
2015-08-14 00:06:16 +02:00
|
|
|
vsv slapd
|
|
|
|
vlicense LICENSE
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
2015-08-18 08:47:22 +02:00
|
|
|
vmkdir usr/share/examples/openldap
|
|
|
|
mv ${DESTDIR}/etc/openldap/*.{example,default} ${DESTDIR}/usr/share/examples/openldap
|
2015-08-14 00:06:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
libldap-devel_package() {
|
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libldap_package() {
|
|
|
|
short_desc+=" library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
|
|
|
}
|