wok view perdition/receipt @ rev 1229

perdition: add message in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 10 19:18:47 2008 +0000 (2008-08-10)
parents 8450e8bc287a
children 3334e1dfcd32
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"
12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap"
13 CONFIG_FILES="/etc/perdition"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --infodir=/usr/share/info \
20 --enable-openldap --disable-ldap-doc --disable-nis \
21 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
22 --sysconfdir=/etc --localstatedir=/var \
23 --mandir=/usr/share/man $CONFIGURE_ARGS
24 make
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $_pkg/etc $fs
33 rm -f $fs/etc/perdition/perdition.conf
34 cp -a stuff/etc $fs
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 for i in pop3 pop3s imap4 imap4s imaps; do
38 mkdir -p $fs/var/run/perdition.$i
39 done
40 for i in $(cd $WOK; ls -d perdition-*)
41 do
42 tazwok cook $i
43 done
44 }
46 # Pre and post install commands for Tazpkg.
47 post_install()
48 {
49 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
50 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
51 $(cd $1/ ; find etc/perdition -type f)
52 EOT
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 }
70 repack_cleanup()
71 {
72 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
73 }