mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/ssmtp: Added SSL/TLS support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
81780291c4
commit
a37fc6bd03
4 changed files with 15 additions and 5 deletions
BIN
network/ssmtp/patches/01-configure_lcrypto.diff.gz
Normal file
BIN
network/ssmtp/patches/01-configure_lcrypto.diff.gz
Normal file
Binary file not shown.
BIN
network/ssmtp/patches/02-configure_in_lcrypto.diff.gz
Normal file
BIN
network/ssmtp/patches/02-configure_in_lcrypto.diff.gz
Normal file
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2011, 2012 Daniel LEVAI
|
# Copyright (c) 2011-2014 LEVAI Daniel
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# * Redistribution and use in source and binary forms, with or without
|
# * Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
PRGNAM=ssmtp
|
PRGNAM=ssmtp
|
||||||
VERSION=2.64
|
VERSION=2.64
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
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 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-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,' \
|
sed -i -e's,prefix=/usr,prefix=$(DESTDIR)/usr,' \
|
||||||
-e'/\$(GEN_CONFIG) \$(INSTALLED_CONFIGURATION_FILE)/d' \
|
-e'/\$(GEN_CONFIG) \$(INSTALLED_CONFIGURATION_FILE)/d' \
|
||||||
Makefile
|
Makefile
|
||||||
CFLAGS="$SLKCFLAGS" make
|
CFLAGS="$SLKCFLAGS" make
|
||||||
make install DESTDIR=$PKG
|
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
|
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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp generate_config README INSTALL COPYING COPYRIGHT TLS \
|
cp generate_config README INSTALL COPYING COPYRIGHT TLS \
|
||||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="65b4e0df4934a6cd08c506cabcbe584f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="Daniel LEVAI"
|
MAINTAINER="LEVAI Daniel"
|
||||||
EMAIL="leva@ecentrum.hu"
|
EMAIL="leva@ecentrum.hu"
|
||||||
|
|
Loading…
Reference in a new issue