wok annotate ssmtp/receipt @ rev 21168

updated libctpp2 and libctpp2-dev (2.7.1 -> 2.8.3)
author Hans-G?nter Theisgen
date Mon Apr 01 13:56:09 2019 +0100 (2019-04-01)
parents 9e01bc6321ea
children b78e79c31b1f
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
rocky@3548 17 # Rules to configure and make the package.
rocky@3548 18 compile_rules()
rocky@3548 19 {
al@18734 20 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in
al@18734 21 ./configure --prefix=/usr \
al@18734 22 --sysconfdir=/etc \
al@18734 23 --mandir=/usr/share/man \
al@18734 24 --enable-md5auth \
al@18734 25 --enable-ssl \
al@18734 26 $CONFIGURE_ARGS &&
al@18734 27 make
rocky@3548 28
al@18734 29 # Install
al@18734 30 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp
al@18734 31 cp ssmtp $DESTDIR/usr/sbin
al@18734 32 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp
rocky@3548 33 }
rocky@3548 34
rocky@3548 35 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3548 36 genpkg_rules()
rocky@3548 37 {
al@18734 38 mkdir -p $fs/usr
al@18734 39 cp -a $install/usr/sbin/ $fs/usr/
al@18734 40 cp -a $install/etc/ $fs/
rocky@3548 41 }
rocky@3548 42
al@18734 43 post_install()
rocky@3548 44 {
al@18734 45 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
al@18734 46 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
al@18734 47 ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq"
rocky@3548 48 }
rocky@3548 49
al@18734 50 post_remove()
rocky@3548 51 {
al@18734 52 rm -f "$1/usr/sbin/sendmail"
al@18734 53 rm -f "$1/usr/sbin/newaliases"
al@18734 54 rm -f "$1/usr/sbin/mailq"
rocky@3548 55 }