summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libldap/PKGBUILD
blob: 616e6a3c3066bc85f08d28e8f4727b55649bc490 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $Id: PKGBUILD 1627 2008-05-14 03:02:30Z eric $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
pkgname=libldap
pkgver=2.4.11
pkgrel=1
pkgdesc="LDAP client libraries"
arch=(i686 x86_64)
license=('custom')
url="http://www.openldap.org/"
backup=(etc/openldap/ldap.conf)
depends=('libsasl' 'openssl>=0.9.8f')
options=('!libtool' '!makeflags')
makedepends=('tcp_wrappers')
source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-${pkgver}.tgz
	ntlm.patch
	peercred.patch)

build() {
  cd ${startdir}/src/openldap-${pkgver}
#  patch -Np0 -i ${startdir}/src/ntlm.patch || return 1
  patch -Np0 -i ${startdir}/src/peercred.patch || return 1

  ./configure --prefix=/usr \
              --libexecdir=/usr/sbin \
              --sysconfdir=/etc \
              --localstatedir=/var/lib/openldap \
              --enable-crypt --enable-dynamic \
              --with-threads --enable-wrappers \
	      --enable-spasswd --with-cyrus-sasl \
	      --disable-bdb --disable-hdb
  cd include
  make || return 1
  make DESTDIR=${startdir}/pkg install

  cd ../libraries
  make depend
  make || return 1

  make DESTDIR=${startdir}/pkg install

  cd ../doc/man/man3
  make
  make DESTDIR=${startdir}/pkg install

  cd ../man5
  make 
  mkdir -p ${startdir}/pkg/usr/man/man5
  install -m644 ldap.conf.5.tmp ${startdir}/pkg/usr/man/man5/ldap.conf.5
  
  # get rid of duplicate default conf files
  rm ${startdir}/pkg/etc/openldap/*.default

  ln -sf liblber.so ${startdir}/pkg/usr/lib/liblber.so.2
  ln -sf libldap.so ${startdir}/pkg/usr/lib/libldap.so.2

  mkdir -p ${startdir}/pkg/usr/share/licenses/openldap
  install -m644 ${startdir}/src/openldap-${pkgver}/LICENSE \
    ${startdir}/pkg/usr/share/licenses/openldap/
}
md5sums=('920fedbbb5bc61c2ca52c56edeef770a'
         '64c539d5f01f46f329b9d5c1324be4e9'
	 'acc4112845522a6a1a517064c216f781')