wok view openldap/receipt @ rev 24702

updated knock (0.7.8 -> 0.8)
author Hans-G?nter Theisgen
date Mon Mar 14 09:51:46 2022 +0100 (2022-03-14)
parents d7522d21c4d3
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - 'https://git.openldap.org/openldap/openldap/-/tags?sort=updated_desc' 2>/dev/null | \
23 sed '/item-title/!d;s|.*">[A-Z_]*||;s|<.*||;s|_|.|g;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 #--enable-wrappers
31 #--with-tls openssl|gnutls|moznss
32 #--enable-spasswd to use Cyrus SASL password
33 ./configure \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 --libexecdir=/usr/lib/$PACKAGE \
37 --localstatedir=/var/lib/$PACKAGE \
38 --enable-crypt \
39 --with-threads \
40 $CONFIGURE_ARGS &&
41 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
42 make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib $fs/etc/ldap.d
50 cp -a $install/etc $fs
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/sbin $fs/usr
53 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
54 cp -a $install/var $fs
55 cp -a $stuff/etc/init.d $fs/etc
56 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
57 }
59 # Pre and post install commands for Tazpkg.
60 post_install()
61 {
62 nl="\\n"
63 ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
64 while read file; do
65 pkg=$(dirname $file)
66 [ "$pkg" = "$PACKAGE" ] && continue
67 echo -e "${nl}Reconfiguring $pkg for $PACKAGE..."
68 nl=""
69 chroot "$1/" tazpkg reconfigure $pkg
70 done
71 }