
Receipt for package "openldap"
# SliTaz package receipt. PACKAGE="openldap" VERSION="2.4.59" CATEGORY="misc" SHORT_DESC="LDAP database system." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" TARBALL="$PACKAGE-$VERSION.tgz" WEB_SITE="https://www.openldap.org/" WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL" TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE" CONFIG_FILES="/etc/openldap" DATABASE_FILES="/var/openldap-*" DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap" BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid" HOST_ARCH="i486 x86_64" # What is the latest version available today? current_version() { wget -O - 'https://git.openldap.org/openldap/openldap/-/tags?sort=updated_desc' 2>/dev/null | \ sed '/item-title/!d;s|.*">[A-Z_]*||;s|<.*||;s|_|.|g;q' } # Rules to configure and make the package. compile_rules() { cd $src #--enable-wrappers #--with-tls openssl|gnutls|moznss #--enable-spasswd to use Cyrus SASL password ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/$PACKAGE \ --localstatedir=/var/lib/$PACKAGE \ --enable-crypt \ --with-tls=openssl \ --with-threads \ --disable-bdb \ --disable-hdb \ $CONFIGURE_ARGS && which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/' make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/etc/ldap.d cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/$PACKAGE $fs/usr/lib cp -a $install/var $fs cp -a $stuff/etc/init.d $fs/etc chmod 700 $fs/var/lib/openldap $fs/etc/openldap } # Pre and post install commands for Tazpkg. post_install() { nl="\\n" ( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \ while read file; do pkg=$(dirname $file) [ "$pkg" = "$PACKAGE" ] && continue echo -e "${nl}Reconfiguring $pkg for $PACKAGE..." nl="" chroot "$1/" tazpkg reconfigure $pkg done }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)