wok-6.x annotate ssmtp/receipt @ rev 25068

updated alsa-tools packages (1.1.5 -> 1.2.5)
author Hans-G?nter Theisgen
date Fri Jun 10 13:52:51 2022 +0100 (2022-06-10)
parents d6ca18366f41
children 73f36875e5a7
rev   line source
rocky@3548 1 # SliTaz package receipt.
rocky@3548 2
rocky@3548 3 PACKAGE="ssmtp"
slaxemulator@11000 4 VERSION="2.64"
rocky@3548 5 CATEGORY="network"
rocky@3548 6 SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub."
rocky@3548 7 MAINTAINER="rocky@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
slaxemulator@11000 9 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
rocky@3548 10 WEB_SITE="http://packages.debian.org/stable/mail/ssmtp"
rocky@3548 11 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL"
rocky@3548 12 CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases"
rocky@3548 13
pascal@15002 14 DEPENDS="openssl"
pascal@15002 15 BUILD_DEPENDS="openssl-dev"
pascal@15002 16
pascal@24419 17 # What is the latest version available today?
pascal@24419 18 current_version()
pascal@24419 19 {
pascal@24419 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 21 sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 22 }
pascal@24419 23
rocky@3548 24 # Rules to configure and make the package.
rocky@3548 25 compile_rules()
rocky@3548 26 {
al@18734 27 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
al@18734 28 ./configure --prefix=/usr \
al@18734 29 --sysconfdir=/etc \
al@18734 30 --mandir=/usr/share/man \
al@18734 31 --enable-md5auth \
al@18734 32 --enable-ssl \
al@18734 33 $CONFIGURE_ARGS &&
al@18734 34 make
rocky@3548 35
al@18734 36 # Install
al@18734 37 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
al@18734 38 cp ssmtp $DESTDIR/usr/sbin
al@18734 39 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
rocky@3548 40 }
rocky@3548 41
rocky@3548 42 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3548 43 genpkg_rules()
rocky@3548 44 {
al@18734 45 mkdir -p $fs/usr
al@18734 46 cp -a $install/usr/sbin/ $fs/usr/
al@18734 47 cp -a $install/etc/ $fs/
rocky@3548 48 }
rocky@3548 49
al@18734 50 post_install()
rocky@3548 51 {
al@18734 52 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
al@18734 53 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
al@18734 54 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq"
rocky@3548 55 }
rocky@3548 56
al@18734 57 post_remove()
rocky@3548 58 {
al@18734 59 rm -f "$1/usr/sbin/sendmail"
al@18734 60 rm -f "$1/usr/sbin/newaliases"
al@18734 61 rm -f "$1/usr/sbin/mailq"
rocky@3548 62 }