wok-4.x view openldap/receipt @ rev 3685

Add: slitaz-doc-menu
author Matthew Sheets <rcx@zoominternet.net>
date Tue Jul 14 13:36:14 2009 +0000 (2009-07-14)
parents 4482e0fab13a
children f49a55eb6ce7
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 strip -s $fs/usr/libexec/*
37 cp -a $_pkg/var $fs
38 cp -a stuff/etc/init.d $fs/etc
39 chmod 700 $fs/var/openldap-data $fs/etc/openldap
40 # Package all mysql pkgs
41 for i in $(cd $WOK; ls -d openldap-* libldap*)
42 do
43 tazwok genpkg $i
44 done
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
51 while read file; do
52 pkg=$(dirname $file)
53 [ "$pkg" = "$PACKAGE" ] && continue
54 echo "Reconfiguring $pkg for $PACKAGE..."
55 tazpkg reconfigure $pkg
56 done
57 }