wok-current view openldap/receipt @ rev 23671

updated stoqdrivers (0.9.8.2 -> 1.8.1)
author Hans-G?nter Theisgen
date Sun Apr 26 07:56:47 2020 +0100 (2020-04-26)
parents 970c5ec9a60a
children 848e2021d813
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.25"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://www.openldap.org/"
11 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
12 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
13 CONFIG_FILES="/etc/openldap"
14 DATABASE_FILES="/var/openldap-*"
16 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
17 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 #--enable-wrappers
24 #--with-tls openssl|gnutls|moznss
25 #--enable-spasswd to use Cyrus SASL password
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --libexecdir=/usr/lib/$PACKAGE \
30 --localstatedir=/var/lib/$PACKAGE \
31 --enable-crypt \
32 --with-threads \
33 $CONFIGURE_ARGS &&
34 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
35 make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/etc/ldap.d
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
47 cp -a $install/var $fs
48 cp -a $stuff/etc/init.d $fs/etc
49 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 nl="\\n"
56 ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
57 while read file; do
58 pkg=$(dirname $file)
59 [ "$pkg" = "$PACKAGE" ] && continue
60 echo -e "${nl}Reconfiguring $pkg for $PACKAGE..."
61 nl=""
62 chroot "$1/" tazpkg reconfigure $pkg
63 done
64 }