wok view openldap/receipt @ rev 2378
Add dwm (Dynamic Window Manager for 16Kb pkg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 07 23:40:48 2009 +0100 (2009-03-07) |
parents | 1dd05d636371 |
children | 4482e0fab13a |
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.3.39"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-stable-20071118.tgz"
9 WEB_SITE="http://www.openldap.org/"
10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-stable/$TARBALL"
11 DEPENDS="libdb openssl"
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 make
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/etc/ldap.d
32 cp -a $_pkg/etc $fs
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 cp -a $_pkg/usr/libexec $fs/usr
36 cp -a $_pkg/var $fs
37 cp -a stuff/etc/init.d $fs/etc
38 chmod 700 $fs/var/openldap-data $fs/etc/openldap
39 # Package all mysql pkgs
40 for i in $(cd $WOK; ls -d openldap-* libldap*)
41 do
42 tazwok genpkg $i
43 done
44 }
46 # Pre and post install commands for Tazpkg.
47 post_install()
48 {
49 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
50 while read file; do
51 pkg=$(dirname $file)
52 [ "$pkg" = "$PACKAGE" ] && continue
53 echo "Reconfiguring $pkg for $PACKAGE..."
54 tazpkg reconfigure $pkg
55 done
56 }