wok annotate perdition-pam/receipt @ rev 7184

Up: squid to 3.1.9. Up: squid-custom-errors to 1.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 08 06:35:29 2010 +0000 (2010-11-08)
parents a4af2b62bb67
children fc377ad427e1
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 ?"
pascal@2217 18
pascal@2217 19 # Rules to configure and make the package.
pascal@2217 20 compile_rules()
pascal@2217 21 {
pascal@2217 22 cd $src
pascal@2217 23 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2217 24 --enable-openldap --disable-ldap-doc --disable-nis \
pascal@2217 25 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
pascal@2217 26 --sysconfdir=/etc --localstatedir=/var \
pascal@2217 27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2217 28 make &&
pascal@2217 29 make DESTDIR=$PWD/_pkg install
pascal@2217 30 }
pascal@2217 31
pascal@2217 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2217 33 genpkg_rules()
pascal@2217 34 {
pascal@2217 35 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
pascal@2217 36 cp -a $_pkg/etc $fs
pascal@2217 37 rm -f $fs/etc/perdition/perdition.conf
pascal@2217 38 cp -a ../$SOURCE/stuff/etc $fs
pascal@2217 39 cp -a $_pkg/usr/sbin $fs/usr
pascal@2217 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@2217 41 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@2217 42 mkdir -p $fs/var/run/perdition.$i
pascal@2217 43 done
pascal@2217 44 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
pascal@2217 45 }
pascal@2217 46
pascal@2217 47 # Pre and post install commands for Tazpkg.
pascal@2217 48 post_install()
pascal@2217 49 {
pascal@2217 50 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@2217 51 chown nobody.nogroup $1/var/run/perdition.$i
pascal@2217 52 done
pascal@2217 53 cat <<EOF
pascal@2217 54 ----
pascal@2217 55 Perdition will forward to the 127.0.0.1:50143 imap server.
pascal@2217 56 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
pascal@2217 57 and restart cyrus-imap, or modify files in /etc/perdition.
pascal@2217 58 To start $SOURCE server you can run :
pascal@2217 59
pascal@2217 60 /etc/init.d/$SOURCE start
pascal@2217 61
pascal@2217 62 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
pascal@2217 63 ----
pascal@2217 64 EOF
pascal@2217 65 }