wok view perdition-pam/receipt @ rev 8869

Fix: libgtkimageview TARBALL/WGET_URL... If you had error './configure not found', you have to remove the corrupted tarball from SOURCES_REPOSITORY, named gtkimageview-1.6.4.taz.lzma
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 26 06:06:17 2011 +0100 (2011-02-26)
parents f3327707164a
children 129bb5b11a7e
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 ?"
18 SRC_WANTED="$SOURCE"
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=$PWD/_pkg 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 $_pkg/etc $fs
38 rm -f $fs/etc/perdition/perdition.conf
39 cp -a ../$SOURCE/stuff/etc $fs
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/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 }