wok-next diff openldap/receipt @ rev 19872

Up palemoon (27.5.0)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Sep 27 20:45:12 2017 +0200 (2017-09-27)
parents 9e01bc6321ea
children 0e7893ac206d
line diff
     1.1 --- a/openldap/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/openldap/receipt	Wed Sep 27 20:45:12 2017 +0200
     1.3 @@ -1,61 +1,73 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="openldap"
     1.8 -VERSION="2.4.25"
     1.9 +VERSION="2.4.44"
    1.10  CATEGORY="misc"
    1.11 -SHORT_DESC="LDAP database system."
    1.12 +SHORT_DESC="LDAP database system"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="BSD"
    1.15 +WEB_SITE="http://www.openldap.org/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tgz"
    1.18 -WEB_SITE="http://www.openldap.org/"
    1.19 -WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
    1.20 -TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
    1.21 -CONFIG_FILES="/etc/openldap"
    1.22 -DATABASE_FILES="/var/openldap-*"
    1.23 +WGET_URL="http://mirror.eu.oneandone.net/software/openldap/openldap-release/$TARBALL"
    1.24  
    1.25 -DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
    1.26 -BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
    1.27 +BUILD_DEPENDS="util-linux-uuid-dev openssl-dev libtool groff"
    1.28 +SPLIT="libldap openldap-dev"
    1.29  
    1.30  # Rules to configure and make the package.
    1.31  compile_rules()
    1.32  {
    1.33 -	cd $src
    1.34 -	#--enable-wrappers
    1.35 -	#--with-tls openssl|gnutls|moznss
    1.36 -	#--enable-spasswd to use Cyrus SASL password
    1.37  	./configure \
    1.38 -		--prefix=/usr \
    1.39  		--sysconfdir=/etc \
    1.40 -		--libexecdir=/usr/lib/$PACKAGE \
    1.41 -		--localstatedir=/var/lib/$PACKAGE  \
    1.42 +		--localstatedir=/var \
    1.43 +		--libexecdir=/usr/lib \
    1.44 +		--disable-static \
    1.45 +		--disable-debug \
    1.46 +		--with-tls=openssl \
    1.47 +		--enable-dynamic \
    1.48  		--enable-crypt \
    1.49 -		--with-threads \
    1.50 +		--disable-bdb \
    1.51 +		--disable-hdb \
    1.52  		$CONFIGURE_ARGS &&
    1.53 -	which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
    1.54 -	make $MAKEFLAGS CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" &&
    1.55 -	make DESTDIR=$DESTDIR install
    1.56 +	sed -i 's|@VERSION_OPTION@||' $src/libraries/*/Makefile &&
    1.57 +	make depend && make && make install
    1.58 +
    1.59 +	mkdir -p $install/etc/init.d
    1.60 +	install -m0755 $stuff/etc/init.d/openldap $install/etc/init.d
    1.61  }
    1.62  
    1.63  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.64  genpkg_rules()
    1.65  {
    1.66 -	mkdir -p $fs/usr/lib $fs/etc/ldap.d
    1.67 -	cp -a $install/etc $fs
    1.68 -	cp -a $install/usr/bin $fs/usr
    1.69 -	cp -a $install/usr/sbin $fs/usr
    1.70 -	cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
    1.71 -	cp -a $install/var $fs
    1.72 -	cp -a $stuff/etc/init.d $fs/etc
    1.73 -	chmod 700 $fs/var/lib/openldap $fs/etc/openldap
    1.74 +	case $PACKAGE in
    1.75 +		openldap)
    1.76 +			copy @std
    1.77 +			find $fs -name '*.so*' -delete
    1.78 +			DEPENDS="libldap libcrypto libssl util-linux-uuid"
    1.79 +			CONFIG_FILES="/etc/openldap/"
    1.80 +			DATABASE_FILES="/var/openldap-*"
    1.81 +			TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
    1.82 +			;;
    1.83 +		libldap)
    1.84 +			copy *.so*
    1.85 +			CAT="libs|libraries"
    1.86 +			DEPENDS="libcrypto libssl"
    1.87 +			;;
    1.88 +		*-dev)
    1.89 +			copy @dev
    1.90 +			DEPENDS="openldap libldap libcrypto-dev openssl-dev";;
    1.91 +	esac
    1.92  }
    1.93  
    1.94  # Pre and post install commands for Tazpkg.
    1.95 -post_install()
    1.96 +post_install_openldap()
    1.97  {
    1.98 -	( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
    1.99 +	chmod 700 "$1/etc/openldap"
   1.100 +
   1.101 +	( cd "$1/$INSTALLED/"; grep -l /etc/openldap/slapd.conf */receipt ) | \
   1.102  	while read file; do
   1.103  		pkg=$(dirname $file)
   1.104 -		[ "$pkg" = "$PACKAGE" ] && continue
   1.105 +		[ "$pkg" == "$PACKAGE" ] && continue
   1.106  		echo "Reconfiguring $pkg for $PACKAGE..."
   1.107  		chroot "$1/" tazpkg reconfigure $pkg
   1.108  	done