wok view perdition-pam/receipt @ 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
children a24865656800
line source
1 # SliTaz package receipt.
3 PACKAGE="perdition-pam"
4 VERSION="1.17.1"
5 CATEGORY="network"
6 SHORT_DESC="IMAP/POP proxy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="perdition"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.vergenet.net/linux/$SOURCE"
11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
12 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev pam pam-dev"
13 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap pam"
14 CONFIG_FILES="/etc/perdition"
15 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --enable-openldap --disable-ldap-doc --disable-nis \
23 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
24 --sysconfdir=/etc --localstatedir=/var \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
34 cp -a $_pkg/etc $fs
35 rm -f $fs/etc/perdition/perdition.conf
36 cp -a ../$SOURCE/stuff/etc $fs
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 for i in pop3 pop3s imap4 imap4s imaps; do
40 mkdir -p $fs/var/run/perdition.$i
41 done
42 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
43 }
45 # Pre and post install commands for Tazpkg.
46 post_install()
47 {
48 for i in pop3 pop3s imap4 imap4s imaps; do
49 chown nobody.nogroup $1/var/run/perdition.$i
50 done
51 cat <<EOF
52 ----
53 Perdition will forward to the 127.0.0.1:50143 imap server.
54 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
55 and restart cyrus-imap, or modify files in /etc/perdition.
56 To start $SOURCE server you can run :
58 /etc/init.d/$SOURCE start
60 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
61 ----
62 EOF
63 }