wok-next view ssmtp/receipt @ rev 19722

Up net-snmp (5.7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 24 18:42:05 2017 +0200 (2017-05-24)
parents 9e01bc6321ea
children 757d032c55c7
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 LICENSE="GPL2"
9 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
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 DEPENDS="openssl"
15 BUILD_DEPENDS="openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
21 ./configure --prefix=/usr \
22 --sysconfdir=/etc \
23 --mandir=/usr/share/man \
24 --enable-md5auth \
25 --enable-ssl \
26 $CONFIGURE_ARGS &&
27 make
29 # Install
30 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
31 cp ssmtp $DESTDIR/usr/sbin
32 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/sbin/ $fs/usr/
40 cp -a $install/etc/ $fs/
41 }
43 post_install()
44 {
45 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
46 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
47 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq"
48 }
50 post_remove()
51 {
52 rm -f "$1/usr/sbin/sendmail"
53 rm -f "$1/usr/sbin/newaliases"
54 rm -f "$1/usr/sbin/mailq"
55 }