wok-next view perdition/receipt @ rev 21143

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 25 15:37:19 2019 +0200 (2019-01-25)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perdition"
4 VERSION="2.2"
5 CATEGORY="network"
6 SHORT_DESC="IMAP/POP proxy"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://horms.net/projects/perdition/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://horms.net/projects/perdition/download/$VERSION/$TARBALL"
14 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
15 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev pam-dev"
16 SPLIT="$PACKAGE-dev $PACKAGE-pam:pam"
18 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why?"
20 compile_rules() {
21 case $SET in
22 '') SET_ARGS='--disable-pam';;
23 pam) SET_ARGS='';;
24 esac
26 ./configure \
27 --disable-ldap-doc \
28 --disable-nis \
29 --disable-odbc \
30 --disable-mysql \
31 --disable-pg \
32 --disable-bdb \
33 --disable-cdb \
34 --disable-gdbm \
35 $SET_ARGS \
36 $CONFIGURE_ARGS &&
37 fix libtool &&
38 make &&
39 make DESTDIR=$install install || return 1
41 cp -a $stuff/etc $install
43 for i in pop3 pop3s imap4 imap4s imaps; do
44 mkdir -p $install/var/run/perdition.$i
45 done
47 install -Dm644 $src/perdition/db/ldap/perdition.schema \
48 $install/etc/openldap/schema/perdition.schema
49 }
51 genpkg_rules() {
52 case $PACKAGE in
53 perdition)
54 copy @std
55 rm -f $fs/etc/perdition/perdition.conf
56 DEPENDS="libidn libldap openssl popt vanessa_adt vanessa_logger \
57 vanessa_socket" # cyrus-sasl libkrb5 libcomerr3 libgdbm
58 CONFIG_FILES="/etc/perdition/"
59 ;;
60 perdition-pam)
61 copy @std
62 rm -f $fs/etc/perdition/perdition.conf
63 DEPENDS="libidn libldap openssl pam popt vanessa_adt \
64 vanessa_logger vanessa_socket"
65 CAT="network|with PAM support"
66 PROVIDE="perdition:pam"
67 CONFIG_FILES="/etc/perdition/"
68 ;;
69 perdition-dev)
70 copy @dev
71 DEPENDS="perdition"
72 ;;
73 esac
74 }
76 post_install_perdition() {
77 for i in pop3 pop3s imap4 imap4s imaps; do
78 chown nobody.nogroup "$1/var/run/perdition.$i"
79 done
81 [ -n "$quiet" ] || cat <<EOF
83 .-------------------------------------------------------------------.
84 | Perdition will forward to the 127.0.0.1:50143 imap server. |
85 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
86 | and restart cyrus-imap, or modify files in /etc/perdition/. |
87 | |
88 | To start perdition server you can run: |
89 | /etc/init.d/perdition start |
90 | |
91 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
92 '-------------------------------------------------------------------'
93 EOF
94 }
96 post_install_perdition_pam() {
97 for i in pop3 pop3s imap4 imap4s imaps; do
98 chown nobody.nogroup "$1/var/run/perdition.$i"
99 done
100 [ -n "$quiet" ] || cat <<EOF
102 .-------------------------------------------------------------------.
103 | Perdition will forward to the 127.0.0.1:50143 imap server. |
104 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
105 | and restart cyrus-imap, or modify files in /etc/perdition/. |
106 | |
107 | To start perdition server you can run: |
108 | /etc/init.d/perdition start |
109 | |
110 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
111 '-------------------------------------------------------------------'
112 EOF
113 }