wok-6.x annotate perdition-pam/receipt @ rev 24413

created recipe for kompozer (thanks gibor)
author Hans-G?nter Theisgen
date Thu Feb 10 07:54:25 2022 +0100 (2022-02-10)
parents c7a23f0fad68
children 2a0479881723
rev   line source
pascal@2217 1 # SliTaz package receipt.
pascal@2217 2
pascal@2217 3 PACKAGE="perdition-pam"
Hans-G?nter@21674 4 VERSION="2.2"
pascal@2217 5 CATEGORY="network"
Hans-G?nter@21674 6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server."
pascal@2217 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21674 9 WEB_SITE="http://www.vergenet.net/linux/perdition"
Hans-G?nter@21674 10
pascal@2217 11 SOURCE="perdition"
pascal@2217 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2217 13 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
Hans-G?nter@21674 14
Hans-G?nter@21674 15 PROVIDE="perdition:pam"
Hans-G?nter@21674 16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
Hans-G?nter@21674 17 pam glibc-base libkrb5 libcomerr3 gdbm"
Hans-G?nter@21674 18 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
Hans-G?nter@21674 19 openldap-dev pam pam-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
pascal@18806 20 CONFIG_FILES="/etc/perdition"
pascal@2217 21
pascal@2217 22 # Rules to configure and make the package.
pascal@2217 23 compile_rules()
pascal@2217 24 {
Hans-G?nter@21674 25 ./configure \
Hans-G?nter@21674 26 --prefix=/usr \
Hans-G?nter@21674 27 --infodir=/usr/share/info \
Hans-G?nter@21674 28 --disable-ldap-doc \
Hans-G?nter@21674 29 --disable-nis \
Hans-G?nter@21674 30 --disable-odbc \
Hans-G?nter@21674 31 --disable-mysql \
Hans-G?nter@21674 32 --disable-pg \
Hans-G?nter@21674 33 --disable-bdb \
Hans-G?nter@21674 34 --disable-cdb \
Hans-G?nter@21674 35 --disable-gdbm \
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@2217 42 }
pascal@2217 43
pascal@2217 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2217 45 genpkg_rules()
pascal@2217 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@2217 51 rm -f $fs/etc/perdition/perdition.conf
Hans-G?nter@21674 52
Hans-G?nter@21674 53 cp -a ../$SOURCE/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
Hans-G?nter@21674 56
pascal@2217 57 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@2217 58 mkdir -p $fs/var/run/perdition.$i
pascal@2217 59 done
Hans-G?nter@21674 60 cp $src/perdition/db/ldap/perdition.schema \
Hans-G?nter@21674 61 $fs/etc/openldap/schema
pascal@2217 62 }
pascal@2217 63
pascal@2217 64 # Pre and post install commands for Tazpkg.
pascal@2217 65 post_install()
pascal@2217 66 {
pascal@2217 67 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@18730 68 chown nobody.nogroup "$1/var/run/perdition.$i"
pascal@2217 69 done
pascal@2217 70 cat <<EOF
pascal@2217 71 ----
pascal@2217 72 Perdition will forward to the 127.0.0.1:50143 imap server.
pascal@2217 73 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
pascal@2217 74 and restart cyrus-imap, or modify files in /etc/perdition.
pascal@2217 75 To start $SOURCE server you can run :
pascal@2217 76
pascal@2217 77 /etc/init.d/$SOURCE start
pascal@2217 78
pascal@2217 79 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
pascal@2217 80 ----
pascal@2217 81 EOF
pascal@2217 82 }