wok-current view openldap/receipt @ rev 6074
Add: ruby-gtk2 (0.19.4) - GTK+ bindings for Ruby.
author | Ben Arnold <ben@seawolfsanctuary.com> |
---|---|
date | Fri Aug 27 14:20:01 2010 +0100 (2010-08-27) |
parents | d815e78b71e4 |
children | b87e77db07eb |
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 libkrb5 libcomerr3 util-linux-ng-uuid icu \
12 gcc-lib-base"
13 BUILD_DEPENDS="db-dev libdb"
14 CONFIG_FILES="/etc/openldap"
15 DATABASE_FILES="/var/openldap-*"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
21 cd $src
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --sysconfdir=/etc --localstatedir=/var \
24 --libexecdir=/usr/lib/$PACKAGE \
25 --mandir=/usr/share/man $CONFIGURE_ARGS
26 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
27 make -j 4 CPPFLAGS=-D_GNU_SOURCE &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/etc/ldap.d
35 cp -a $_pkg/etc $fs
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
39 strip -s $fs/usr/lib/$PACKAGE/*
40 cp -a $_pkg/var $fs
41 cp -a stuff/etc/init.d $fs/etc
42 chmod 700 $fs/var/openldap-data $fs/etc/openldap
43 # Package all mysql pkgs
44 for i in $(cd $WOK; ls -d openldap-* libldap*)
45 do
46 tazwok genpkg $i
47 done
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
54 while read file; do
55 pkg=$(dirname $file)
56 [ "$pkg" = "$PACKAGE" ] && continue
57 echo "Reconfiguring $pkg for $PACKAGE..."
58 chroot $1/ tazpkg reconfigure $pkg
59 done
60 }