wok-current annotate openldap/receipt @ rev 15773

Update tazbug-website/receipt
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 08 00:17:59 2014 +0100 (2014-01-08)
parents e9130cce9043
children 17e313b5b9c1
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"
pascal@15473 8 LICENSE="BSD"
slaxemulator@6796 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@1155 10 WEB_SITE="http://www.openldap.org/"
slaxemulator@6796 11 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
pascal@14772 12 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
pascal@2347 13 CONFIG_FILES="/etc/openldap"
pascal@2347 14 DATABASE_FILES="/var/openldap-*"
pascal@1155 15
pankso@12481 16 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
pascal@12577 17 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
pankso@10377 18
pascal@1155 19 # Rules to configure and make the package.
pascal@1155 20 compile_rules()
pascal@1155 21 {
pascal@1155 22 cd $src
pankso@10430 23 #--enable-wrappers
pankso@10430 24 #--with-tls openssl|gnutls|moznss
pankso@10430 25 #--enable-spasswd to use Cyrus SASL password
pankso@10377 26 ./configure \
pankso@10377 27 --prefix=/usr \
pankso@10377 28 --sysconfdir=/etc \
pascal@4272 29 --libexecdir=/usr/lib/$PACKAGE \
pankso@10430 30 --localstatedir=/var/lib/$PACKAGE \
pankso@10430 31 --enable-crypt \
pankso@10430 32 --with-threads \
pankso@10430 33 $CONFIGURE_ARGS &&
pascal@4271 34 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
gokhlayeh@11574 35 make $MAKEFLAGS CPPFLAGS=-D_GNU_SOURCE &&
pankso@10377 36 make DESTDIR=$DESTDIR install
pascal@1155 37 }
pascal@1155 38
pascal@1155 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1155 40 genpkg_rules()
pascal@1155 41 {
pascal@4272 42 mkdir -p $fs/usr/lib $fs/etc/ldap.d
pascal@15473 43 cp -a $install/etc $fs
pascal@15473 44 cp -a $install/usr/bin $fs/usr
pascal@15473 45 cp -a $install/usr/sbin $fs/usr
pascal@15473 46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
pascal@15473 47 cp -a $install/var $fs
pankso@10430 48 cp -a $stuff/etc/init.d $fs/etc
pankso@10430 49 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
pascal@1155 50 }
pascal@1156 51
pascal@1156 52 # Pre and post install commands for Tazpkg.
pascal@1156 53 post_install()
pascal@1156 54 {
pascal@1923 55 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
pascal@1923 56 while read file; do
pascal@1923 57 pkg=$(dirname $file)
pascal@1923 58 [ "$pkg" = "$PACKAGE" ] && continue
pascal@1923 59 echo "Reconfiguring $pkg for $PACKAGE..."
pascal@5086 60 chroot $1/ tazpkg reconfigure $pkg
pascal@1923 61 done
pascal@1156 62 }