updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / 389-admin / PKGBUILD
blob7b0a5e04ecdcd1a57c9fda4a3281cfc0ecdd9b3f
1 # Maintainer: Sergio A. Morales <sergiomorales@archlinux.cl>
2 pkgname=389-admin
3 pkgver=1.1.23
4 pkgrel=2
5 pkgdesc="389 Administration Server HTTP agent"
6 arch=('i686' 'x86_64')
7 url="http://directory.fedoraproject.org/"
8 license=(GPL)
9 depends=('389-ds-base' '389-adminutil' 'mod_nss' 'perl-mozldap')
10 source=("http://directory.fedoraproject.org/sources/$pkgname-$pkgver.tar.bz2")
11 md5sums=('34d7608a1b4b7c1b56d649a3dc407682')
12 install=('389-admin.install')
14 build() {
15         cd $startdir/src/$pkgname-$pkgver
16         [ "${CARCH}" == "x86_64" ] && export USE_64=1
17         ./configure --disable-rpath --prefix=/usr --sysconfdir=/etc --with-adminutil=/usr 
18         make || return 1
19         make install DESTDIR=$pkgdir || return 1
20         mv $pkgdir/etc/rc.d/init.d/dirsrv-admin $pkgdir/etc/rc.d/dirsrv-admin
21         rm -rf $pkgdir/etc/rc.d/init.d
22         
23         chmod 775 ${pkgdir}/etc/dirsrv
24         chmod 700 ${pkgdir}/etc/dirsrv/admin-serv
25         chmod 775 ${pkgdir}/usr/lib/dirsrv
26         
27         #Delete the next lines to re-enable mod_nss
28         sed -i '135 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/httpd.conf
29         sed -i '735 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/httpd.conf
30         sed -i '91 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf
31         sed -i '95 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf
32         sed -i '101 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf
33         sed -i '109 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf
34         sed -i '111 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf
35         sed -i '116 s/^/#/' $pkgdir/etc/dirsrv/admin-serv/console.conf