wok-next view perdition/receipt @ rev 20449

xcb-proto is obsolete -> xorg-xcb-proto
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 14:08:05 2018 +0200 (2018-02-28)
parents b8b371b1b165
children 757d032c55c7
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 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_adt-dev vanessa_socket-dev \
16 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev pam-dev"
17 SPLIT="perdition perdition-pam perdition-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cp -a $src $src-pam
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --disable-ldap-doc --disable-nis \
25 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
26 --disable-cdb --disable-gdbm --disable-pam \
27 --sysconfdir=/etc --localstatedir=/var \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install || return 1
32 cd $src-pam
33 ./configure --prefix=/usr --infodir=/usr/share/info \
34 --disable-ldap-doc --disable-nis \
35 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
36 --disable-cdb --disable-gdbm \
37 --sysconfdir=/etc --localstatedir=/var \
38 --mandir=/usr/share/man $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR-pam install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 perdition|perdition-pam)
48 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \
49 openssl cyrus-sasl glibc-base libkrb5 libcomerr3 gdbm"
50 if [ $PACKAGE == 'perdition-pam' ]; then
51 CAT="network|with PAM support"
52 DEPENDS="$DEPENDS pam"
53 PROVIDE="perdition:pam"
54 install=$install-pam
55 fi
56 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
57 cp -a $install/etc $fs
58 rm -f $fs/etc/perdition/perdition.conf
59 cp -a $stuff/etc $fs
60 cp -a $install/usr/sbin $fs/usr
61 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 for i in pop3 pop3s imap4 imap4s imaps; do
63 mkdir -p $fs/var/run/perdition.$i
64 done
65 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
66 ;;
67 perdition-dev)
68 DEPENDS="perdition"
69 mkdir -p $fs/usr/lib
70 cp -a $install/usr/lib/*.a $fs/usr/lib
71 ;;
72 esac
73 }
75 # Pre and post install commands for Tazpkg.
76 post_install_perdition()
77 {
78 for i in pop3 pop3s imap4 imap4s imaps; do
79 chown nobody.nogroup "$1/var/run/perdition.$i"
80 done
81 cat <<EOF
82 ----
83 Perdition will forward to the 127.0.0.1:50143 imap server.
84 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
85 and restart cyrus-imap, or modify files in /etc/perdition.
86 To start perdition server you can run :
88 /etc/init.d/perdition start
90 Or add perdition to RUN_DAEMONS in /etc/rcS.conf
91 ----
92 EOF
93 }
95 # Pre and post install commands for Tazpkg.
96 post_install_perdition_pam()
97 {
98 for i in pop3 pop3s imap4 imap4s imaps; do
99 chown nobody.nogroup "$1/var/run/perdition.$i"
100 done
101 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 To start perdition server you can run :
108 /etc/init.d/perdition start
110 Or add perdition to RUN_DAEMONS in /etc/rcS.conf
111 ----
112 EOF
113 }