wok view perdition/receipt @ rev 24061
Add lz4ultra
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 12 09:05:17 2021 +0000 (2021-06-12) |
parents | c7a23f0fad68 |
children | 2a0479881723 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perdition"
4 VERSION="2.2"
5 CATEGORY="network"
6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server."
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 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
15 glibc-base libkrb5 libcomerr3 gdbm"
16 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
17 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
18 CONFIG_FILES="/etc/perdition"
19 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
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 --disable-pam \
36 --sysconfdir=/etc \
37 --localstatedir=/var \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 mkdir -p $fs/etc/openldap/schema
50 cp -a $install/etc $fs
51 rm -f $fs/etc/perdition/perdition.conf
53 cp -a $stuff/etc $fs
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 for i in pop3 pop3s imap4 imap4s imaps; do
57 mkdir -p $fs/var/run/perdition.$i
58 done
59 cp $src/perdition/db/ldap/perdition.schema \
60 $fs/etc/openldap/schema
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install()
65 {
66 for i in pop3 pop3s imap4 imap4s imaps; do
67 chown nobody.nogroup "$1/var/run/perdition.$i"
68 done
69 cat <<EOF
70 ----
71 Perdition will forward to the 127.0.0.1:50143 imap server.
72 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
73 and restart cyrus-imap, or modify files in /etc/perdition.
74 To start $PACKAGE server you can run :
76 /etc/init.d/$PACKAGE start
78 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
79 ----
80 EOF
81 }