aboutsummaryrefslogtreecommitdiff
path: root/network/ssmtp/ssmtp.SlackBuild
diff options
context:
space:
mode:
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 4ab0be4d18396..331937983a37d 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 \