wok view ssmtp/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 7896f0694ef6 |
children | d6ca18366f41 |
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 echo "Processing post-install commands..."
47 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
48 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
49 ln -sf /usr/sbin/ssmtp "$1/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 }