wok-next annotate perdition/receipt @ rev 21111

gdbm: split to "libpkg - pkg - pkg-dev"; fix some symlinks
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 11 14:45:46 2019 +0200 (2019-01-11)
parents d5aab818505e
children
rev   line source
pascal@20285 1 # SliTaz package receipt v2.
pascal@1215 2
pascal@1215 3 PACKAGE="perdition"
al@20607 4 VERSION="2.2"
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@20607 9 WEB_SITE="http://horms.net/projects/perdition/"
al@20534 10
al@20607 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20607 12 WGET_URL="http://horms.net/projects/perdition/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@21020 16 SPLIT="$PACKAGE-dev $PACKAGE-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@21020 39 make DESTDIR=$install install || return 1
al@20607 40
al@20607 41 cp -a $stuff/etc $install
al@20607 42
al@20607 43 for i in pop3 pop3s imap4 imap4s imaps; do
al@20607 44 mkdir -p $install/var/run/perdition.$i
al@20607 45 done
al@20607 46
al@20607 47 install -Dm644 $src/perdition/db/ldap/perdition.schema \
al@20607 48 $install/etc/openldap/schema/perdition.schema
pascal@1215 49 }
pascal@1215 50
al@20534 51 genpkg_rules() {
pascal@20285 52 case $PACKAGE in
al@20607 53 perdition)
al@20607 54 copy @std
al@20534 55 rm -f $fs/etc/perdition/perdition.conf
al@20607 56 DEPENDS="libidn libldap openssl popt vanessa_adt vanessa_logger \
al@21111 57 vanessa_socket" # cyrus-sasl libkrb5 libcomerr3 libgdbm
al@20607 58 CONFIG_FILES="/etc/perdition/"
al@20607 59 ;;
al@20607 60 perdition-pam)
al@20607 61 copy @std
al@20607 62 rm -f $fs/etc/perdition/perdition.conf
al@20607 63 DEPENDS="libidn libldap openssl pam popt vanessa_adt \
al@20607 64 vanessa_logger vanessa_socket"
al@20607 65 CAT="network|with PAM support"
al@20607 66 PROVIDE="perdition:pam"
al@20607 67 CONFIG_FILES="/etc/perdition/"
al@20534 68 ;;
al@20534 69 perdition-dev)
al@20534 70 copy @dev
al@20534 71 DEPENDS="perdition"
al@20534 72 ;;
pascal@20285 73 esac
pascal@1215 74 }
pascal@1215 75
al@20534 76 post_install_perdition() {
pascal@1215 77 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@18730 78 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@1215 79 done
pascal@1229 80
al@20607 81 [ -n "$quiet" ] || cat <<EOF
al@20534 82
al@20534 83 .-------------------------------------------------------------------.
al@20534 84 | Perdition will forward to the 127.0.0.1:50143 imap server. |
al@20534 85 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
al@20607 86 | and restart cyrus-imap, or modify files in /etc/perdition/. |
al@20534 87 | |
al@20534 88 | To start perdition server you can run: |
al@20534 89 | /etc/init.d/perdition start |
al@20534 90 | |
al@20534 91 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
al@20534 92 '-------------------------------------------------------------------'
pascal@1229 93 EOF
pascal@1215 94 }
pascal@20285 95
al@20534 96 post_install_perdition_pam() {
pascal@20285 97 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@20285 98 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@20285 99 done
al@20534 100 [ -n "$quiet" ] || cat <<EOF
pascal@20285 101
al@20534 102 .-------------------------------------------------------------------.
al@20534 103 | Perdition will forward to the 127.0.0.1:50143 imap server. |
al@20534 104 | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
al@20607 105 | and restart cyrus-imap, or modify files in /etc/perdition/. |
al@20534 106 | |
al@20534 107 | To start perdition server you can run: |
al@20534 108 | /etc/init.d/perdition start |
al@20534 109 | |
al@20534 110 | Or add perdition to RUN_DAEMONS in /etc/rcS.conf |
al@20534 111 '-------------------------------------------------------------------'
pascal@20285 112 EOF
pascal@20285 113 }