wok-next view perdition-pam/receipt @ rev 6407
firefox-dev, glew, jclic, libunique-doc, lirc, puzzles, py3k, xlogo: fix DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 25 14:16:28 2010 +0200 (2010-09-25) |
parents | a4af2b62bb67 |
children | fc377ad427e1 |
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 \
14 pam glibc-base libkrb5 libcomerr3 gdbm"
15 CONFIG_FILES="/etc/perdition"
16 PROVIDE="perdition:pam"
17 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --enable-openldap --disable-ldap-doc --disable-nis \
25 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
26 --sysconfdir=/etc --localstatedir=/var \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib $fs/etc/openldap/schema
36 cp -a $_pkg/etc $fs
37 rm -f $fs/etc/perdition/perdition.conf
38 cp -a ../$SOURCE/stuff/etc $fs
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 for i in pop3 pop3s imap4 imap4s imaps; do
42 mkdir -p $fs/var/run/perdition.$i
43 done
44 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 for i in pop3 pop3s imap4 imap4s imaps; do
51 chown nobody.nogroup $1/var/run/perdition.$i
52 done
53 cat <<EOF
54 ----
55 Perdition will forward to the 127.0.0.1:50143 imap server.
56 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
57 and restart cyrus-imap, or modify files in /etc/perdition.
58 To start $SOURCE server you can run :
60 /etc/init.d/$SOURCE start
62 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
63 ----
64 EOF
65 }