wok view openldap/receipt @ rev 15786

Up: OpenVPN PAM (2.3.2)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 15 18:51:15 2014 +0100 (2014-01-15)
parents e9130cce9043
children 17e313b5b9c1
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.25"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.openldap.org/"
11 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
12 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
13 CONFIG_FILES="/etc/openldap"
14 DATABASE_FILES="/var/openldap-*"
16 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
17 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 #--enable-wrappers
24 #--with-tls openssl|gnutls|moznss
25 #--enable-spasswd to use Cyrus SASL password
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --libexecdir=/usr/lib/$PACKAGE \
30 --localstatedir=/var/lib/$PACKAGE \
31 --enable-crypt \
32 --with-threads \
33 $CONFIGURE_ARGS &&
34 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
35 make $MAKEFLAGS CPPFLAGS=-D_GNU_SOURCE &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/etc/ldap.d
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
47 cp -a $install/var $fs
48 cp -a $stuff/etc/init.d $fs/etc
49 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
56 while read file; do
57 pkg=$(dirname $file)
58 [ "$pkg" = "$PACKAGE" ] && continue
59 echo "Reconfiguring $pkg for $PACKAGE..."
60 chroot $1/ tazpkg reconfigure $pkg
61 done
62 }