SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ssmtp"

# SliTaz package receipt.

PACKAGE="ssmtp"
VERSION="2.64"
CATEGORY="network"
SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub."
MAINTAINER="rocky@slitaz.org"
DEPENDS="openssl"
BUILD_DEPENDS="openssl-dev"
TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --mandir=/usr/share/man \
        --enable-md5auth \
        --enable-ssl \
        $CONFIGURE_ARGS &&
    make &&

    # Install
    mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
    cp ssmtp $DESTDIR/usr/sbin
    cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $_pkg/usr/sbin/ $fs/usr/
    cp -a $_pkg/etc/ $fs/
}

post_install() 
{
    local root
    root=$1
    echo "Processing post-install commands..."
    ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
    ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
    ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
}

post_remove() 
{
    echo "Processing post-remove commands..."
    rm -f $1/usr/sbin/sendmail
    rm -f $1/usr/sbin/newaliases
    rm -f $1/usr/sbin/mailq
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)