wok-next view ssmtp/receipt @ rev 18431
open-vm-tools: add dnet dep
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Mon Sep 21 22:09:23 2015 +0000 (2015-09-21) |
parents | 458c82e6cb3c |
children | 9e01bc6321ea |
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 cd $src
21 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
22 ./configure --prefix=/usr \
23 --sysconfdir=/etc \
24 --mandir=/usr/share/man \
25 --enable-md5auth \
26 --enable-ssl \
27 $CONFIGURE_ARGS &&
28 make &&
30 # Install
31 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
32 cp ssmtp $DESTDIR/usr/sbin
33 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/sbin/ $fs/usr/
41 cp -a $install/etc/ $fs/
42 }
44 post_install()
45 {
46 local root
47 root=$1
48 echo "Processing post-install commands..."
49 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
50 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
51 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
52 }
54 post_remove()
55 {
56 echo "Processing post-remove commands..."
57 rm -f $1/usr/sbin/sendmail
58 rm -f $1/usr/sbin/newaliases
59 rm -f $1/usr/sbin/mailq
60 }