wok-current view openldap/receipt @ rev 25713

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (3 months ago)
parents a23978bfa665
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.59"
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-tls=openssl \
40 --with-threads \
41 --disable-bdb \
42 --disable-hdb \
43 $CONFIGURE_ARGS &&
44 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
45 make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib $fs/etc/ldap.d
53 cp -a $install/etc $fs
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/sbin $fs/usr
56 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
57 cp -a $install/var $fs
58 cp -a $stuff/etc/init.d $fs/etc
59 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 nl="\\n"
66 ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
67 while read file; do
68 pkg=$(dirname $file)
69 [ "$pkg" = "$PACKAGE" ] && continue
70 echo -e "${nl}Reconfiguring $pkg for $PACKAGE..."
71 nl=""
72 chroot "$1/" tazpkg reconfigure $pkg
73 done
74 }