wok-current annotate openldap/receipt @ rev 1193
openldap: fix BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 05 09:46:46 2008 +0000 (2008-08-05) |
parents | fad639db2f59 |
children | 534023d6e005 |
rev | line source |
---|---|
pascal@1155 | 1 # SliTaz package receipt. |
pascal@1155 | 2 |
pascal@1155 | 3 PACKAGE="openldap" |
pascal@1155 | 4 VERSION="2.3.39" |
pascal@1155 | 5 CATEGORY="system" |
pascal@1155 | 6 SHORT_DESC="LDAP database system." |
pascal@1155 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1155 | 8 TARBALL="$PACKAGE-stable-20071118.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@1155 | 11 DEPENDS="libdb" |
pascal@1193 | 12 BUILD_DEPENDS="db-dev libdb" |
pascal@1155 | 13 |
pascal@1155 | 14 # Rules to configure and make the package. |
pascal@1155 | 15 compile_rules() |
pascal@1155 | 16 { |
pascal@1155 | 17 |
pascal@1155 | 18 cd $src |
pascal@1155 | 19 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1155 | 20 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1155 | 21 --mandir=/usr/share/man $CONFIGURE_ARGS |
pascal@1155 | 22 make |
pascal@1155 | 23 make DESTDIR=$PWD/_pkg install |
pascal@1155 | 24 } |
pascal@1155 | 25 |
pascal@1155 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1155 | 27 genpkg_rules() |
pascal@1155 | 28 { |
pascal@1155 | 29 mkdir -p $fs/usr |
pascal@1155 | 30 cp -a $_pkg/etc $fs |
pascal@1155 | 31 cp -a $_pkg/usr/bin $fs/usr |
pascal@1155 | 32 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1155 | 33 cp -a $_pkg/usr/libexec $fs/usr |
pascal@1155 | 34 cp -a $_pkg/var $fs |
pascal@1155 | 35 cp -a stuff/etc/init.d $fs/etc |
pascal@1155 | 36 chmod 700 $fs/var/openldap-data $fs/etc/openldap |
pascal@1155 | 37 # Package all mysql pkgs |
pascal@1155 | 38 for i in $(cd $WOK; ls -d openldap-* libldap*) |
pascal@1155 | 39 do |
pascal@1155 | 40 tazwok genpkg $i |
pascal@1155 | 41 done |
pascal@1155 | 42 } |
pascal@1156 | 43 |
pascal@1156 | 44 # Pre and post install commands for Tazpkg. |
pascal@1156 | 45 post_install() |
pascal@1156 | 46 { |
pascal@1156 | 47 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ |
pascal@1156 | 48 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT |
pascal@1156 | 49 etc/openldap/ldap.conf |
pascal@1156 | 50 etc/openldap/slapd.conf |
pascal@1156 | 51 EOT |
pascal@1156 | 52 } |
pascal@1156 | 53 |
pascal@1156 | 54 repack_cleanup() |
pascal@1156 | 55 { |
pascal@1156 | 56 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) |
pascal@1156 | 57 } |