wok annotate openldap/receipt @ rev 15161

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