wok view perdition-pam/receipt @ rev 16070

Add reqflow
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 13 11:17:54 2014 +0000 (2014-03-13)
parents 7b13b3b4b836
children 9e01bc6321ea
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 LICENSE="GPL2"
9 SOURCE="perdition"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.vergenet.net/linux/$SOURCE"
12 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
13 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"
14 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
15 pam glibc-base libkrb5 libcomerr3 gdbm"
16 CONFIG_FILES="/etc/perdition"
17 PROVIDE="perdition:pam"
18 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --enable-openldap --disable-ldap-doc --disable-nis \
26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
27 --sysconfdir=/etc --localstatedir=/var \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
37 cp -a $install/etc $fs
38 rm -f $fs/etc/perdition/perdition.conf
39 cp -a ../$SOURCE/stuff/etc $fs
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 for i in pop3 pop3s imap4 imap4s imaps; do
43 mkdir -p $fs/var/run/perdition.$i
44 done
45 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 for i in pop3 pop3s imap4 imap4s imaps; do
52 chown nobody.nogroup $1/var/run/perdition.$i
53 done
54 cat <<EOF
55 ----
56 Perdition will forward to the 127.0.0.1:50143 imap server.
57 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
58 and restart cyrus-imap, or modify files in /etc/perdition.
59 To start $SOURCE server you can run :
61 /etc/init.d/$SOURCE start
63 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
64 ----
65 EOF
66 }