# HG changeset patch # User Liu Peng # Date 1245731561 -28800 # Node ID 76fb04b9a771a43d9fd2b4132b33c994d1c32359 # Parent f15fff8f2ad9bb00321fd6396b80eba822b479aa Add ssmtp diff -r f15fff8f2ad9 -r 76fb04b9a771 ssmtp/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ssmtp/receipt Tue Jun 23 12:32:41 2009 +0800 @@ -0,0 +1,62 @@ +# SliTaz package receipt. + +PACKAGE="ssmtp" +VERSION="2.62" +CATEGORY="network" +SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub." +MAINTAINER="rocky@slitaz.org" +DEPENDS="openssl" +TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz" +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 ssmtp + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --enable-md5auth \ + --enable-ssl \ + $CONFIGURE_ARGS && + make && + + # Install + mkdir -p $PWD/_pkg/usr/sbin $PWD/_pkg/etc/ssmtp + cp ssmtp $PWD/_pkg/usr/sbin + cp revaliases ssmtp.conf $PWD/_pkg/etc/ssmtp +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=$PWD/ssmtp/_pkg + 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 $root/usr/sbin/ssmtp $root/usr/sbin/sendmail + ln -sf $root/usr/sbin/ssmtp $root/usr/sbin/newaliases + ln -sf $root/usr/sbin/ssmtp $root/usr/sbin/mailq +} + +post_remove() +{ + echo "Processing post-remove commands..." + rm -f /usr/sbin/sendmail + rm -f /usr/sbin/newaliases + rm -f /usr/sbin/mailq +} + +clean_wok() +{ + rm -rf ssmtp +}