wok view perdition/receipt @ rev 7029
Fixed xorg-libXmu-dev VERSION.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 31 18:30:37 2010 +0000 (2010-10-31) |
parents | a4af2b62bb67 |
children | 068411ccd1e5 |
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 glibc-base libkrb5 libcomerr3 gdbm"
14 CONFIG_FILES="/etc/perdition"
15 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/pam=yes/pam=no/' configure
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 || return 1
27 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h
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 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 for i in $(cd $WOK; ls -d perdition-*)
46 do
47 tazwok cook $i
48 done
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 for i in pop3 pop3s imap4 imap4s imaps; do
55 chown nobody.nogroup $1/var/run/perdition.$i
56 done
57 cat <<EOF
58 ----
59 Perdition will forward to the 127.0.0.1:50143 imap server.
60 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
61 and restart cyrus-imap, or modify files in /etc/perdition.
62 To start $PACKAGE server you can run :
64 /etc/init.d/$PACKAGE start
66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
67 ----
68 EOF
69 }