wok view perdition/receipt @ rev 1215

Add perdition (pop3/imap proxy)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 21:05:27 2008 +0000 (2008-08-09)
parents
children b6f6438cbd39
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 }
58 repack_cleanup()
59 {
60 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
61 }