wok-current view openldap/receipt @ rev 13564
Add openbox-imlib2 (avoid dep on imlim2 for default ob, do we realy need icons in menus ?)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 03 14:19:57 2012 +0100 (2012-11-03) |
parents | 73641efed1cc |
children | e9130cce9043 |
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-uuid libldap"
15 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
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 $MAKEFLAGS 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 }