wok rev 2217

Add perdition-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 08:09:44 2009 +0000 (2009-02-12)
parents f59fdcc72fb4
children a24865656800
files perdition-pam/receipt perdition/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/perdition-pam/receipt	Thu Feb 12 08:09:44 2009 +0000
     1.3 @@ -0,0 +1,63 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="perdition-pam"
     1.7 +VERSION="1.17.1"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="IMAP/POP proxy."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="perdition"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.vergenet.net/linux/$SOURCE"
    1.14 +WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
    1.15 +BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev pam pam-dev"
    1.16 +DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap pam"
    1.17 +CONFIG_FILES="/etc/perdition"
    1.18 +BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.25 +	--enable-openldap --disable-ldap-doc --disable-nis \
    1.26 +	--disable-odbc --disable-mysql --disable-pg --disable-bdb \
    1.27 +	--sysconfdir=/etc --localstatedir=/var \
    1.28 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.29 +	make &&
    1.30 +	make DESTDIR=$PWD/_pkg install
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/usr/lib $fs/etc/openldap/schema
    1.37 +	cp -a $_pkg/etc $fs
    1.38 +	rm -f $fs/etc/perdition/perdition.conf
    1.39 +	cp -a ../$SOURCE/stuff/etc $fs
    1.40 +	cp -a $_pkg/usr/sbin $fs/usr
    1.41 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.42 +	for i in pop3 pop3s imap4 imap4s imaps; do
    1.43 +		mkdir -p $fs/var/run/perdition.$i
    1.44 +	done
    1.45 +	cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
    1.46 +}
    1.47 +
    1.48 +# Pre and post install commands for Tazpkg.
    1.49 +post_install()
    1.50 +{
    1.51 +	for i in pop3 pop3s imap4 imap4s imaps; do
    1.52 +		chown nobody.nogroup $1/var/run/perdition.$i
    1.53 +	done
    1.54 +	cat <<EOF
    1.55 +----
    1.56 +Perdition will forward to the 127.0.0.1:50143 imap server.
    1.57 +Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
    1.58 +and restart cyrus-imap, or modify files in /etc/perdition.
    1.59 +To start $SOURCE server you can run :
    1.60 +
    1.61 +    /etc/init.d/$SOURCE start
    1.62 +    
    1.63 +Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
    1.64 +----
    1.65 +EOF
    1.66 +}
     2.1 --- a/perdition/receipt	Thu Feb 12 07:47:04 2009 +0000
     2.2 +++ b/perdition/receipt	Thu Feb 12 08:09:44 2009 +0000
     2.3 @@ -21,8 +21,9 @@
     2.4  	--enable-openldap --disable-ldap-doc --disable-nis \
     2.5  	--disable-odbc --disable-mysql --disable-pg --disable-bdb \
     2.6  	--sysconfdir=/etc --localstatedir=/var \
     2.7 -	--mandir=/usr/share/man $CONFIGURE_ARGS
     2.8 -	make
     2.9 +	--mandir=/usr/share/man $CONFIGURE_ARGS || return 1
    2.10 +	sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
    2.11 +	make &&
    2.12  	make DESTDIR=$PWD/_pkg install
    2.13  }
    2.14