wok-next annotate openldap/receipt @ rev 19920

apache: update bdeps; libsdl: tiny patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 18:38:33 2017 +0200 (2017-10-14)
parents 9e01bc6321ea
children 0e7893ac206d
rev   line source
al@19741 1 # SliTaz package receipt v2.
pascal@1155 2
pascal@1155 3 PACKAGE="openldap"
al@19741 4 VERSION="2.4.44"
pascal@1423 5 CATEGORY="misc"
al@19741 6 SHORT_DESC="LDAP database system"
pascal@1155 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15473 8 LICENSE="BSD"
al@19741 9 WEB_SITE="http://www.openldap.org/"
al@19741 10
slaxemulator@6796 11 TARBALL="$PACKAGE-$VERSION.tgz"
al@19741 12 WGET_URL="http://mirror.eu.oneandone.net/software/openldap/openldap-release/$TARBALL"
pascal@1155 13
al@19741 14 BUILD_DEPENDS="util-linux-uuid-dev openssl-dev libtool groff"
al@19741 15 SPLIT="libldap openldap-dev"
pankso@10377 16
pascal@1155 17 # Rules to configure and make the package.
pascal@1155 18 compile_rules()
pascal@1155 19 {
pankso@10377 20 ./configure \
pankso@10377 21 --sysconfdir=/etc \
al@19741 22 --localstatedir=/var \
al@19741 23 --libexecdir=/usr/lib \
al@19741 24 --disable-static \
al@19741 25 --disable-debug \
al@19741 26 --with-tls=openssl \
al@19741 27 --enable-dynamic \
pankso@10430 28 --enable-crypt \
al@19741 29 --disable-bdb \
al@19741 30 --disable-hdb \
pankso@10430 31 $CONFIGURE_ARGS &&
al@19741 32 sed -i 's|@VERSION_OPTION@||' $src/libraries/*/Makefile &&
al@19741 33 make depend && make && make install
al@19741 34
al@19741 35 mkdir -p $install/etc/init.d
al@19741 36 install -m0755 $stuff/etc/init.d/openldap $install/etc/init.d
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 {
al@19741 42 case $PACKAGE in
al@19741 43 openldap)
al@19741 44 copy @std
al@19741 45 find $fs -name '*.so*' -delete
al@19741 46 DEPENDS="libldap libcrypto libssl util-linux-uuid"
al@19741 47 CONFIG_FILES="/etc/openldap/"
al@19741 48 DATABASE_FILES="/var/openldap-*"
al@19741 49 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
al@19741 50 ;;
al@19741 51 libldap)
al@19741 52 copy *.so*
al@19741 53 CAT="libs|libraries"
al@19741 54 DEPENDS="libcrypto libssl"
al@19741 55 ;;
al@19741 56 *-dev)
al@19741 57 copy @dev
al@19741 58 DEPENDS="openldap libldap libcrypto-dev openssl-dev";;
al@19741 59 esac
pascal@1155 60 }
pascal@1156 61
pascal@1156 62 # Pre and post install commands for Tazpkg.
al@19741 63 post_install_openldap()
pascal@1156 64 {
al@19741 65 chmod 700 "$1/etc/openldap"
al@19741 66
al@19741 67 ( cd "$1/$INSTALLED/"; grep -l /etc/openldap/slapd.conf */receipt ) | \
pascal@1923 68 while read file; do
pascal@1923 69 pkg=$(dirname $file)
al@19741 70 [ "$pkg" == "$PACKAGE" ] && continue
pascal@1923 71 echo "Reconfiguring $pkg for $PACKAGE..."
pascal@18730 72 chroot "$1/" tazpkg reconfigure $pkg
pascal@1923 73 done
pascal@1156 74 }