wok-current annotate openldap/receipt @ rev 24909
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 14:28:38 2022 +0000 (2022-04-09) |
parents | d7522d21c4d3 |
children | 2a14a6463d92 |
rev | line source |
---|---|
pascal@1155 | 1 # SliTaz package receipt. |
pascal@1155 | 2 |
pascal@1155 | 3 PACKAGE="openldap" |
pascal@23974 | 4 VERSION="2.4.25" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1155 | 6 SHORT_DESC="LDAP database system." |
pascal@1155 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15473 | 8 LICENSE="BSD" |
slaxemulator@6796 | 9 TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@23174 | 10 WEB_SITE="https://www.openldap.org/" |
slaxemulator@6796 | 11 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL" |
pascal@14772 | 12 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE" |
pascal@2347 | 13 CONFIG_FILES="/etc/openldap" |
pascal@2347 | 14 DATABASE_FILES="/var/openldap-*" |
pascal@1155 | 15 |
pankso@12481 | 16 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap" |
pascal@12577 | 17 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid" |
pankso@10377 | 18 |
pascal@24500 | 19 # What is the latest version available today? |
pascal@24500 | 20 current_version() |
pascal@24500 | 21 { |
pascal@24614 | 22 wget -O - 'https://git.openldap.org/openldap/openldap/-/tags?sort=updated_desc' 2>/dev/null | \ |
pascal@24614 | 23 sed '/item-title/!d;s|.*">[A-Z_]*||;s|<.*||;s|_|.|g;q' |
pascal@24500 | 24 } |
pascal@24500 | 25 |
pascal@1155 | 26 # Rules to configure and make the package. |
pascal@1155 | 27 compile_rules() |
pascal@1155 | 28 { |
pascal@1155 | 29 cd $src |
pankso@10430 | 30 #--enable-wrappers |
pankso@10430 | 31 #--with-tls openssl|gnutls|moznss |
pankso@10430 | 32 #--enable-spasswd to use Cyrus SASL password |
pankso@10377 | 33 ./configure \ |
pankso@10377 | 34 --prefix=/usr \ |
pankso@10377 | 35 --sysconfdir=/etc \ |
pascal@4272 | 36 --libexecdir=/usr/lib/$PACKAGE \ |
pankso@10430 | 37 --localstatedir=/var/lib/$PACKAGE \ |
pankso@10430 | 38 --enable-crypt \ |
pankso@10430 | 39 --with-threads \ |
pankso@10430 | 40 $CONFIGURE_ARGS && |
pascal@4271 | 41 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/' |
pascal@17670 | 42 make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" && |
pankso@10377 | 43 make DESTDIR=$DESTDIR install |
pascal@1155 | 44 } |
pascal@1155 | 45 |
pascal@1155 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1155 | 47 genpkg_rules() |
pascal@1155 | 48 { |
pascal@4272 | 49 mkdir -p $fs/usr/lib $fs/etc/ldap.d |
pascal@15473 | 50 cp -a $install/etc $fs |
pascal@15473 | 51 cp -a $install/usr/bin $fs/usr |
pascal@15473 | 52 cp -a $install/usr/sbin $fs/usr |
pascal@15473 | 53 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
pascal@15473 | 54 cp -a $install/var $fs |
pankso@10430 | 55 cp -a $stuff/etc/init.d $fs/etc |
pankso@10430 | 56 chmod 700 $fs/var/lib/openldap $fs/etc/openldap |
pascal@1155 | 57 } |
pascal@1156 | 58 |
pascal@1156 | 59 # Pre and post install commands for Tazpkg. |
pascal@1156 | 60 post_install() |
pascal@1156 | 61 { |
pascal@20319 | 62 nl="\\n" |
pascal@18730 | 63 ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \ |
pascal@1923 | 64 while read file; do |
pascal@1923 | 65 pkg=$(dirname $file) |
pascal@1923 | 66 [ "$pkg" = "$PACKAGE" ] && continue |
pascal@20319 | 67 echo -e "${nl}Reconfiguring $pkg for $PACKAGE..." |
pascal@20319 | 68 nl="" |
pascal@18730 | 69 chroot "$1/" tazpkg reconfigure $pkg |
pascal@1923 | 70 done |
pascal@1156 | 71 } |