summaryrefslogtreecommitdiff
path: root/openldap/Pkgfile
blob: e53bfae7fa1d51e0b06115628cff84a0f2473c80 (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: Matt Housh, jaeger at morpheus dot net
    5 # Depends on: perl, openssl, cyrus-sasl
    6 
    7 name=openldap
    8 version=2.3.20
    9 distversion=stable-20060227
   10 release=1
   11 source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-$distversion.tgz \
   12 	$name-config.patch \
   13 	slurpd \
   14 	slapd)
   15 
   16 build(){
   17 	cd $name-$version
   18 	patch -p0 < $SRC/$name-config.patch
   19 
   20 	./configure --prefix=/usr 		--sysconfdir=/etc \
   21 		--libexecdir=/usr/sbin		--localstatedir=/var/openldap \
   22 		--disable-nls			--enable-syslog \
   23 		--with-threads			--with-tls \
   24 		--with-cyrus-sasl		--enable-spasswd \
   25 		--enable-dynamic		--enable-ipv6 \
   26 		--enable-modules		--enable-crypt \
   27 		--enable-rewrite		--enable-ldbm \
   28 		--with-ldbm-api=berkeley	--with-ldbm-type=btree \
   29 		--enable-bdb			--enable-hdb \
   30 		--enable-ldap			--enable-meta \
   31 		--enable-monitor		--enable-dnssrv \
   32 		--enable-null			--enable-perl \
   33 		--with-dyngroup 		--with-proxycache \
   34 		--enable-wrappers 		--enable-slurpd \
   35 		--enable-aci			--enable-shared
   36 
   37 	make depend
   38 	make
   39 	make DESTDIR=$PKG install	
   40 
   41 	sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
   42 	/sbin/ldconfig -n $PKG/usr/lib
   43 
   44 	# compatiblity links
   45 	( cd $PKG/usr/lib; 
   46 	ln -s liblber.so liblber.so.2;
   47 	ln -s libldap.so libldap.so.2;
   48 	ln -s libldap_r.so libldap_r.so.2 ) || exit 1
   49 
   50 	( cd $PKG/usr/sbin; 
   51 	for binsymlink in slapadd slapcat slapdn slapindex slappasswd slaptest; do
   52 		rm -f $binsymlink;
   53 		ln -s slapd $binsymlink;
   54 	done ) || exit 1
   55 
   56 	mkdir -p $PKG/etc/rc.d
   57 	install -m 755 $SRC/slapd $PKG/etc/rc.d/slapd
   58 	install -m 755 $SRC/slurpd $PKG/etc/rc.d/slurpd
   59 
   60 	rm -f $PKG/etc/openldap/schema/README
   61 }

Generated by cgit