network/libtls: Add --with-openssldir.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
D Woodfall 2023-03-18 21:50:07 +00:00 committed by Willy Sudiarto Raharjo
parent 6d4ac662b3
commit 1967e9aa87
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 16 additions and 17 deletions

View File

@ -4,9 +4,9 @@ using the TLS socket protocol. Both clients and servers are supported.
A TLS connection object is created by tls_client(3) or tls_server(3) and
configured with tls_configure(3).
This also includes a TLS-enabled version of netcat (nc-tls).
This also includes a TLS-enabled version of netcat (libressl-nc).
*******************************************************************
************************************************************************
NOTE! The libressl package already contains libtls.
It's recommended to uninstall this before installing libressl.
*******************************************************************
************************************************************************

View File

@ -4,11 +4,15 @@
#
# WTFPL licence 2023
# BUILD 2: Thanks to Naglfar:
#
# --with-openssldir=/etc/libressl \
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libtls
SRCNAM=libressl
VERSION=${VERSION:-3.7.0}
VERSION=${VERSION:-3.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -65,7 +69,9 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-static \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--sysconfdir=/etc/libressl \
--with-openssldir=/etc/libressl \
--program-prefix "libressl-" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
@ -73,19 +79,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
# don't clobber stock netcat
mv $PKG/usr/bin/nc $PKG/usr/bin/nc-tls
rm -f $PKG/usr/{,usr/}lib${LIBDIRSUFFIX}/*.la
# we don't want to clobber openssl files
rm -rf $PKG/etc
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
gzip -9 $PKG/usr/man/man1/nc.1
mv $PKG/usr/man/man1/nc.1.gz $PKG/usr/man/man1/nc-tls.1.gz
gzip -9 $PKG/usr/man/man1/libressl-nc.1
mkdir -p $PKG/usr/man/man3

View File

@ -1,8 +1,8 @@
PRGNAM="libtls"
VERSION="3.7.0"
VERSION="3.7.1"
HOMEPAGE="https://www.libressl.org"
DOWNLOAD="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.0.tar.gz"
MD5SUM="302a11ca828332fae7bcacedf468a52e"
DOWNLOAD="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.1.tar.gz"
MD5SUM="133f11e478f46528414245dccb6355f2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""