wok annotate openldap/receipt @ rev 23273

updated pam_ldap (185 -> 186)
author Hans-G?nter Theisgen
date Sat Mar 28 14:46:49 2020 +0100 (2020-03-28)
parents 970c5ec9a60a
children 848e2021d813
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@23174 10 WEB_SITE="https://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/'
pascal@17670 35 make $MAKEFLAGS CPPFLAGS="$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@20319 55 nl="\\n"
pascal@18730 56 ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
pascal@1923 57 while read file; do
pascal@1923 58 pkg=$(dirname $file)
pascal@1923 59 [ "$pkg" = "$PACKAGE" ] && continue
pascal@20319 60 echo -e "${nl}Reconfiguring $pkg for $PACKAGE..."
pascal@20319 61 nl=""
pascal@18730 62 chroot "$1/" tazpkg reconfigure $pkg
pascal@1923 63 done
pascal@1156 64 }