wok view perdition/receipt @ rev 25548
aaphoto: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 17:05:06 2023 +0000 (20 months ago) |
parents | 113d38a1e4e9 |
children |
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="https://projects.horms.net/projects/perdition"
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
25 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --disable-ldap-doc \
35 --disable-nis \
36 --disable-odbc \
37 --disable-mysql \
38 --disable-pg \
39 --disable-bdb \
40 --disable-cdb \
41 --disable-gdbm \
42 --disable-pam \
43 --sysconfdir=/etc \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 $CONFIGURE_ARGS &&
47 make &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 mkdir -p $fs/etc/openldap/schema
57 cp -a $install/etc $fs
58 rm -f $fs/etc/perdition/perdition.conf
60 cp -a $stuff/etc $fs
61 cp -a $install/usr/sbin $fs/usr
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 for i in pop3 pop3s imap4 imap4s imaps; do
64 mkdir -p $fs/var/run/perdition.$i
65 done
66 cp $src/perdition/db/ldap/perdition.schema \
67 $fs/etc/openldap/schema
68 }
70 # Pre and post install commands for Tazpkg.
71 post_install()
72 {
73 for i in pop3 pop3s imap4 imap4s imaps; do
74 chown nobody.nogroup "$1/var/run/perdition.$i"
75 done
76 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 To start $PACKAGE server you can run :
83 /etc/init.d/$PACKAGE start
85 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
86 ----
87 EOF
88 }