wok-next view openldap/receipt @ rev 19810
Up atm-tools, audiofile, audit, avfs, c_icap, xz.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 19 14:10:52 2017 +0300 (2017-07-19) |
parents | 9e01bc6321ea |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openldap"
4 VERSION="2.4.44"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.openldap.org/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="http://mirror.eu.oneandone.net/software/openldap/openldap-release/$TARBALL"
14 BUILD_DEPENDS="util-linux-uuid-dev openssl-dev libtool groff"
15 SPLIT="libldap openldap-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --libexecdir=/usr/lib \
24 --disable-static \
25 --disable-debug \
26 --with-tls=openssl \
27 --enable-dynamic \
28 --enable-crypt \
29 --disable-bdb \
30 --disable-hdb \
31 $CONFIGURE_ARGS &&
32 sed -i 's|@VERSION_OPTION@||' $src/libraries/*/Makefile &&
33 make depend && make && make install
35 mkdir -p $install/etc/init.d
36 install -m0755 $stuff/etc/init.d/openldap $install/etc/init.d
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 openldap)
44 copy @std
45 find $fs -name '*.so*' -delete
46 DEPENDS="libldap libcrypto libssl util-linux-uuid"
47 CONFIG_FILES="/etc/openldap/"
48 DATABASE_FILES="/var/openldap-*"
49 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
50 ;;
51 libldap)
52 copy *.so*
53 CAT="libs|libraries"
54 DEPENDS="libcrypto libssl"
55 ;;
56 *-dev)
57 copy @dev
58 DEPENDS="openldap libldap libcrypto-dev openssl-dev";;
59 esac
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install_openldap()
64 {
65 chmod 700 "$1/etc/openldap"
67 ( cd "$1/$INSTALLED/"; grep -l /etc/openldap/slapd.conf */receipt ) | \
68 while read file; do
69 pkg=$(dirname $file)
70 [ "$pkg" == "$PACKAGE" ] && continue
71 echo "Reconfiguring $pkg for $PACKAGE..."
72 chroot "$1/" tazpkg reconfigure $pkg
73 done
74 }