wok-current view ssmtp/receipt @ rev 9118
glibc-dev: ensure necessary packages are built
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 05 13:14:44 2011 +0100 (2011-03-05) |
parents | 1794ce625358 |
children | 58db922eca44 |
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 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
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 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr \
19 --sysconfdir=/etc \
20 --mandir=/usr/share/man \
21 --enable-md5auth \
22 --enable-ssl \
23 $CONFIGURE_ARGS &&
24 make &&
26 # Install
27 mkdir -p $PWD/_pkg/usr/sbin $PWD/_pkg/etc/ssmtp
28 cp ssmtp $PWD/_pkg/usr/sbin
29 cp revaliases ssmtp.conf $PWD/_pkg/etc/ssmtp
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $_pkg/usr/sbin/ $fs/usr/
37 cp -a $_pkg/etc/ $fs/
38 }
40 post_install()
41 {
42 local root
43 root=$1
44 echo "Processing post-install commands..."
45 ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
46 ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
47 ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
48 }
50 post_remove()
51 {
52 echo "Processing post-remove commands..."
53 rm -f $1/usr/sbin/sendmail
54 rm -f $1/usr/sbin/newaliases
55 rm -f $1/usr/sbin/mailq
56 }