wok view perdition-pam/receipt @ rev 3226
add net-snmp
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Fri May 29 17:10:23 2009 +0000 (2009-05-29) |
parents | 34b562c22219 |
children | f3327707164a |
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 popt-dev cyrus-sasl-dev"
13 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl pam"
14 CONFIG_FILES="/etc/perdition"
15 PROVIDE="perdition:pam"
16 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --enable-openldap --disable-ldap-doc --disable-nis \
24 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
25 --sysconfdir=/etc --localstatedir=/var \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
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 ../$SOURCE/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 }
46 # Pre and post install commands for Tazpkg.
47 post_install()
48 {
49 for i in pop3 pop3s imap4 imap4s imaps; do
50 chown nobody.nogroup $1/var/run/perdition.$i
51 done
52 cat <<EOF
53 ----
54 Perdition will forward to the 127.0.0.1:50143 imap server.
55 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
56 and restart cyrus-imap, or modify files in /etc/perdition.
57 To start $SOURCE server you can run :
59 /etc/init.d/$SOURCE start
61 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
62 ----
63 EOF
64 }