wok view openldap/receipt @ rev 11417

add: libesmtp, libesmtp-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Dec 14 02:29:52 2011 +0100 (2011-12-14)
parents cb960ec47b53
children 8e4c74abdf74
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 TARBALL="$PACKAGE-$VERSION.tgz"
9 WEB_SITE="http://www.openldap.org/"
10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
11 CONFIG_FILES="/etc/openldap"
12 DATABASE_FILES="/var/openldap-*"
14 DEPENDS="libdb openssl libcomerr3 util-linux-ng-uuid libldap"
15 BUILD_DEPENDS="db-dev libdb util-linux-ng-uuid-dev openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 #--enable-wrappers
22 #--with-tls openssl|gnutls|moznss
23 #--enable-spasswd to use Cyrus SASL password
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --libexecdir=/usr/lib/$PACKAGE \
28 --localstatedir=/var/lib/$PACKAGE \
29 --enable-crypt \
30 --with-threads \
31 $CONFIGURE_ARGS &&
32 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
33 make -j 4 CPPFLAGS=-D_GNU_SOURCE &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib $fs/etc/ldap.d
41 cp -a $_pkg/etc $fs
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/sbin $fs/usr
44 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
45 cp -a $_pkg/var $fs
46 cp -a $stuff/etc/init.d $fs/etc
47 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
54 while read file; do
55 pkg=$(dirname $file)
56 [ "$pkg" = "$PACKAGE" ] && continue
57 echo "Reconfiguring $pkg for $PACKAGE..."
58 chroot $1/ tazpkg reconfigure $pkg
59 done
60 }