wok-stable annotate openldap/receipt @ rev 9960

fbida: fix receipt
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 18 15:36:13 2011 +0200 (2011-05-18)
parents c4a605195941
children cb960ec47b53
rev   line source
pascal@1155 1 # SliTaz package receipt.
pascal@1155 2
pascal@1155 3 PACKAGE="openldap"
slaxemulator@8534 4 VERSION="2.4.24"
pascal@1423 5 CATEGORY="misc"
pascal@1155 6 SHORT_DESC="LDAP database system."
pascal@1155 7 MAINTAINER="pascal.bellard@slitaz.org"
slaxemulator@6796 8 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@1155 9 WEB_SITE="http://www.openldap.org/"
slaxemulator@6796 10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
gokhlayeh@8166 11 DEPENDS="libdb openssl libkrb5 libcomerr3 util-linux-ng-uuid icu \
gokhlayeh@8166 12 gcc-lib-base libldap"
gokhlayeh@8166 13 BUILD_DEPENDS="db-dev libdb libsasl-without-ldap"
pascal@2347 14 CONFIG_FILES="/etc/openldap"
pascal@2347 15 DATABASE_FILES="/var/openldap-*"
pascal@1155 16
pascal@1155 17 # Rules to configure and make the package.
pascal@1155 18 compile_rules()
pascal@1155 19 {
pascal@1155 20
pascal@1155 21 cd $src
pascal@1155 22 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1155 23 --sysconfdir=/etc --localstatedir=/var \
pascal@4272 24 --libexecdir=/usr/lib/$PACKAGE \
pascal@4271 25 --mandir=/usr/share/man $CONFIGURE_ARGS
pascal@4271 26 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
pascal@5781 27 make -j 4 CPPFLAGS=-D_GNU_SOURCE &&
pascal@1155 28 make DESTDIR=$PWD/_pkg install
pascal@1155 29 }
pascal@1155 30
pascal@1155 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1155 32 genpkg_rules()
pascal@1155 33 {
pascal@4272 34 mkdir -p $fs/usr/lib $fs/etc/ldap.d
pascal@1155 35 cp -a $_pkg/etc $fs
pascal@1155 36 cp -a $_pkg/usr/bin $fs/usr
pascal@1155 37 cp -a $_pkg/usr/sbin $fs/usr
pascal@4272 38 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
pascal@4272 39 strip -s $fs/usr/lib/$PACKAGE/*
pascal@1155 40 cp -a $_pkg/var $fs
pascal@1155 41 cp -a stuff/etc/init.d $fs/etc
pascal@1155 42 chmod 700 $fs/var/openldap-data $fs/etc/openldap
pascal@1155 43 }
pascal@1156 44
pascal@1156 45 # Pre and post install commands for Tazpkg.
pascal@1156 46 post_install()
pascal@1156 47 {
pascal@1923 48 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
pascal@1923 49 while read file; do
pascal@1923 50 pkg=$(dirname $file)
pascal@1923 51 [ "$pkg" = "$PACKAGE" ] && continue
pascal@1923 52 echo "Reconfiguring $pkg for $PACKAGE..."
pascal@5086 53 chroot $1/ tazpkg reconfigure $pkg
pascal@1923 54 done
pascal@1156 55 }