summaryrefslogtreecommitdiff
path: root/src/stage3/patches/openldap.patch
blob: 1a37a0bc2eb207e5a61c3da83d1f70b390bf79d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/PKGBUILD	2018-03-16 12:55:07.765361033 +0100
+++ b/PKGBUILD	2018-03-16 13:42:59.760946917 +0100
@@ -8,7 +8,7 @@ pkgrel=4
 arch=('i686' 'x86_64')
 url="https://www.openldap.org/"
 license=('custom')
-makedepends=('libltdl' 'libsasl' 'e2fsprogs' 'util-linux' 'chrpath' 'unixodbc')
+makedepends=('libltdl' 'libsasl' 'e2fsprogs' 'util-linux' 'unixodbc')
 options=('!makeflags' 'emptydirs')
 source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pkgbase}-${pkgver}.tgz
         slapd.service openldap.tmpfiles openldap.sysusers openldap-ntlm.patch)
@@ -82,7 +82,7 @@ package_openldap() {
   backup=('etc/openldap/slapd.conf' 'etc/openldap/slapd.ldif')
 
   cd ${pkgbase}-${pkgver}
-  for dir in clients servers doc/man/man{1,5,8}; do
+  for dir in libraries clients servers doc/man/man{1,5,8}; do
     pushd ${dir}
     make DESTDIR="${pkgdir}" install
     popd
@@ -99,6 +99,8 @@ package_openldap() {
   rm "${pkgdir}"/usr/share/man/man5/ldap.conf.5
   rm -r "${pkgdir}"/run
 
+  rm -rf "${pkgdir}"/usr/{lib,include,man3}
+
 # get rid of duplicate default conf files
   rm "${pkgdir}"/etc/openldap/*.default