From nobody Fri Mar 10 04:02:42 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PXspC2CFHz3x27C; Fri, 10 Mar 2023 04:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXspC1g6kz42kc; Fri, 10 Mar 2023 04:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678420963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yhXoXHq6cdqdD1CXXt+V4N+840JFVhpzwht2euMfTcM=; b=I1tPICuqlNaF2JLMIQi6HczSy+pEWCec8sXLjqEDuXSk1L7N/gcxhjNSa5M2gFU8CK2F/b XIsZ2sw3yfr/Omaf45m0JCLwzC1OcjWsp4R+tOqXWVkgM7aXP8qB227ICfXKU9FI6DCk4g pGDkpWG6/Sv6sa4dbRn3IH5BVyjNfyqhUu1VeZddUmtmiiKPEbe9z0tB0NVVaidR6ZIiiO wI/s8lZrSgq8Bg+MxFNLMhh0tPnJO10ZENfWuV9JjjUGe44xAoBeAi3zkdpqFqTdjLdTX1 Ma4u+zyvT7e/0ui0PYpQiWZD37fpWCibSAZoMgqx/HFkZvpsia9K3tL5gkbQNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678420963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yhXoXHq6cdqdD1CXXt+V4N+840JFVhpzwht2euMfTcM=; b=yEcy4kV7y9VYEW8KFfXP7dBfL/A0sSp1KiLw+UgiBPjhddyQUVvHp8YKpwNKnUI8ULdd+z fwUKCb74G8MttpHxhNUgiq7l7XS4B+E4tnOWUx6uSk/RDjoDsWBz2l8rrtHxBxsZK1dWp3 0Q8ZPzDqdeZwa4lk9orSqVp9SMWkzx1enc1SqoKGfHZ37sQS+4NvxhPcIFTFZqm4mcsTRH L1aGLzoZWti/Q7vmYEnbiUa3LUA3PDwoKxwGIz255/KuXR+M+X40aeQ8mnUDvn3064SfeV VNyLvz7NojrjkykxIeU23wBFlGPQgoRgdqQQ6XdICwKita6zartSPPgxePVGQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678420963; a=rsa-sha256; cv=none; b=jE1by3tnnwxVkW+tiFm7l/acr+CUOLzsG5qtKTroYl4Y8NcH3vyvYTSCXVzM+w8gVLRtFa r8/xhVMiiEsTcjsR1XAXt5j11H/MucsvYtHoUYIdwrsCQgsZQxNIgxRTuEf0Th8TN1uIos U0pDMbdFrfNqSgsq7zk43MkGCOfPwgP9tMEFpuv7pVx0SkAkLvd3bhX6/6k8bvL/EnbndS gNIZA2cx+3r6KlamobIDVy8+ZCpfHXi3ehEGv2UPnGXbWrMuslVtyaYO4tf3VE9kI7Qf6b AJOIJnmE3dVdyAqPvkriF3+0j3DJHlDM7qGne0KkdxeTXDFP2Dj4GHFaDbdXrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PXspC0PjXzZVP; Fri, 10 Mar 2023 04:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32A42gFt067797; Fri, 10 Mar 2023 04:02:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32A42gBQ067796; Fri, 10 Mar 2023 04:02:42 GMT (envelope-from git) Date: Fri, 10 Mar 2023 04:02:42 GMT Message-Id: <202303100402.32A42gBQ067796@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: d3be3768facd - main - security/pks: the port had been further improved (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d3be3768facd06bcf8af3d9d8d8caf741942fae7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=d3be3768facd06bcf8af3d9d8d8caf741942fae7 commit d3be3768facd06bcf8af3d9d8d8caf741942fae7 Author: Alexey Dokuchaev AuthorDate: 2023-03-10 04:01:40 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-03-10 04:01:40 +0000 security/pks: the port had been further improved (+) - Simplify Berkeley DB detection (rather than completely deleting the corresponding configure script section, assume that if user passes DBHDR she knows what she's doing and trust that value) - Fix a harmless typo RSA_get0_p() -> DSA_get0_p() in the previous commit 6074b736dee1 - GC some more needless variables (MAKE_ENV, LDFLAGS) and enable IPv6 while I'm here --- security/pks/Makefile | 4 +- security/pks/files/patch-configure | 156 ++++--------------------------------- security/pks/files/patch-pgputil.c | 2 +- 3 files changed, 19 insertions(+), 143 deletions(-) diff --git a/security/pks/Makefile b/security/pks/Makefile index 90a249c889e2..6ecedd1cfd41 100644 --- a/security/pks/Makefile +++ b/security/pks/Makefile @@ -20,10 +20,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} GNU_CONFIGURE= yes CONFIGURE_ARGS= --datadir=${DATADIR} \ --localstatedir=/var/pks \ - --with-libwrap \ + --with-db --with-ipv6 --with-libwrap \ --with-openssl=${OPENSSLBASE} -MAKE_ENV+= SUBDIRS= -LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV= DBLIB="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \ DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h diff --git a/security/pks/files/patch-configure b/security/pks/files/patch-configure index ea4c6d634acb..75600a00290d 100644 --- a/security/pks/files/patch-configure +++ b/security/pks/files/patch-configure @@ -1,144 +1,22 @@ --- configure.orig 2004-01-17 23:19:56 UTC +++ configure -@@ -2530,141 +2530,6 @@ echo "${ECHO_T}Compiler Optimizations Enabled" >&6 - fi; - - # Checks for libraries. --echo "$as_me:$LINENO: checking for Berkeley DB" >&5 --echo $ECHO_N "checking for Berkeley DB... $ECHO_C" >&6 -- --# Check whether --with-db or --without-db was given. --if test "${with_db+set}" = set; then -- withval="$with_db" +@@ -2536,15 +2536,16 @@ echo $ECHO_N "checking for Berkeley DB... $ECHO_C" >&6 + # Check whether --with-db or --without-db was given. + if test "${with_db+set}" = set; then + withval="$with_db" - DBINC=NO - DBLIB=NO - DBHDR=NO -- S=1 -- case "$withval" in -- yes|no) -- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&5 --echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&2;} -- { (exit 1); exit 1; }; } -- ;; -- *) -- echo "$as_me:$LINENO: result: $withval" >&5 --echo "${ECHO_T}$withval" >&6 -- if test x${withval} = x ; then -- withval=/tmp -- fi -- if test $S -a -r ${withval}/build_unix/db4.h -a \ -- -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then -- DBINC=-I`echo ${withval}/build_unix/` -- DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` -- DBHDR="db4.h" -- grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db4.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r ${withval}/build_unix/db.h -a \ -- -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then -- DBINC=-I`echo ${withval}/build_unix` -- DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r ${withval}/include/db4/db.h -a \ -- -r ${withval}/lib/db4/libdb.a ; then -- DBINC="-I${withval}/include/db4" -- DBLIB="-L${withval}/lib/db4 -ldb" -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4/db.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r ${withval}/include/db4.h -a \ -- -r ${withval}/lib/libdb.a ; then -- DBINC="-I${withval}/include" -- DBLIB="-L${withval}/lib -ldb" -- DBHDR="db4.h" -- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r ${withval}/include/db.h -a \ -- -r ${withval}/lib/libdb.a ; then -- DBINC="-I${withval}/include" -- DBLIB="-L${withval}/lib -ldb" -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -eq 1 ; then -- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&5 --echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&2;} -- { (exit 1); exit 1; }; } -- fi -- echo "$as_me:$LINENO: result: yes" >&5 --echo "${ECHO_T}yes" >&6 -- esac --else -- DBINC=NO -- DBLIB=NO -- DBHDR=NO -- S=1 -- -- if test $S -a -r /usr/local/include/db4.h -a \ -- -r /usr/local/lib/libdb.a ; then -- DBINC="-I/usr/local/include" -- DBLIB="-L/usr/local/lib -ldb" -- DBHDR="db4.h" -- grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db4.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r /usr/local/include/db.h -a \ -- -r /usr/local/lib/libdb.a ; then -- DBINC="-I/usr/local/include" -- DBLIB="-L/usr/local/lib -ldb" -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r /usr/include/db4.h -a \ -- -r /usr/lib/libdb.a ; then -- DBINC="" -- DBLIB="-L/usr/lib -ldb" -- DBHDR="db4.h" -- grep 'DB_VERSION_MAJOR 4$' /usr/include/db4.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r /usr/include/db.h -a \ -- -r /usr/lib/libdb.a ; then -- DBINC="" -- DBLIB="-L/usr/lib -ldb" -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' /usr/include/db.h >/dev/null 2>&1 -- S=$? -- fi -- DIR=`ls -d ../db-4.*/. 2>/dev/null | tail -1` -- if test $S -a -r ${DIR}/build_unix/db4.h -a \ -- -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then -- DBINC=-I`echo ${DIR}/build_unix/` -- DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` -- DBHDR="db4.h" -- grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db4.h >/dev/null 2>&1 -- S=$? -- fi -- if test $S -a -r ${DIR}/build_unix/db.h -a \ -- -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then -- DBINC=-I`echo ${DIR}/build_unix` -- DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` -- DBHDR="db.h" -- grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db.h >/dev/null 2>&1 -- S=$? -- fi -- -- if test $S -eq 1 ; then -- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&5 --echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&2;} -- { (exit 1); exit 1; }; } -- fi -- echo "$as_me:$LINENO: result: yes" >&5 --echo "${ECHO_T}yes" >&6 -- --fi; - - - + S=1 + case "$withval" in + yes|no) ++ if test -z "$DBHDR" ; then + { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&5 + echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&2;} + { (exit 1); exit 1; }; } ++ fi ++ echo "$as_me:$LINENO: result: $DBHDR (${DBINC:-default location})" >&5 ++ echo "${ECHO_T}$DBHDR (${DBINC:-default location})" >&6 + ;; + *) + echo "$as_me:$LINENO: result: $withval" >&5 diff --git a/security/pks/files/patch-pgputil.c b/security/pks/files/patch-pgputil.c index 624635bcb56f..900a86d868b0 100644 --- a/security/pks/files/patch-pgputil.c +++ b/security/pks/files/patch-pgputil.c @@ -14,7 +14,7 @@ break; case EVP_PKEY_DSA: - b = BN_dup (pkey->pkey.dsa->p); -+ b = BN_dup (RSA_get0_p(EVP_PKEY_get0_DSA(pkey))); ++ b = BN_dup (DSA_get0_p(EVP_PKEY_get0_DSA(pkey))); break; } EVP_PKEY_free (pkey);