wok view openldap/receipt @ rev 10375

rox-filer: fix bdeps...
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 23 12:30:01 2011 +0200 (2011-05-23)
parents c4a605195941
children cb960ec47b53
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.24"
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 DEPENDS="libdb openssl libkrb5 libcomerr3 util-linux-ng-uuid icu \
12 gcc-lib-base libldap"
13 BUILD_DEPENDS="db-dev libdb libsasl-without-ldap"
14 CONFIG_FILES="/etc/openldap"
15 DATABASE_FILES="/var/openldap-*"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
21 cd $src
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --sysconfdir=/etc --localstatedir=/var \
24 --libexecdir=/usr/lib/$PACKAGE \
25 --mandir=/usr/share/man $CONFIGURE_ARGS
26 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
27 make -j 4 CPPFLAGS=-D_GNU_SOURCE &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/etc/ldap.d
35 cp -a $_pkg/etc $fs
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
39 strip -s $fs/usr/lib/$PACKAGE/*
40 cp -a $_pkg/var $fs
41 cp -a stuff/etc/init.d $fs/etc
42 chmod 700 $fs/var/openldap-data $fs/etc/openldap
43 }
45 # Pre and post install commands for Tazpkg.
46 post_install()
47 {
48 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
49 while read file; do
50 pkg=$(dirname $file)
51 [ "$pkg" = "$PACKAGE" ] && continue
52 echo "Reconfiguring $pkg for $PACKAGE..."
53 chroot $1/ tazpkg reconfigure $pkg
54 done
55 }