wok-next view perdition/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents d3adbeea3a9f
children 10df65db91ad
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perdition"
4 VERSION="2.1"
5 CATEGORY="network"
6 SHORT_DESC="IMAP/POP proxy"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/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="perdition perdition-dev perdition-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 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 perdition|perdition-pam)
44 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \
45 openssl cyrus-sasl glibc-base libkrb5 libcomerr3 gdbm"
46 if [ $PACKAGE == 'perdition-pam' ]; then
47 CAT="network|with PAM support"
48 DEPENDS="$DEPENDS pam"
49 PROVIDE="perdition:pam"
50 fi
51 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
52 cp -a $install/etc $fs
53 rm -f $fs/etc/perdition/perdition.conf
54 cp -a $stuff/etc $fs
55 cp -a $install/usr/sbin $fs/usr
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 for i in pop3 pop3s imap4 imap4s imaps; do
58 mkdir -p $fs/var/run/perdition.$i
59 done
60 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
61 CONFIG_FILES="/etc/perdition"
62 ;;
63 perdition-dev)
64 copy @dev
65 DEPENDS="perdition"
66 ;;
67 esac
68 }
70 post_install_perdition() {
71 for i in pop3 pop3s imap4 imap4s imaps; do
72 chown nobody.nogroup "$1/var/run/perdition.$i"
73 done
75 [ -n "$quiet " ] || cat <<EOF
77 .-------------------------------------------------------------------.
78 | Perdition will forward to the 127.0.0.1:50143 imap server. |
79 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
80 | and restart cyrus-imap, or modify files in /etc/perdition. |
81 | |
82 | To start perdition server you can run: |
83 | /etc/init.d/perdition start |
84 | |
85 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
86 '-------------------------------------------------------------------'
87 EOF
88 }
90 post_install_perdition_pam() {
91 for i in pop3 pop3s imap4 imap4s imaps; do
92 chown nobody.nogroup "$1/var/run/perdition.$i"
93 done
94 [ -n "$quiet" ] || cat <<EOF
96 .-------------------------------------------------------------------.
97 | Perdition will forward to the 127.0.0.1:50143 imap server. |
98 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
99 | and restart cyrus-imap, or modify files in /etc/perdition. |
100 | |
101 | To start perdition server you can run: |
102 | /etc/init.d/perdition start |
103 | |
104 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
105 '-------------------------------------------------------------------'
106 EOF
107 }