wok-next annotate ssmtp/receipt @ rev 14387

embryo: change tags
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 07:01:02 2013 +0200 (2013-04-23)
parents 33569d1190f4
children 7896f0694ef6
rev   line source
rocky@3548 1 # SliTaz package receipt.
rocky@3548 2
rocky@3548 3 PACKAGE="ssmtp"
slaxemulator@11000 4 VERSION="2.64"
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"
pascal@10538 9 BUILD_DEPENDS="openssl-dev"
slaxemulator@11000 10 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
rocky@3548 11 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
rocky@3548 12 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
rocky@3548 13 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
rocky@3548 14
rocky@3548 15 # Rules to configure and make the package.
rocky@3548 16 compile_rules()
rocky@3548 17 {
slaxemulator@8751 18 cd $src
pascal@12968 19 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
rocky@3548 20 ./configure --prefix=/usr \
rocky@3548 21 --sysconfdir=/etc \
rocky@3548 22 --mandir=/usr/share/man \
rocky@3548 23 --enable-md5auth \
rocky@3548 24 --enable-ssl \
rocky@3548 25 $CONFIGURE_ARGS &&
rocky@3548 26 make &&
rocky@3548 27
rocky@3548 28 # Install
pascal@10538 29 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
pascal@10538 30 cp ssmtp $DESTDIR/usr/sbin
pascal@10538 31 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
rocky@3548 32 }
rocky@3548 33
rocky@3548 34 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3548 35 genpkg_rules()
rocky@3548 36 {
rocky@3548 37 mkdir -p $fs/usr
rocky@3548 38 cp -a $_pkg/usr/sbin/ $fs/usr/
rocky@3548 39 cp -a $_pkg/etc/ $fs/
rocky@3548 40 }
rocky@3548 41
rocky@3548 42 post_install()
rocky@3548 43 {
rocky@3548 44 local root
rocky@3548 45 root=$1
rocky@3548 46 echo "Processing post-install commands..."
rocky@3573 47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
rocky@3573 48 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
rocky@3573 49 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
rocky@3548 50 }
rocky@3548 51
rocky@3548 52 post_remove()
rocky@3548 53 {
rocky@3548 54 echo "Processing post-remove commands..."
slaxemulator@8751 55 rm -f $1/usr/sbin/sendmail
slaxemulator@8751 56 rm -f $1/usr/sbin/newaliases
slaxemulator@8751 57 rm -f $1/usr/sbin/mailq
rocky@3548 58 }