wok rev 3548

Add ssmtp
author Liu Peng <rocky@slitaz.org>
date Tue Jun 23 12:32:41 2009 +0800 (2009-06-23)
parents f15fff8f2ad9
children 2b2c37045605
files ssmtp/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ssmtp/receipt	Tue Jun 23 12:32:41 2009 +0800
     1.3 @@ -0,0 +1,62 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ssmtp"
     1.7 +VERSION="2.62"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub."
    1.10 +MAINTAINER="rocky@slitaz.org"
    1.11 +DEPENDS="openssl"
    1.12 +TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
    1.13 +WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
    1.14 +WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
    1.15 +CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +    cd ssmtp
    1.21 +    ./configure --prefix=/usr \
    1.22 +        --sysconfdir=/etc \
    1.23 +        --mandir=/usr/share/man \
    1.24 +        --enable-md5auth \
    1.25 +        --enable-ssl \
    1.26 +        $CONFIGURE_ARGS &&
    1.27 +    make &&
    1.28 +
    1.29 +    # Install
    1.30 +    mkdir -p $PWD/_pkg/usr/sbin $PWD/_pkg/etc/ssmtp
    1.31 +    cp ssmtp $PWD/_pkg/usr/sbin
    1.32 +    cp revaliases ssmtp.conf $PWD/_pkg/etc/ssmtp
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +    _pkg=$PWD/ssmtp/_pkg
    1.39 +    mkdir -p $fs/usr
    1.40 +    cp -a $_pkg/usr/sbin/ $fs/usr/
    1.41 +    cp -a $_pkg/etc/ $fs/
    1.42 +}
    1.43 +
    1.44 +post_install() 
    1.45 +{
    1.46 +    local root
    1.47 +    root=$1
    1.48 +    echo "Processing post-install commands..."
    1.49 +    ln -sf $root/usr/sbin/ssmtp $root/usr/sbin/sendmail
    1.50 +    ln -sf $root/usr/sbin/ssmtp $root/usr/sbin/newaliases
    1.51 +    ln -sf $root/usr/sbin/ssmtp $root/usr/sbin/mailq
    1.52 +}
    1.53 +
    1.54 +post_remove() 
    1.55 +{
    1.56 +    echo "Processing post-remove commands..."
    1.57 +    rm -f /usr/sbin/sendmail
    1.58 +    rm -f /usr/sbin/newaliases
    1.59 +    rm -f /usr/sbin/mailq
    1.60 +}
    1.61 +
    1.62 +clean_wok()
    1.63 +{
    1.64 +    rm -rf ssmtp
    1.65 +}