wok view perdition/receipt @ rev 10109

Up: transmission to 2.31.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 15:28:49 2011 +0000 (2011-05-20)
parents f3327707164a
children 380ffe05937a
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 openssl cyrus-sasl \
13 glibc-base libkrb5 libcomerr3 gdbm"
14 CONFIG_FILES="/etc/perdition"
15 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/pam=yes/pam=no/' configure
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --enable-openldap --disable-ldap-doc --disable-nis \
24 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
25 --sysconfdir=/etc --localstatedir=/var \
26 --mandir=/usr/share/man $CONFIGURE_ARGS || return 1
27 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
36 cp -a $_pkg/etc $fs
37 rm -f $fs/etc/perdition/perdition.conf
38 cp -a stuff/etc $fs
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 for i in pop3 pop3s imap4 imap4s imaps; do
42 mkdir -p $fs/var/run/perdition.$i
43 done
44 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 for i in pop3 pop3s imap4 imap4s imaps; do
51 chown nobody.nogroup $1/var/run/perdition.$i
52 done
53 cat <<EOF
54 ----
55 Perdition will forward to the 127.0.0.1:50143 imap server.
56 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
57 and restart cyrus-imap, or modify files in /etc/perdition.
58 To start $PACKAGE server you can run :
60 /etc/init.d/$PACKAGE start
62 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
63 ----
64 EOF
65 }