wok view perdition/receipt @ rev 16345

Up: slitaz-configs (5.3) With new Slitaz Tiny Screen desktop files and tools
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 12 20:04:10 2014 +0200 (2014-04-12)
parents 068411ccd1e5
children 9e01bc6321ea
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/perdition"
13 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
15 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev popt-dev cyrus-sasl-dev"
16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
17 glibc-base libkrb5 libcomerr3 gdbm"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 sed -i 's/pam=yes/pam=no/' configure
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --enable-openldap --disable-ldap-doc --disable-nis \
26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
27 --sysconfdir=/etc --localstatedir=/var \
28 --mandir=/usr/share/man $CONFIGURE_ARGS || return 1
29 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
38 cp -a $install/etc $fs
39 rm -f $fs/etc/perdition/perdition.conf
40 cp -a stuff/etc $fs
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 for i in pop3 pop3s imap4 imap4s imaps; do
44 mkdir -p $fs/var/run/perdition.$i
45 done
46 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
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 }