summaryrefslogtreecommitdiffstats
path: root/openldap/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-01-22 11:38:02 +0100
committerpiernov <piernov@piernov.org>2012-01-22 11:38:02 +0100
commit50e5ce5b17e69be13228e2393c5804b0a79acfab (patch)
tree9845fa9af128d7fdd791755bb2be320f3ba2be4e /openldap/Pkgfile
parent9626427c1a1d9c292fc519810c13b9a8073e777f (diff)
parent8548e8d6882b55dfb509b18dedfb7db17630037d (diff)
downloadnutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.gz
nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.bz2
nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.xz
nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.zip
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-extra
Diffstat (limited to 'openldap/Pkgfile')
-rw-r--r--openldap/Pkgfile74
1 files changed, 74 insertions, 0 deletions
diff --git a/openldap/Pkgfile b/openldap/Pkgfile
new file mode 100644
index 000000000..84e7e634e
--- /dev/null
+++ b/openldap/Pkgfile
@@ -0,0 +1,74 @@
+# Description: Outil permettant d'accéder au protocol LDAP
+# URL: http://www.openldap.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: libldap
+# Run on: libldap
+
+name=openldap
+version=2.4.26
+release=1
+source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$name-$version.tgz)
+
+build() {
+ source /etc/blfs-bootscripts
+ wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
+# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+ cd $name-$version
+ export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/sbin \
+ --mandir=/usr/share/man \
+ --localstatedir=/var/openldap \
+ --disable-nls \
+ --enable-syslog \
+ --with-threads \
+ --with-tls \
+ --with-cyrus-sasl \
+ --enable-spasswd \
+ --enable-dynamic \
+ --enable-ipv6 \
+ --enable-modules \
+ --enable-crypt \
+ --enable-rewrite \
+ --enable-ldbm \
+ --enable-ldbm-api=berkeley \
+ --enable-ldbm-type=btree \
+ --enable-bdb \
+ --enable-hdb \
+ --enable-ldap \
+ --enable-meta \
+ --enable-monitor \
+ --enable-dnssrv \
+ --enable-null \
+ --enable-perl \
+ --with-dyngroup \
+ --with-proxycache \
+ --enable-wrappers \
+ --enable-aci \
+ --enable-shared
+
+ make depend
+ make
+ make DESTDIR=$PKG install
+
+ sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
+ /sbin/ldconfig -n $PKG/usr/lib
+
+ # compatiblity links
+ (cd $PKG/usr/lib;
+ ln -s liblber.so liblber.so.2;
+ ln -s libldap.so libldap.so.2;
+ ln -s libldap_r.so libldap_r.so.2) || exit 1
+ # Installation of the script
+ cd ../$scripts-$scriptsversion
+ make DESTDIR=$PKG install-openldap1
+ # Suppress files from libldap
+ rm -r $PKG/usr/share/man/man{3,5}
+ rm -r $PKG/usr/{lib,include}
+ rm -f $PKG/etc/openldap/schema/README
+}
+