pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/s6-networking s6 TLS tools don't use OpenSSL, but ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be95f9c51405
branches:  trunk
changeset: 442374:be95f9c51405
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Nov 24 08:33:12 2020 +0000

description:
s6 TLS tools don't use OpenSSL, but do need to know where to find CA
certs. Buildlink just enough OpenSSL to read SSLDIR, then install a new
s6-pkgsrc-cadir program that knows it. Bump PKGREVISION.

diffstat:

 net/s6-networking/Makefile                 |  19 +++++++++++++++++--
 net/s6-networking/PLIST                    |   3 ++-
 net/s6-networking/files/s6-pkgsrc-cadir.sh |   3 +++
 net/s6-networking/hacks.mk                 |  10 ++++++++++
 4 files changed, 32 insertions(+), 3 deletions(-)

diffs (73 lines):

diff -r 31f58d5c3668 -r be95f9c51405 net/s6-networking/Makefile
--- a/net/s6-networking/Makefile        Tue Nov 24 06:39:30 2020 +0000
+++ b/net/s6-networking/Makefile        Tue Nov 24 08:33:12 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2020/11/22 11:33:22 schmonz Exp $
+# $NetBSD: Makefile,v 1.3 2020/11/24 08:33:12 schmonz Exp $
 
 DISTNAME=      s6-networking-2.3.2.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    net
 MASTER_SITES=  ${HOMEPAGE}
 
@@ -16,8 +16,23 @@
 CONFIGURE_ARGS+=       --with-sysdeps=${PREFIX}/lib/skalibs/sysdeps
 CONFIGURE_ARGS+=       --enable-absolute-paths
 
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     s6-pkgsrc-cadir
+SUBST_VARS.paths=      SH SETENV SSLDIR
+
 .include "options.mk"
 
+post-extract:
+       for f in s6-pkgsrc-cadir; do \
+               ${CP} ${FILESDIR}/$$f.sh ${WRKSRC}/$$f; \
+       done
+
+post-install:
+       for f in s6-pkgsrc-cadir; do \
+               ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/bin/$$f; \
+       done
+
 BUILDLINK_API_DEPENDS.skalibs+=skalibs>=2.9.3.0
 .include "../../devel/skalibs/buildlink3.mk"
 BUILDLINK_API_DEPENDS.execline+=execline>=2.6.1.1
diff -r 31f58d5c3668 -r be95f9c51405 net/s6-networking/PLIST
--- a/net/s6-networking/PLIST   Tue Nov 24 06:39:30 2020 +0000
+++ b/net/s6-networking/PLIST   Tue Nov 24 08:33:12 2020 +0000
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2020/11/22 11:33:22 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/11/24 08:33:12 schmonz Exp $
 bin/minidentd
 bin/s6-clockadd
 bin/s6-clockview
 bin/s6-getservbyname
 bin/s6-ident-client
+bin/s6-pkgsrc-cadir
 bin/s6-sntpclock
 bin/s6-taiclock
 bin/s6-taiclockd
diff -r 31f58d5c3668 -r be95f9c51405 net/s6-networking/files/s6-pkgsrc-cadir.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/s6-networking/files/s6-pkgsrc-cadir.sh        Tue Nov 24 08:33:12 2020 +0000
@@ -0,0 +1,3 @@
+#!@SH@
+
+exec @SETENV@ CADIR=@SSLDIR@/certs "$@"
diff -r 31f58d5c3668 -r be95f9c51405 net/s6-networking/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/s6-networking/hacks.mk        Tue Nov 24 08:33:12 2020 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2020/11/24 08:33:12 schmonz Exp $
+
+# s6 TLS tools don't use OpenSSL, but do need to know where to find CA
+# certs. Buildlink just enough OpenSSL to read SSLDIR.
+PKG_HACKS+=     detect-openssl-cadir
+
+BUILDLINK_INCDIRS.openssl=     /nonexistent
+BUILDLINK_LIBDIRS.openssl=     /nonexistent
+BUILDLINK_DEPMETHOD.openssl=    build
+.include "../../security/openssl/buildlink3.mk"



Home | Main Index | Thread Index | Old Index