wok-4.x view ssmtp/receipt @ rev 12438

bash: CVE-2014-6271 fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 25 12:58:21 2014 +0200 (2014-09-25)
parents 58db922eca44
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ssmtp"
4 VERSION="2.64"
5 CATEGORY="network"
6 SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub."
7 MAINTAINER="rocky@slitaz.org"
8 DEPENDS="openssl"
9 BUILD_DEPENDS="openssl-dev"
10 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
11 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
12 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
13 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr \
20 --sysconfdir=/etc \
21 --mandir=/usr/share/man \
22 --enable-md5auth \
23 --enable-ssl \
24 $CONFIGURE_ARGS &&
25 make &&
27 # Install
28 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
29 cp ssmtp $DESTDIR/usr/sbin
30 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/sbin/ $fs/usr/
38 cp -a $_pkg/etc/ $fs/
39 }
41 post_install()
42 {
43 local root
44 root=$1
45 echo "Processing post-install commands..."
46 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
48 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
49 }
51 post_remove()
52 {
53 echo "Processing post-remove commands..."
54 rm -f $1/usr/sbin/sendmail
55 rm -f $1/usr/sbin/newaliases
56 rm -f $1/usr/sbin/mailq
57 }