wok view ssmtp/receipt @ rev 10953

Up: apache to 2.2.21.(Security Fix)
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Sep 13 13:48:32 2011 +0000 (2011-09-13)
parents be13f25e790b
children 33569d1190f4
line source
1 # SliTaz package receipt.
3 PACKAGE="ssmtp"
4 VERSION="2.62"
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.gz"
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 }