wok-next diff ssmtp/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | d6ca18366f41 |
children | d5aab818505e |
line diff
1.1 --- a/ssmtp/receipt Mon Dec 21 02:53:09 2015 +0200 1.2 +++ b/ssmtp/receipt Sat May 12 05:17:48 2018 +0300 1.3 @@ -1,55 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ssmtp" 1.8 VERSION="2.64" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub." 1.11 +SHORT_DESC="Extremely simple MTA to get mail off the system to a mailhub" 1.12 MAINTAINER="rocky@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://packages.debian.org/stable/mail/ssmtp" 1.15 + 1.16 TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2" 1.17 -WEB_SITE="http://packages.debian.org/stable/mail/ssmtp" 1.18 WGET_URL="http://ftp.debian.org/debian/pool/main/s/ssmtp/$TARBALL" 1.19 -CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases" 1.20 1.21 -DEPENDS="openssl" 1.22 BUILD_DEPENDS="openssl-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 sed -i 's|@LIBS@|& -lcrypto|' Makefile.in 1.29 - ./configure --prefix=/usr \ 1.30 - --sysconfdir=/etc \ 1.31 - --mandir=/usr/share/man \ 1.32 + 1.33 + ./configure \ 1.34 --enable-md5auth \ 1.35 --enable-ssl \ 1.36 $CONFIGURE_ARGS && 1.37 - make 1.38 + make || return 1 1.39 1.40 # Install 1.41 mkdir -p $DESTDIR/usr/sbin $DESTDIR/etc/ssmtp 1.42 cp ssmtp $DESTDIR/usr/sbin 1.43 cp revaliases ssmtp.conf $DESTDIR/etc/ssmtp 1.44 + 1.45 + ln -sf ssmtp "$install/usr/sbin/sendmail" 1.46 + ln -sf ssmtp "$install/usr/sbin/newaliases" 1.47 + ln -sf ssmtp "$install/usr/sbin/mailq" 1.48 } 1.49 1.50 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 -genpkg_rules() 1.52 -{ 1.53 - mkdir -p $fs/usr 1.54 - cp -a $install/usr/sbin/ $fs/usr/ 1.55 - cp -a $install/etc/ $fs/ 1.56 +genpkg_rules() { 1.57 + copy @std 1.58 + DEPENDS="openssl" 1.59 + CONFIG_FILES="/etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases" 1.60 } 1.61 - 1.62 -post_install() 1.63 -{ 1.64 - ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail" 1.65 - ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases" 1.66 - ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq" 1.67 -} 1.68 - 1.69 -post_remove() 1.70 -{ 1.71 - rm -f "$1/usr/sbin/sendmail" 1.72 - rm -f "$1/usr/sbin/newaliases" 1.73 - rm -f "$1/usr/sbin/mailq" 1.74 -}