wok diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perdition/receipt Sat Aug 09 21:05:27 2008 +0000 1.3 @@ -0,0 +1,61 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="perdition" 1.7 +VERSION="1.17.1" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="IMAP/POP proxy." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" 1.13 +WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" 1.14 +BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev" 1.15 +DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap" 1.16 +CONFIG_FILES="/etc/perdition" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.23 + --enable-openldap --disable-ldap-doc --disable-nis \ 1.24 + --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 1.25 + --sysconfdir=/etc --localstatedir=/var \ 1.26 + --mandir=/usr/share/man $CONFIGURE_ARGS 1.27 + make 1.28 + make DESTDIR=$PWD/_pkg install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr/lib 1.35 + cp -a $_pkg/etc $fs 1.36 + rm -f $fs/etc/perdition/perdition.conf 1.37 + cp -a stuff/etc $fs 1.38 + cp -a $_pkg/usr/sbin $fs/usr 1.39 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.40 + for i in pop3 pop3s imap4 imap4s imaps; do 1.41 + mkdir -p $fs/var/run/perdition.$i 1.42 + done 1.43 + for i in $(cd $WOK; ls -d perdition-*) 1.44 + do 1.45 + tazwok cook $i 1.46 + done 1.47 +} 1.48 + 1.49 +# Pre and post install commands for Tazpkg. 1.50 +post_install() 1.51 +{ 1.52 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 1.53 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.54 +$(cd $1/ ; find etc/perdition -type f) 1.55 +EOT 1.56 + for i in pop3 pop3s imap4 imap4s imaps; do 1.57 + chown nobody.nogroup $1/var/run/perdition.$i 1.58 + done 1.59 +} 1.60 + 1.61 +repack_cleanup() 1.62 +{ 1.63 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.64 +}