wok-6.x annotate ssmtp/receipt @ rev 8301

Fix: shared-mime-info now take care of --root= option
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Feb 01 02:50:01 2011 +0100 (2011-02-01)
parents 76fb04b9a771
children be13f25e790b
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 {
rocky@3548 17 cd ssmtp
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 _pkg=$PWD/ssmtp/_pkg
rocky@3548 36 mkdir -p $fs/usr
rocky@3548 37 cp -a $_pkg/usr/sbin/ $fs/usr/
rocky@3548 38 cp -a $_pkg/etc/ $fs/
rocky@3548 39 }
rocky@3548 40
rocky@3548 41 post_install()
rocky@3548 42 {
rocky@3548 43 local root
rocky@3548 44 root=$1
rocky@3548 45 echo "Processing post-install commands..."
rocky@3573 46 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
rocky@3573 47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
rocky@3573 48 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
rocky@3548 49 }
rocky@3548 50
rocky@3548 51 post_remove()
rocky@3548 52 {
rocky@3548 53 echo "Processing post-remove commands..."
rocky@3548 54 rm -f /usr/sbin/sendmail
rocky@3548 55 rm -f /usr/sbin/newaliases
rocky@3548 56 rm -f /usr/sbin/mailq
rocky@3548 57 }
rocky@3548 58
rocky@3548 59 clean_wok()
rocky@3548 60 {
rocky@3548 61 rm -rf ssmtp
rocky@3548 62 }