wok view ssmtp/receipt @ rev 25726

renamed xfce4-ristretto to ristretto
author Hans-G?nter Theisgen
date Sat Aug 17 17:30:48 2024 +0100 (2 months ago)
parents b78e79c31b1f
children
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="https://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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
28 ./configure --prefix=/usr \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --enable-md5auth \
32 --enable-ssl \
33 $CONFIGURE_ARGS &&
34 make
36 # Install
37 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
38 cp ssmtp $DESTDIR/usr/sbin
39 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/sbin/ $fs/usr/
47 cp -a $install/etc/ $fs/
48 }
50 post_install()
51 {
52 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
53 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
54 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq"
55 }
57 post_remove()
58 {
59 rm -f "$1/usr/sbin/sendmail"
60 rm -f "$1/usr/sbin/newaliases"
61 rm -f "$1/usr/sbin/mailq"
62 }