wok-current view ssmtp/receipt @ rev 21379

updated lsof (4.84 -> 4.91)
author Hans-G?nter Theisgen
date Mon Apr 22 10:17:13 2019 +0100 (2019-04-22)
parents 9e01bc6321ea
children b78e79c31b1f
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 }