summaryrefslogtreecommitdiff
path: root/openldap/Pkgfile
blob: 00fb8c041d02820587ef7bb74396c1e184ef1ba9 (plain)
    1 # Description: Lightweight Directory Access Protocol (LDAP) Toolkit
    2 # URL: http://www.openldap.org/
    3 # Packager: Daniel Mueller, daniel at danm dot de
    4 # Maintainer: Richard Pöttler, richard dot poettler at gmail dot com
    5 # Depends on: perl, openssl, cyrus-sasl
    6 
    7 name=openldap
    8 version=2.3.39
    9 distversion=stable-20071118
   10 release=1
   11 source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/$name-$distversion.tgz \
   12 	$name-config.patch slurpd slapd)
   13 
   14 build(){
   15 	cd $name-$version
   16 	patch -p0 -i $SRC/$name-config.patch
   17 
   18 	./configure --prefix=/usr \
   19 		--sysconfdir=/etc \
   20 		--libexecdir=/usr/sbin \
   21 		--localstatedir=/var/openldap \
   22 		--disable-nls \
   23 		--enable-syslog \
   24 		--with-threads \
   25 		--with-tls \
   26 		--with-cyrus-sasl \
   27 		--enable-spasswd \
   28 		--enable-dynamic \
   29 		--enable-ipv6 \
   30 		--enable-modules \
   31 		--enable-crypt \
   32 		--enable-rewrite \
   33 		--enable-ldbm \
   34 		--enable-ldbm-api=berkeley \
   35 		--enable-ldbm-type=btree \
   36 		--enable-bdb \
   37 		--enable-hdb \
   38 		--enable-ldap \
   39 		--enable-meta \
   40 		--enable-monitor \
   41 		--enable-dnssrv \
   42 		--enable-null \
   43 		--enable-perl \
   44 		--with-dyngroup \
   45 		--with-proxycache \
   46 		--enable-wrappers \
   47 		--enable-slurpd \
   48 		--enable-aci \
   49 		--enable-shared
   50 
   51 	make depend
   52 	make
   53 	make DESTDIR=$PKG install   
   54 
   55 	sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
   56 	/sbin/ldconfig -n $PKG/usr/lib
   57 
   58 # compatiblity links
   59 	(cd $PKG/usr/lib; 
   60 	 ln -s liblber.so liblber.so.2;
   61 	 ln -s libldap.so libldap.so.2;
   62 	 ln -s libldap_r.so libldap_r.so.2) || exit 1
   63 
   64 	mkdir -p $PKG/etc/rc.d
   65 	install -m 755 $SRC/slapd $PKG/etc/rc.d/slapd
   66 	install -m 755 $SRC/slurpd $PKG/etc/rc.d/slurpd
   67 
   68 	rm -f $PKG/etc/openldap/schema/README
   69 }

Generated by cgit