wok-6.x view openldap/receipt @ rev 4271

Up openldap (2.4.16)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 25 22:49:42 2009 +0200 (2009-09-25)
parents 46b53ce42491
children f0ddc061e092
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.16"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-stable-20090411.tgz"
9 WEB_SITE="http://www.openldap.org/"
10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-stable/$TARBALL"
11 DEPENDS="libdb openssl cyrus-sasl"
12 BUILD_DEPENDS="db-dev libdb"
13 CONFIG_FILES="/etc/openldap"
14 DATABASE_FILES="/var/openldap-*"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
20 cd $src
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --sysconfdir=/etc --localstatedir=/var \
23 --mandir=/usr/share/man $CONFIGURE_ARGS
24 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
25 make CPPFLAGS=-D_GNU_SOURCE &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/etc/ldap.d
33 cp -a $_pkg/etc $fs
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/libexec $fs/usr
37 strip -s $fs/usr/libexec/*
38 cp -a $_pkg/var $fs
39 cp -a stuff/etc/init.d $fs/etc
40 chmod 700 $fs/var/openldap-data $fs/etc/openldap
41 # Package all mysql pkgs
42 for i in $(cd $WOK; ls -d openldap-* libldap*)
43 do
44 tazwok genpkg $i
45 done
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
52 while read file; do
53 pkg=$(dirname $file)
54 [ "$pkg" = "$PACKAGE" ] && continue
55 echo "Reconfiguring $pkg for $PACKAGE..."
56 tazpkg reconfigure $pkg
57 done
58 }