wok-stable view openldap/receipt @ rev 4484
Add: bridge-utils, bridge-utils-dev
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Nov 16 13:54:50 2009 +0000 (2009-11-16) |
parents | f49a55eb6ce7 |
children | 5b44af8c1257 |
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 --libexecdir=/usr/lib/$PACKAGE \
24 --mandir=/usr/share/man $CONFIGURE_ARGS
25 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
26 make CPPFLAGS=-D_GNU_SOURCE &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/etc/ldap.d
34 cp -a $_pkg/etc $fs
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
38 strip -s $fs/usr/lib/$PACKAGE/*
39 cp -a $_pkg/var $fs
40 cp -a stuff/etc/init.d $fs/etc
41 chmod 700 $fs/var/openldap-data $fs/etc/openldap
42 # Package all mysql pkgs
43 for i in $(cd $WOK; ls -d openldap-* libldap*)
44 do
45 tazwok genpkg $i
46 done
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
53 while read file; do
54 pkg=$(dirname $file)
55 [ "$pkg" = "$PACKAGE" ] && continue
56 echo "Reconfiguring $pkg for $PACKAGE..."
57 tazpkg reconfigure $pkg
58 done
59 }