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

Fixed linux and its wanted receipts. Fixed check_modules.sh script. Add linux-speakup.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Feb 16 20:27:55 2011 +0000 (2011-02-16)
parents f3327707164a
children 129bb5b11a7e
rev   line source
pascal@2217 1 # SliTaz package receipt.
pascal@2217 2
pascal@2217 3 PACKAGE="perdition-pam"
pascal@2217 4 VERSION="1.17.1"
pascal@2217 5 CATEGORY="network"
pascal@2217 6 SHORT_DESC="IMAP/POP proxy."
pascal@2217 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2217 8 SOURCE="perdition"
pascal@2217 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2217 10 WEB_SITE="http://www.vergenet.net/linux/$SOURCE"
pascal@2217 11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
pascal@2229 12 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev pam pam-dev popt-dev cyrus-sasl-dev"
pascal@5005 13 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
pascal@5005 14 pam glibc-base libkrb5 libcomerr3 gdbm"
pascal@2217 15 CONFIG_FILES="/etc/perdition"
pascal@2218 16 PROVIDE="perdition:pam"
pascal@2217 17 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
slaxemulator@8441 18 SRC_WANTED="$SOURCE"
pascal@2217 19
pascal@2217 20 # Rules to configure and make the package.
pascal@2217 21 compile_rules()
pascal@2217 22 {
pascal@2217 23 cd $src
pascal@2217 24 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2217 25 --enable-openldap --disable-ldap-doc --disable-nis \
pascal@2217 26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
pascal@2217 27 --sysconfdir=/etc --localstatedir=/var \
pascal@2217 28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2217 29 make &&
pascal@2217 30 make DESTDIR=$PWD/_pkg install
pascal@2217 31 }
pascal@2217 32
pascal@2217 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2217 34 genpkg_rules()
pascal@2217 35 {
pascal@2217 36 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
pascal@2217 37 cp -a $_pkg/etc $fs
pascal@2217 38 rm -f $fs/etc/perdition/perdition.conf
pascal@2217 39 cp -a ../$SOURCE/stuff/etc $fs
pascal@2217 40 cp -a $_pkg/usr/sbin $fs/usr
pascal@2217 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@2217 42 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@2217 43 mkdir -p $fs/var/run/perdition.$i
pascal@2217 44 done
pascal@2217 45 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
pascal@2217 46 }
pascal@2217 47
pascal@2217 48 # Pre and post install commands for Tazpkg.
pascal@2217 49 post_install()
pascal@2217 50 {
pascal@2217 51 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@2217 52 chown nobody.nogroup $1/var/run/perdition.$i
pascal@2217 53 done
pascal@2217 54 cat <<EOF
pascal@2217 55 ----
pascal@2217 56 Perdition will forward to the 127.0.0.1:50143 imap server.
pascal@2217 57 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
pascal@2217 58 and restart cyrus-imap, or modify files in /etc/perdition.
pascal@2217 59 To start $SOURCE server you can run :
pascal@2217 60
pascal@2217 61 /etc/init.d/$SOURCE start
pascal@2217 62
pascal@2217 63 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
pascal@2217 64 ----
pascal@2217 65 EOF
pascal@2217 66 }