wok view openldap/receipt @ rev 10420
glibc: Replaced $BUILD_HOST with $HOST_SYSTEM.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue May 24 13:41:23 2011 +0000 (2011-05-24) |
parents | c1a84d84a7ef |
children | f7be9547634c |
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.24"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tgz"
9 WEB_SITE="http://www.openldap.org/"
10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
11 CONFIG_FILES="/etc/openldap"
12 DATABASE_FILES="/var/openldap-*"
14 DEPENDS="libdb openssl libkrb5 libcomerr3 util-linux-ng-uuid icu libldap nspr nss"
15 BUILD_DEPENDS="db-dev libdb libsasl-without-ldap util-linux-ng-uuid-dev
16 nspr-dev nss-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
22 cd $src
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --localstatedir=/var \
27 --libexecdir=/usr/lib/$PACKAGE \
28 $CONFIGURE_ARGS
29 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
30 make -j 4 CPPFLAGS=-D_GNU_SOURCE &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/etc/ldap.d
38 cp -a $_pkg/etc $fs
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
42 strip -s $fs/usr/lib/$PACKAGE/*
43 cp -a $_pkg/var $fs
44 cp -a stuff/etc/init.d $fs/etc
45 chmod 700 $fs/var/openldap-data $fs/etc/openldap
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
52 while read file; do
53 pkg=$(dirname $file)
54 [ "$pkg" = "$PACKAGE" ] && continue
55 echo "Reconfiguring $pkg for $PACKAGE..."
56 chroot $1/ tazpkg reconfigure $pkg
57 done
58 }