wok-next view openldap/receipt @ rev 14777
nginx: add www user,/var/spool/nginx
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue Jul 02 14:55:31 2013 +0000 (2013-07-02) |
parents | 16791e953e7d |
children | 8f447cf2eee5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openldap"
4 VERSION="2.4.25"
5 CATEGORY="misc"
6 SHORT_DESC="LDAP database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tgz"
9 WEB_SITE="http://www.openldap.org/"
10 WGET_URL="ftp://ftp.openldap.org/pub/OpenLDAP/$PACKAGE-release/$TARBALL"
11 TAZPANEL_DAEMON="man::slapd|help::/usr/libexec/slapd|edit::/etc/openldap/slapd.conf|options::LDAP_OPTIONS|web::$WEB_SITE"
12 CONFIG_FILES="/etc/openldap"
13 DATABASE_FILES="/var/openldap-*"
15 DEPENDS="libdb openssl libcomerr3 util-linux-uuid libldap"
16 BUILD_DEPENDS="db-dev libdb util-linux-uuid-dev openssl-dev util-linux-uuid"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 #--enable-wrappers
23 #--with-tls openssl|gnutls|moznss
24 #--enable-spasswd to use Cyrus SASL password
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --libexecdir=/usr/lib/$PACKAGE \
29 --localstatedir=/var/lib/$PACKAGE \
30 --enable-crypt \
31 --with-threads \
32 $CONFIGURE_ARGS &&
33 which soelim || find -name Makefile | xargs sed -i 's/soelim/cat/'
34 make $MAKEFLAGS CPPFLAGS=-D_GNU_SOURCE &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs/etc/ldap.d
42 cp -a $_pkg/etc $fs
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/sbin $fs/usr
45 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
46 cp -a $_pkg/var $fs
47 cp -a $stuff/etc/init.d $fs/etc
48 chmod 700 $fs/var/lib/openldap $fs/etc/openldap
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 ( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
55 while read file; do
56 pkg=$(dirname $file)
57 [ "$pkg" = "$PACKAGE" ] && continue
58 echo "Reconfiguring $pkg for $PACKAGE..."
59 chroot $1/ tazpkg reconfigure $pkg
60 done
61 }