wok-6.x view perdition/receipt @ rev 2229

perdition: update build_depends (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 21:29:17 2009 +0100 (2009-02-12)
parents 5969129b4298
children 65c29cee9418
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 popt-dev cyrus-sasl-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 || return 1
25 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
34 cp -a $_pkg/etc $fs
35 rm -f $fs/etc/perdition/perdition.conf
36 cp -a stuff/etc $fs
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 for i in pop3 pop3s imap4 imap4s imaps; do
40 mkdir -p $fs/var/run/perdition.$i
41 done
42 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
43 for i in $(cd $WOK; ls -d perdition-*)
44 do
45 tazwok cook $i
46 done
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 for i in pop3 pop3s imap4 imap4s imaps; do
53 chown nobody.nogroup $1/var/run/perdition.$i
54 done
55 cat <<EOF
56 ----
57 Perdition will forward to the 127.0.0.1:50143 imap server.
58 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
59 and restart cyrus-imap, or modify files in /etc/perdition.
60 To start $PACKAGE server you can run :
62 /etc/init.d/$PACKAGE start
64 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
65 ----
66 EOF
67 }