wok view ssmtp/receipt @ rev 6243
Up: nano to 2.2.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Sep 12 14:04:06 2010 +0000 (2010-09-12) |
parents | 76fb04b9a771 |
children | be13f25e790b |
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 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
10 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
11 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
12 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd ssmtp
18 ./configure --prefix=/usr \
19 --sysconfdir=/etc \
20 --mandir=/usr/share/man \
21 --enable-md5auth \
22 --enable-ssl \
23 $CONFIGURE_ARGS &&
24 make &&
26 # Install
27 mkdir -p $PWD/_pkg/usr/sbin $PWD/_pkg/etc/ssmtp
28 cp ssmtp $PWD/_pkg/usr/sbin
29 cp revaliases ssmtp.conf $PWD/_pkg/etc/ssmtp
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 _pkg=$PWD/ssmtp/_pkg
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 /usr/sbin/sendmail
55 rm -f /usr/sbin/newaliases
56 rm -f /usr/sbin/mailq
57 }
59 clean_wok()
60 {
61 rm -rf ssmtp
62 }