wok annotate 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
rev   line source
pascal@1215 1 # SliTaz package receipt.
pascal@1215 2
pascal@1215 3 PACKAGE="perdition"
pascal@1215 4 VERSION="1.17.1"
pascal@1215 5 CATEGORY="network"
pascal@1215 6 SHORT_DESC="IMAP/POP proxy."
pascal@1215 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1215 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1215 9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
pascal@1215 10 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
pascal@1215 11 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev"
pascal@1215 12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap"
pascal@1215 13 CONFIG_FILES="/etc/perdition"
pascal@1215 14
pascal@1215 15 # Rules to configure and make the package.
pascal@1215 16 compile_rules()
pascal@1215 17 {
pascal@1215 18 cd $src
pascal@1215 19 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1215 20 --enable-openldap --disable-ldap-doc --disable-nis \
pascal@1215 21 --disable-odbc --disable-mysql --disable-pg --disable-bdb \
pascal@1215 22 --sysconfdir=/etc --localstatedir=/var \
pascal@1215 23 --mandir=/usr/share/man $CONFIGURE_ARGS
pascal@1215 24 make
pascal@1215 25 make DESTDIR=$PWD/_pkg install
pascal@1215 26 }
pascal@1215 27
pascal@1215 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1215 29 genpkg_rules()
pascal@1215 30 {
pascal@1215 31 mkdir -p $fs/usr/lib
pascal@1215 32 cp -a $_pkg/etc $fs
pascal@1215 33 rm -f $fs/etc/perdition/perdition.conf
pascal@1215 34 cp -a stuff/etc $fs
pascal@1215 35 cp -a $_pkg/usr/sbin $fs/usr
pascal@1215 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@1215 37 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@1215 38 mkdir -p $fs/var/run/perdition.$i
pascal@1215 39 done
pascal@1215 40 for i in $(cd $WOK; ls -d perdition-*)
pascal@1215 41 do
pascal@1215 42 tazwok cook $i
pascal@1215 43 done
pascal@1215 44 }
pascal@1215 45
pascal@1215 46 # Pre and post install commands for Tazpkg.
pascal@1215 47 post_install()
pascal@1215 48 {
pascal@1215 49 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
pascal@1215 50 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
pascal@1215 51 $(cd $1/ ; find etc/perdition -type f)
pascal@1215 52 EOT
pascal@1215 53 for i in pop3 pop3s imap4 imap4s imaps; do
pascal@1215 54 chown nobody.nogroup $1/var/run/perdition.$i
pascal@1215 55 done
pascal@1215 56 }
pascal@1215 57
pascal@1215 58 repack_cleanup()
pascal@1215 59 {
pascal@1215 60 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
pascal@1215 61 }