wok view ssmtp/receipt @ rev 14151

syslinux/isohybrid.exe: lseek fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 04 10:03:54 2013 +0100 (2013-03-04)
parents 33569d1190f4
children 7896f0694ef6
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 DEPENDS="openssl"
9 BUILD_DEPENDS="openssl-dev"
10 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
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 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc \
22 --mandir=/usr/share/man \
23 --enable-md5auth \
24 --enable-ssl \
25 $CONFIGURE_ARGS &&
26 make &&
28 # Install
29 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
30 cp ssmtp $DESTDIR/usr/sbin
31 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $_pkg/usr/sbin/ $fs/usr/
39 cp -a $_pkg/etc/ $fs/
40 }
42 post_install()
43 {
44 local root
45 root=$1
46 echo "Processing post-install commands..."
47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
48 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
49 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
50 }
52 post_remove()
53 {
54 echo "Processing post-remove commands..."
55 rm -f $1/usr/sbin/sendmail
56 rm -f $1/usr/sbin/newaliases
57 rm -f $1/usr/sbin/mailq
58 }