wok-current view openldap/receipt @ rev 2898

Add: gaupol (subtitles editor)
author Claudinei Pereira <claudinei@slitaz.org>
date Tue May 05 04:04:47 2009 +0000 (2009-05-05)
parents ac38c3a33f71
children 46b53ce42491
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 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 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 }