wok view ssmtp/receipt @ rev 10785

geany: fix icon for desktop file (*.desktop use icon in /usr/share/pixmaps, tig pkg was ok before, dont modify it anymore!!!)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 14:00:48 2011 +0200 (2011-06-01)
parents be13f25e790b
children 33569d1190f4
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 BUILD_DEPENDS="openssl-dev"
10 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
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 ./configure --prefix=/usr \
20 --sysconfdir=/etc \
21 --mandir=/usr/share/man \
22 --enable-md5auth \
23 --enable-ssl \
24 $CONFIGURE_ARGS &&
25 make &&
27 # Install
28 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
29 cp ssmtp $DESTDIR/usr/sbin
30 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
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 $1/usr/sbin/sendmail
55 rm -f $1/usr/sbin/newaliases
56 rm -f $1/usr/sbin/mailq
57 }