wok annotate openldap/receipt @ rev 14007

libvpx: fix typo
author Dominique Corbex <domcox@slitaz.org>
date Sun Feb 17 19:44:20 2013 +0100 (2013-02-17)
parents 73641efed1cc
children e9130cce9043
rev   line source
pascal@1155 1 # SliTaz package receipt.
pascal@1155 2
pascal@1155 3 PACKAGE="openldap"
pankso@10430 4 VERSION="2.4.25"
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"
pascal@2347 11 CONFIG_FILES="/etc/openldap"
pascal@2347 12 DATABASE_FILES="/var/openldap-*"
pascal@1155 13
pankso@12481 14 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
pascal@12577 15 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
pankso@10377 16
pascal@1155 17 # Rules to configure and make the package.
pascal@1155 18 compile_rules()
pascal@1155 19 {
pascal@1155 20 cd $src
pankso@10430 21 #--enable-wrappers
pankso@10430 22 #--with-tls openssl|gnutls|moznss
pankso@10430 23 #--enable-spasswd to use Cyrus SASL password
pankso@10377 24 ./configure \
pankso@10377 25 --prefix=/usr \
pankso@10377 26 --sysconfdir=/etc \
pascal@4272 27 --libexecdir=/usr/lib/$PACKAGE \
pankso@10430 28 --localstatedir=/var/lib/$PACKAGE \
pankso@10430 29 --enable-crypt \
pankso@10430 30 --with-threads \
pankso@10430 31 $CONFIGURE_ARGS &&
pascal@4271 32 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
gokhlayeh@11574 33 make $MAKEFLAGS CPPFLAGS=-D_GNU_SOURCE &&
pankso@10377 34 make DESTDIR=$DESTDIR install
pascal@1155 35 }
pascal@1155 36
pascal@1155 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1155 38 genpkg_rules()
pascal@1155 39 {
pascal@4272 40 mkdir -p $fs/usr/lib $fs/etc/ldap.d
pascal@1155 41 cp -a $_pkg/etc $fs
pascal@1155 42 cp -a $_pkg/usr/bin $fs/usr
pascal@1155 43 cp -a $_pkg/usr/sbin $fs/usr
pascal@4272 44 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
pascal@1155 45 cp -a $_pkg/var $fs
pankso@10430 46 cp -a $stuff/etc/init.d $fs/etc
pankso@10430 47 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
pascal@1155 48 }
pascal@1156 49
pascal@1156 50 # Pre and post install commands for Tazpkg.
pascal@1156 51 post_install()
pascal@1156 52 {
pascal@1923 53 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
pascal@1923 54 while read file; do
pascal@1923 55 pkg=$(dirname $file)
pascal@1923 56 [ "$pkg" = "$PACKAGE" ] && continue
pascal@1923 57 echo "Reconfiguring $pkg for $PACKAGE..."
pascal@5086 58 chroot $1/ tazpkg reconfigure $pkg
pascal@1923 59 done
pascal@1156 60 }