wok view perdition/receipt @ rev 1585
php-ldap: depends on cyrus-sasl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 16 09:34:26 2008 +0000 (2008-10-16) |
parents | 3334e1dfcd32 |
children | bd6010223726 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perdition"
4 VERSION="1.17.1"
5 CATEGORY="network"
6 SHORT_DESC="IMAP/POP proxy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
10 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
11 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev"
12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap"
13 CONFIG_FILES="/etc/perdition"
14 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --enable-openldap --disable-ldap-doc --disable-nis \
22 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
23 --sysconfdir=/etc --localstatedir=/var \
24 --mandir=/usr/share/man $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
33 cp -a $_pkg/etc $fs
34 rm -f $fs/etc/perdition/perdition.conf
35 cp -a stuff/etc $fs
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 for i in pop3 pop3s imap4 imap4s imaps; do
39 mkdir -p $fs/var/run/perdition.$i
40 done
41 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
42 for i in $(cd $WOK; ls -d perdition-*)
43 do
44 tazwok cook $i
45 done
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
52 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
53 $(cd $1/ ; find etc/perdition -type f)
54 EOT
55 for i in pop3 pop3s imap4 imap4s imaps; do
56 chown nobody.nogroup $1/var/run/perdition.$i
57 done
58 cat <<EOF
59 ----
60 Perdition will forward to the 127.0.0.1:50143 imap server.
61 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
62 and restart cyrus-imap, or modify files in /etc/perdition.
63 To start $PACKAGE server you can run :
65 /etc/init.d/$PACKAGE start
67 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
68 ----
69 EOF
70 }
72 repack_cleanup()
73 {
74 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
75 }