summaryrefslogtreecommitdiff
path: root/network/ssmtp
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
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')
-rw-r--r--network/ssmtp/patches/01-configure_lcrypto.diff.gzbin0 -> 226 bytes
-rw-r--r--network/ssmtp/patches/02-configure_in_lcrypto.diff.gzbin0 -> 295 bytes
-rw-r--r--network/ssmtp/ssmtp.SlackBuild18
-rw-r--r--network/ssmtp/ssmtp.info2
4 files changed, 15 insertions, 5 deletions
diff --git a/network/ssmtp/patches/01-configure_lcrypto.diff.gz b/network/ssmtp/patches/01-configure_lcrypto.diff.gz
new file mode 100644
index 0000000000..a819caf670
--- /dev/null
+++ b/network/ssmtp/patches/01-configure_lcrypto.diff.gz
Binary files differ
diff --git a/network/ssmtp/patches/02-configure_in_lcrypto.diff.gz b/network/ssmtp/patches/02-configure_in_lcrypto.diff.gz
new file mode 100644
index 0000000000..ea8d2e48f6
--- /dev/null
+++ b/network/ssmtp/patches/02-configure_in_lcrypto.diff.gz
Binary files differ
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 \
diff --git a/network/ssmtp/ssmtp.info b/network/ssmtp/ssmtp.info
index a82fe4b977..4cda3081be 100644
--- a/network/ssmtp/ssmtp.info
+++ b/network/ssmtp/ssmtp.info
@@ -6,5 +6,5 @@ MD5SUM="65b4e0df4934a6cd08c506cabcbe584f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Daniel LEVAI"
+MAINTAINER="LEVAI Daniel"
EMAIL="leva@ecentrum.hu"