wok-4.x annotate openldap/receipt @ rev 1968

openldap: external init script support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 01 13:54:26 2009 +0000 (2009-01-01)
parents bd6010223726
children ac38c3a33f71
rev   line source
pascal@1155 1 # SliTaz package receipt.
pascal@1155 2
pascal@1155 3 PACKAGE="openldap"
pascal@1155 4 VERSION="2.3.39"
pascal@1423 5 CATEGORY="misc"
pascal@1155 6 SHORT_DESC="LDAP database system."
pascal@1155 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1155 8 TARBALL="$PACKAGE-stable-20071118.tgz"
pascal@1155 9 WEB_SITE="http://www.openldap.org/"
pascal@1155 10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-stable/$TARBALL"
pascal@1310 11 DEPENDS="libdb openssl"
pascal@1193 12 BUILD_DEPENDS="db-dev libdb"
pascal@1212 13 CONFIG_FILES="/etc/openldap/ldap.conf /etc/openldap/slapd.conf"
pascal@1155 14
pascal@1155 15 # Rules to configure and make the package.
pascal@1155 16 compile_rules()
pascal@1155 17 {
pascal@1155 18
pascal@1155 19 cd $src
pascal@1155 20 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1155 21 --sysconfdir=/etc --localstatedir=/var \
pascal@1155 22 --mandir=/usr/share/man $CONFIGURE_ARGS
pascal@1155 23 make
pascal@1155 24 make DESTDIR=$PWD/_pkg install
pascal@1155 25 }
pascal@1155 26
pascal@1155 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1155 28 genpkg_rules()
pascal@1155 29 {
pascal@1968 30 mkdir -p $fs/usr $fs/etc/ldap.d
pascal@1155 31 cp -a $_pkg/etc $fs
pascal@1155 32 cp -a $_pkg/usr/bin $fs/usr
pascal@1155 33 cp -a $_pkg/usr/sbin $fs/usr
pascal@1155 34 cp -a $_pkg/usr/libexec $fs/usr
pascal@1155 35 cp -a $_pkg/var $fs
pascal@1155 36 cp -a stuff/etc/init.d $fs/etc
pascal@1155 37 chmod 700 $fs/var/openldap-data $fs/etc/openldap
pascal@1155 38 # Package all mysql pkgs
pascal@1155 39 for i in $(cd $WOK; ls -d openldap-* libldap*)
pascal@1155 40 do
pascal@1155 41 tazwok genpkg $i
pascal@1155 42 done
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@1923 53 tazpkg reconfigure $pkg
pascal@1923 54 done
pascal@1156 55 }