network/ssmtp: Added SSL/TLS support.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
LEVAI Daniel 2014-03-11 20:05:33 +07:00 committed by Erik Hanson
parent 81780291c4
commit a37fc6bd03
4 changed files with 15 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (c) 2011, 2012 Daniel LEVAI
# Copyright (c) 2011-2014 LEVAI Daniel
# All rights reserved.
#
# * Redistribution and use in source and binary forms, with or without
@ -25,7 +25,7 @@
PRGNAM=ssmtp
VERSION=2.64
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -70,15 +70,25 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
./configure --prefix=/usr --sysconfdir='$(DESTDIR)/etc' --mandir=/usr/man
for diff in "${CWD}"/patches/*.diff.gz;do
gzip -dc "${diff}" |patch -p0
done
./configure \
--prefix=/usr \
--sysconfdir='$(DESTDIR)/etc' \
--mandir=/usr/man \
--enable-ssl
sed -i -e's,prefix=/usr,prefix=$(DESTDIR)/usr,' \
-e'/\$(GEN_CONFIG) \$(INSTALLED_CONFIGURATION_FILE)/d' \
Makefile
CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG
install -D -m644 -o root -g root ssmtp.conf.5 $PKG/usr/man/man5/ssmtp.conf.5
strip --strip-unneeded $PKG/usr/sbin/ssmtp
gzip -9 $PKG/usr/man/man8/ssmtp.8
gzip -9 $PKG/usr/man/man8/ssmtp.8 $PKG/usr/man/man5/ssmtp.conf.5
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp generate_config README INSTALL COPYING COPYRIGHT TLS \

View file

@ -6,5 +6,5 @@ MD5SUM="65b4e0df4934a6cd08c506cabcbe584f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Daniel LEVAI"
MAINTAINER="LEVAI Daniel"
EMAIL="leva@ecentrum.hu"