wok view perdition/receipt @ rev 21011

updated gtklife (5.1 -> 5.2)
author Hans-G?nter Theisgen
date Sat Mar 09 15:17:33 2019 +0100 (2019-03-09)
parents 9e01bc6321ea
children 113d38a1e4e9
line source
1 # SliTaz package receipt.
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 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
16 glibc-base libkrb5 libcomerr3 gdbm"
17 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
18 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
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
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
37 cp -a $install/etc $fs
38 rm -f $fs/etc/perdition/perdition.conf
39 cp -a $stuff/etc $fs
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 for i in pop3 pop3s imap4 imap4s imaps; do
43 mkdir -p $fs/var/run/perdition.$i
44 done
45 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 for i in pop3 pop3s imap4 imap4s imaps; do
52 chown nobody.nogroup "$1/var/run/perdition.$i"
53 done
54 cat <<EOF
55 ----
56 Perdition will forward to the 127.0.0.1:50143 imap server.
57 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
58 and restart cyrus-imap, or modify files in /etc/perdition.
59 To start $PACKAGE server you can run :
61 /etc/init.d/$PACKAGE start
63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
64 ----
65 EOF
66 }