updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / 389-ds-base / PKGBUILD
blob20e3e73b40979080c3a87d66180ddee74d74cd06
1 # Maintainer: Sergio A. Morales <sergiomorales@archlinux.cl>
2 pkgname=389-ds-base
3 pkgver=1.2.9.9
4 pkgrel=2
5 pkgdesc="389 LDAP Directory Server Base"
6 arch=('i686' 'x86_64')
7 url="http://directory.fedoraproject.org/"
8 license=(GPL)
9 depends=('icu' 'mozldap' 'net-snmp' 'db4.8' 'perl-mozldap')
10 source=("http://directory.fedoraproject.org/sources/$pkgname-$pkgver.tar.bz2")
11 md5sums=("85ca908b219b6b7689bcf411b800e2e2")
13 build() {
14         cd $startdir/src/$pkgname-$pkgver
15         [ "${CARCH}" == "x86_64" ] && export USE_64=1
16         ./configure --enable-autobind --prefix=/usr --sysconfdir=/etc  --with-db-inc=/usr/include/db4.8
17         make || return 1
18         make install DESTDIR=$pkgdir || return 1
19         mv $pkgdir/etc/rc.d/init.d/dirsrv $pkgdir/etc/rc.d/dirsrv
20         rm -rf $pkgdir/etc/rc.d/init.d
21         chmod 775 $pkgdir/usr/lib/dirsrv
22         chmod 775 $pkgdir/etc/dirsrv