wok-next annotate perdition/receipt @ rev 20604

More fix libtool.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 13:15:41 2018 +0300 (2018-04-19)
parents 757d032c55c7
children b3cd70eaccaa
rev   line source
pascal@20285 1 # SliTaz package receipt v2.
pascal@1215 2
pascal@1215 3 PACKAGE="perdition"
pascal@18806 4 VERSION="2.1"
pascal@1215 5 CATEGORY="network"
al@20534 6 SHORT_DESC="IMAP/POP proxy"
pascal@1215 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20534 9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
al@20534 10
pascal@1215 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1215 12 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
pascal@15000 13
pascal@18806 14 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
pascal@20285 15 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev pam-dev"
al@20534 16 SPLIT="perdition perdition-dev perdition-pam:pam"
pascal@1215 17
al@20534 18 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why?"
al@20534 19
al@20534 20 compile_rules() {
al@20534 21 case $SET in
al@20534 22 '') SET_ARGS='--disable-pam';;
al@20534 23 pam) SET_ARGS='';;
al@20534 24 esac
al@20534 25
al@20534 26 ./configure \
al@20534 27 --disable-ldap-doc \
al@20534 28 --disable-nis \
al@20534 29 --disable-odbc \
al@20534 30 --disable-mysql \
al@20534 31 --disable-pg \
al@20534 32 --disable-bdb \
al@20534 33 --disable-cdb \
al@20534 34 --disable-gdbm \
al@20534 35 $SET_ARGS \
al@20534 36 $CONFIGURE_ARGS &&
al@20604 37 fix libtool &&
pascal@2217 38 make &&
al@20534 39 make DESTDIR=$DESTDIR install
pascal@1215 40 }
pascal@1215 41
al@20534 42 genpkg_rules() {
pascal@20285 43 case $PACKAGE in
al@20534 44 perdition|perdition-pam)
al@20534 45 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \
pascal@20285 46 openssl cyrus-sasl glibc-base libkrb5 libcomerr3 gdbm"
al@20534 47 if [ $PACKAGE == 'perdition-pam' ]; then
al@20534 48 CAT="network|with PAM support"
al@20534 49 DEPENDS="$DEPENDS pam"
al@20534 50 PROVIDE="perdition:pam"
al@20534 51 fi
al@20534 52 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
al@20534 53 cp -a $install/etc $fs
al@20534 54 rm -f $fs/etc/perdition/perdition.conf
al@20534 55 cp -a $stuff/etc $fs
al@20534 56 cp -a $install/usr/sbin $fs/usr
al@20534 57 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20534 58 for i in pop3 pop3s imap4 imap4s imaps; do
al@20534 59 mkdir -p $fs/var/run/perdition.$i
al@20534 60 done
al@20534 61 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
al@20534 62 CONFIG_FILES="/etc/perdition"
al@20534 63 ;;
al@20534 64 perdition-dev)
al@20534 65 copy @dev
al@20534 66 DEPENDS="perdition"
al@20534 67 ;;
pascal@20285 68 esac
pascal@1215 69 }
pascal@1215 70
al@20534 71 post_install_perdition() {
pascal@1215 72 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@18730 73 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@1215 74 done
pascal@1229 75
al@20534 76 [ -n "$quiet " ] || cat <<EOF
al@20534 77
al@20534 78 .-------------------------------------------------------------------.
al@20534 79 | Perdition will forward to the 127.0.0.1:50143 imap server. |
al@20534 80 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
al@20534 81 | and restart cyrus-imap, or modify files in /etc/perdition. |
al@20534 82 | |
al@20534 83 | To start perdition server you can run: |
al@20534 84 | /etc/init.d/perdition start |
al@20534 85 | |
al@20534 86 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
al@20534 87 '-------------------------------------------------------------------'
pascal@1229 88 EOF
pascal@1215 89 }
pascal@20285 90
al@20534 91 post_install_perdition_pam() {
pascal@20285 92 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@20285 93 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@20285 94 done
al@20534 95 [ -n "$quiet" ] || cat <<EOF
pascal@20285 96
al@20534 97 .-------------------------------------------------------------------.
al@20534 98 | Perdition will forward to the 127.0.0.1:50143 imap server. |
al@20534 99 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
al@20534 100 | and restart cyrus-imap, or modify files in /etc/perdition. |
al@20534 101 | |
al@20534 102 | To start perdition server you can run: |
al@20534 103 | /etc/init.d/perdition start |
al@20534 104 | |
al@20534 105 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
al@20534 106 '-------------------------------------------------------------------'
pascal@20285 107 EOF
pascal@20285 108 }