wok-current annotate perdition/receipt @ rev 23821

syslinux: merge init.exe & taziso (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 28 09:34:09 2020 +0000 (2020-05-28)
parents c7a23f0fad68
children 2a0479881723
rev   line source
pascal@1215 1 # SliTaz package receipt.
pascal@1215 2
pascal@1215 3 PACKAGE="perdition"
Hans-G?nter@21674 4 VERSION="2.2"
pascal@1215 5 CATEGORY="network"
Hans-G?nter@21674 6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server."
pascal@1215 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21674 9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
Hans-G?nter@21674 10
pascal@1215 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1215 12 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
Hans-G?nter@21674 13
Hans-G?nter@21674 14 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
Hans-G?nter@21674 15 glibc-base libkrb5 libcomerr3 gdbm"
Hans-G?nter@21674 16 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
Hans-G?nter@21674 17 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
pascal@15000 18 CONFIG_FILES="/etc/perdition"
pascal@15000 19 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
pascal@15000 20
pascal@1215 21 # Rules to configure and make the package.
pascal@1215 22 compile_rules()
pascal@1215 23 {
Hans-G?nter@21674 24 ./configure \
Hans-G?nter@21674 25 --prefix=/usr \
Hans-G?nter@21674 26 --infodir=/usr/share/info \
Hans-G?nter@21674 27 --disable-ldap-doc \
Hans-G?nter@21674 28 --disable-nis \
Hans-G?nter@21674 29 --disable-odbc \
Hans-G?nter@21674 30 --disable-mysql \
Hans-G?nter@21674 31 --disable-pg \
Hans-G?nter@21674 32 --disable-bdb \
Hans-G?nter@21674 33 --disable-cdb \
Hans-G?nter@21674 34 --disable-gdbm \
Hans-G?nter@21674 35 --disable-pam \
Hans-G?nter@21674 36 --sysconfdir=/etc \
Hans-G?nter@21674 37 --localstatedir=/var \
Hans-G?nter@21674 38 --mandir=/usr/share/man \
Hans-G?nter@21674 39 $CONFIGURE_ARGS &&
pascal@2217 40 make &&
pascal@15000 41 make DESTDIR=$DESTDIR install
pascal@1215 42 }
pascal@1215 43
pascal@1215 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1215 45 genpkg_rules()
pascal@1215 46 {
Hans-G?nter@21674 47 mkdir -p $fs/usr/lib
Hans-G?nter@21674 48 mkdir -p $fs/etc/openldap/schema
Hans-G?nter@21674 49
Hans-G?nter@21674 50 cp -a $install/etc $fs
pascal@1215 51 rm -f $fs/etc/perdition/perdition.conf
Hans-G?nter@21674 52
Hans-G?nter@21674 53 cp -a $stuff/etc $fs
Hans-G?nter@21674 54 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21674 55 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@1215 56 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@1215 57 mkdir -p $fs/var/run/perdition.$i
pascal@1215 58 done
Hans-G?nter@21674 59 cp $src/perdition/db/ldap/perdition.schema \
Hans-G?nter@21674 60 $fs/etc/openldap/schema
pascal@1215 61 }
pascal@1215 62
pascal@1215 63 # Pre and post install commands for Tazpkg.
pascal@1215 64 post_install()
pascal@1215 65 {
pascal@1215 66 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@18730 67 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@1215 68 done
pascal@1229 69 cat <<EOF
pascal@1229 70 ----
pascal@1229 71 Perdition will forward to the 127.0.0.1:50143 imap server.
pascal@1229 72 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
pascal@1229 73 and restart cyrus-imap, or modify files in /etc/perdition.
pascal@1229 74 To start $PACKAGE server you can run :
pascal@1229 75
pascal@1229 76 /etc/init.d/$PACKAGE start
pascal@1229 77
pascal@1229 78 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1229 79 ----
pascal@1229 80 EOF
pascal@1215 81 }