pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/openssl openssl: allow builtin.mk to extract ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7a658126fa4
branches:  trunk
changeset: 391688:d7a658126fa4
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Jan 12 11:01:41 2023 +0000

description:
openssl: allow builtin.mk to extract version from openssl3

diffstat:

 security/openssl/builtin.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r bd8d90eba8aa -r d7a658126fa4 security/openssl/builtin.mk
--- a/security/openssl/builtin.mk       Thu Jan 12 10:56:12 2023 +0000
+++ b/security/openssl/builtin.mk       Thu Jan 12 11:01:41 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.49 2022/11/05 18:43:00 wiz Exp $
+# $NetBSD: builtin.mk,v 1.50 2023/01/12 11:01:41 markd Exp $
 
 BUILTIN_PKG:=  openssl
 
@@ -33,6 +33,10 @@
                        alpha="abcdefghijklmnopqrstuvwxyz";     \
                }                                                       \
                /\#[    ]+define/ { sub("\#[ \\t]+define", "\#define", $$0); } \
+               /\#define[      ]*OPENSSL_VERSION_STR/ {                \
+                       printf "%s\n",substr($$3,2,length($$3)-2);      \
+                       exit 0;                                         \
+               }                                                       \
                /\#define[      ]*OPENSSL_VERSION_NUMBER/ {             \
                        major = index(hex, substr($$3, 3, 1)) - 1;      \
                        i = 16 * (index(hex, substr($$3, 4, 1)) - 1);   \



Home | Main Index | Thread Index | Old Index