wok-current annotate openldap/receipt @ rev 4271
Up openldap (2.4.16)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 25 22:49:42 2009 +0200 (2009-09-25) |
parents | 46b53ce42491 |
children | f0ddc061e092 |
rev | line source |
---|---|
pascal@1155 | 1 # SliTaz package receipt. |
pascal@1155 | 2 |
pascal@1155 | 3 PACKAGE="openldap" |
pascal@4271 | 4 VERSION="2.4.16" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1155 | 6 SHORT_DESC="LDAP database system." |
pascal@1155 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@4271 | 8 TARBALL="$PACKAGE-stable-20090411.tgz" |
pascal@1155 | 9 WEB_SITE="http://www.openldap.org/" |
pascal@1155 | 10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-stable/$TARBALL" |
pascal@2459 | 11 DEPENDS="libdb openssl cyrus-sasl" |
pascal@1193 | 12 BUILD_DEPENDS="db-dev libdb" |
pascal@2347 | 13 CONFIG_FILES="/etc/openldap" |
pascal@2347 | 14 DATABASE_FILES="/var/openldap-*" |
pascal@1155 | 15 |
pascal@1155 | 16 # Rules to configure and make the package. |
pascal@1155 | 17 compile_rules() |
pascal@1155 | 18 { |
pascal@1155 | 19 |
pascal@1155 | 20 cd $src |
pascal@1155 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1155 | 22 --sysconfdir=/etc --localstatedir=/var \ |
pascal@4271 | 23 --mandir=/usr/share/man $CONFIGURE_ARGS |
pascal@4271 | 24 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/' |
pascal@4271 | 25 make CPPFLAGS=-D_GNU_SOURCE && |
pascal@1155 | 26 make DESTDIR=$PWD/_pkg install |
pascal@1155 | 27 } |
pascal@1155 | 28 |
pascal@1155 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1155 | 30 genpkg_rules() |
pascal@1155 | 31 { |
pascal@1968 | 32 mkdir -p $fs/usr $fs/etc/ldap.d |
pascal@1155 | 33 cp -a $_pkg/etc $fs |
pascal@1155 | 34 cp -a $_pkg/usr/bin $fs/usr |
pascal@1155 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1155 | 36 cp -a $_pkg/usr/libexec $fs/usr |
pascal@2950 | 37 strip -s $fs/usr/libexec/* |
pascal@1155 | 38 cp -a $_pkg/var $fs |
pascal@1155 | 39 cp -a stuff/etc/init.d $fs/etc |
pascal@1155 | 40 chmod 700 $fs/var/openldap-data $fs/etc/openldap |
pascal@1155 | 41 # Package all mysql pkgs |
pascal@1155 | 42 for i in $(cd $WOK; ls -d openldap-* libldap*) |
pascal@1155 | 43 do |
pascal@1155 | 44 tazwok genpkg $i |
pascal@1155 | 45 done |
pascal@1155 | 46 } |
pascal@1156 | 47 |
pascal@1156 | 48 # Pre and post install commands for Tazpkg. |
pascal@1156 | 49 post_install() |
pascal@1156 | 50 { |
pascal@1923 | 51 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \ |
pascal@1923 | 52 while read file; do |
pascal@1923 | 53 pkg=$(dirname $file) |
pascal@1923 | 54 [ "$pkg" = "$PACKAGE" ] && continue |
pascal@1923 | 55 echo "Reconfiguring $pkg for $PACKAGE..." |
pascal@1923 | 56 tazpkg reconfigure $pkg |
pascal@1923 | 57 done |
pascal@1156 | 58 } |