1 # Maintainer: Sergio A. Morales <sergiomorales@archlinux.cl>
5 pkgdesc="389 Administration Server HTTP agent"
7 url="http://directory.fedoraproject.org/"
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')
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
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
23 chmod 775 ${pkgdir}/etc/dirsrv
24 chmod 700 ${pkgdir}/etc/dirsrv/admin-serv
25 chmod 775 ${pkgdir}/usr/lib/dirsrv
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