wok view openldap/receipt @ rev 2329
get-* (softphones): normalize menu name
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 28 09:41:14 2009 +0000 (2009-02-28) |
parents | bd6010223726 |
children | ac38c3a33f71 |
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/ldap.conf /etc/openldap/slapd.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
19 cd $src
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --sysconfdir=/etc --localstatedir=/var \
22 --mandir=/usr/share/man $CONFIGURE_ARGS
23 make
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/etc/ldap.d
31 cp -a $_pkg/etc $fs
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/sbin $fs/usr
34 cp -a $_pkg/usr/libexec $fs/usr
35 cp -a $_pkg/var $fs
36 cp -a stuff/etc/init.d $fs/etc
37 chmod 700 $fs/var/openldap-data $fs/etc/openldap
38 # Package all mysql pkgs
39 for i in $(cd $WOK; ls -d openldap-* libldap*)
40 do
41 tazwok genpkg $i
42 done
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 tazpkg reconfigure $pkg
54 done
55 }