wok annotate ssmtp/receipt @ rev 9354

Up: phpmyadmin to 3.3.10.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Mar 19 21:41:08 2011 +0000 (2011-03-19)
parents 1794ce625358
children 58db922eca44
rev   line source
rocky@3548 1 # SliTaz package receipt.
rocky@3548 2
rocky@3548 3 PACKAGE="ssmtp"
rocky@3548 4 VERSION="2.62"
rocky@3548 5 CATEGORY="network"
rocky@3548 6 SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub."
rocky@3548 7 MAINTAINER="rocky@slitaz.org"
rocky@3548 8 DEPENDS="openssl"
rocky@3548 9 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
rocky@3548 10 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
rocky@3548 11 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
rocky@3548 12 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
rocky@3548 13
rocky@3548 14 # Rules to configure and make the package.
rocky@3548 15 compile_rules()
rocky@3548 16 {
slaxemulator@8751 17 cd $src
rocky@3548 18 ./configure --prefix=/usr \
rocky@3548 19 --sysconfdir=/etc \
rocky@3548 20 --mandir=/usr/share/man \
rocky@3548 21 --enable-md5auth \
rocky@3548 22 --enable-ssl \
rocky@3548 23 $CONFIGURE_ARGS &&
rocky@3548 24 make &&
rocky@3548 25
rocky@3548 26 # Install
rocky@3548 27 mkdir -p $PWD/_pkg/usr/sbin $PWD/_pkg/etc/ssmtp
rocky@3548 28 cp ssmtp $PWD/_pkg/usr/sbin
rocky@3548 29 cp revaliases ssmtp.conf $PWD/_pkg/etc/ssmtp
rocky@3548 30 }
rocky@3548 31
rocky@3548 32 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3548 33 genpkg_rules()
rocky@3548 34 {
rocky@3548 35 mkdir -p $fs/usr
rocky@3548 36 cp -a $_pkg/usr/sbin/ $fs/usr/
rocky@3548 37 cp -a $_pkg/etc/ $fs/
rocky@3548 38 }
rocky@3548 39
rocky@3548 40 post_install()
rocky@3548 41 {
rocky@3548 42 local root
rocky@3548 43 root=$1
rocky@3548 44 echo "Processing post-install commands..."
rocky@3573 45 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
rocky@3573 46 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
rocky@3573 47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
rocky@3548 48 }
rocky@3548 49
rocky@3548 50 post_remove()
rocky@3548 51 {
rocky@3548 52 echo "Processing post-remove commands..."
slaxemulator@8751 53 rm -f $1/usr/sbin/sendmail
slaxemulator@8751 54 rm -f $1/usr/sbin/newaliases
slaxemulator@8751 55 rm -f $1/usr/sbin/mailq
rocky@3548 56 }