summaryrefslogtreecommitdiff
path: root/network/ssmtp/ssmtp.SlackBuild
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2014-03-11 20:05:33 +0700
committerErik Hanson <erik@slackbuilds.org>2014-03-12 12:42:51 -0500
commita37fc6bd03f81ca48a4086530b719214283724b1 (patch)
tree2d2e9b7834282a254822d9028f6b8dea392ed7f5 /network/ssmtp/ssmtp.SlackBuild
parent81780291c42913d11e088c1533292b8b9d1a9d5f (diff)
downloadslackbuilds-a37fc6bd03f81ca48a4086530b719214283724b1.tar.gz
network/ssmtp: Added SSL/TLS support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ssmtp/ssmtp.SlackBuild')
-rw-r--r--network/ssmtp/ssmtp.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/network/ssmtp/ssmtp.SlackBuild b/network/ssmtp/ssmtp.SlackBuild
index 4ab0be4d18..331937983a 100644
--- a/network/ssmtp/ssmtp.SlackBuild
+++ b/network/ssmtp/ssmtp.SlackBuild
@@ -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 \