wok-stable view openldap/receipt @ rev 1172
get-google-earth: use bunzip2 instead of bzip2 -d
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 02 08:15:51 2008 +0000 (2008-08-02) |
parents | c13c815a576c |
children | 7a35811f4574 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.3.39"
5 CATEGORY="system"
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"
12 BUILD_DEPENDS="db-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
18 cd $src
19 ./configure --prefix=/usr --infodir=/usr/share/info \
20 --sysconfdir=/etc --localstatedir=/var \
21 --mandir=/usr/share/man $CONFIGURE_ARGS
22 make
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $_pkg/etc $fs
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/sbin $fs/usr
33 cp -a $_pkg/usr/libexec $fs/usr
34 cp -a $_pkg/var $fs
35 cp -a stuff/etc/init.d $fs/etc
36 chmod 700 $fs/var/openldap-data $fs/etc/openldap
37 # Package all mysql pkgs
38 for i in $(cd $WOK; ls -d openldap-* libldap*)
39 do
40 tazwok genpkg $i
41 done
42 }
44 # Pre and post install commands for Tazpkg.
45 post_install()
46 {
47 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
48 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
49 etc/openldap/ldap.conf
50 etc/openldap/slapd.conf
51 EOT
52 }
54 repack_cleanup()
55 {
56 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
57 }