wok-6.x view perdition/receipt @ rev 2452
Add pam_krb5
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 13 16:07:40 2009 +0000 (2009-03-13) |
parents | 65c29cee9418 |
children | f3327707164a |
line source
1 # SliTaz package receipt.
3 PACKAGE="perdition"
4 VERSION="1.17.1"
5 CATEGORY="network"
6 SHORT_DESC="IMAP/POP proxy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
10 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
11 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev popt-dev cyrus-sasl-dev"
12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl"
13 CONFIG_FILES="/etc/perdition"
14 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/pam=yes/pam=no/' configure
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 || return 1
26 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
35 cp -a $_pkg/etc $fs
36 rm -f $fs/etc/perdition/perdition.conf
37 cp -a stuff/etc $fs
38 cp -a $_pkg/usr/sbin $fs/usr
39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 for i in pop3 pop3s imap4 imap4s imaps; do
41 mkdir -p $fs/var/run/perdition.$i
42 done
43 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
44 for i in $(cd $WOK; ls -d perdition-*)
45 do
46 tazwok cook $i
47 done
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 for i in pop3 pop3s imap4 imap4s imaps; do
54 chown nobody.nogroup $1/var/run/perdition.$i
55 done
56 cat <<EOF
57 ----
58 Perdition will forward to the 127.0.0.1:50143 imap server.
59 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
60 and restart cyrus-imap, or modify files in /etc/perdition.
61 To start $PACKAGE server you can run :
63 /etc/init.d/$PACKAGE start
65 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
66 ----
67 EOF
68 }