From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 22444158021 for ; Wed, 7 Dec 2022 19:51:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 582BCE079E; Wed, 7 Dec 2022 19:51:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3ABD2E079E for ; Wed, 7 Dec 2022 19:51:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 170F9341287 for ; Wed, 7 Dec 2022 19:51:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C7E4777 for ; Wed, 7 Dec 2022 19:50:59 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1670347285.b1e58a3cfb6b188cbf6fc39b1d234c73122f80cb.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/rsaref/files/, dev-libs/rsaref/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/rsaref/Manifest dev-libs/rsaref/files/rsaref-2.0-global.patch dev-libs/rsaref/files/rsaref-2.0-includes.patch dev-libs/rsaref/files/rsaref-2.0-libtool.patch dev-libs/rsaref/files/rsaref-2.0-rsa.patch dev-libs/rsaref/metadata.xml dev-libs/rsaref/rsaref-2.0.ebuild X-VCS-Directories: dev-libs/rsaref/files/ dev-libs/rsaref/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: b1e58a3cfb6b188cbf6fc39b1d234c73122f80cb X-VCS-Branch: master Date: Wed, 7 Dec 2022 19:50:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6a774cf4-098c-4701-8186-49efce26839d X-Archives-Hash: 41594f789b5f3f40070365fe34d1b572 commit: b1e58a3cfb6b188cbf6fc39b1d234c73122f80cb Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Tue Dec 6 17:20:30 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Tue Dec 6 17:21:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1e58a3c dev-libs/rsaref: treeclean Closes: https://bugs.gentoo.org/884581 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-libs/rsaref/Manifest | 1 - dev-libs/rsaref/files/rsaref-2.0-global.patch | 47 ---------------- dev-libs/rsaref/files/rsaref-2.0-includes.patch | 72 ------------------------ dev-libs/rsaref/files/rsaref-2.0-libtool.patch | 44 --------------- dev-libs/rsaref/files/rsaref-2.0-rsa.patch | 73 ------------------------- dev-libs/rsaref/metadata.xml | 30 ---------- dev-libs/rsaref/rsaref-2.0.ebuild | 44 --------------- 7 files changed, 311 deletions(-) diff --git a/dev-libs/rsaref/Manifest b/dev-libs/rsaref/Manifest deleted file mode 100644 index 999cd5f16..000000000 --- a/dev-libs/rsaref/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST rsaref-2.0.tar.Z 144092 BLAKE2B 341dc102e01ffad31386e1a0f9a60bb20ced4cdf385faaff2fee3efbdc90721d2b1e17e045bb8ad2c1ac86d55ba28aafe2c94d9dbecf99dbef11724a6e5848e5 SHA512 70cf6fe7bbf91ab5b5e09af02e8a9b732d94f1126df720fcdf23fb6f5b4d46515573cb18241eb7354c9a40faadfcf30942044cd4a3a8507de6c783fadec03422 diff --git a/dev-libs/rsaref/files/rsaref-2.0-global.patch b/dev-libs/rsaref/files/rsaref-2.0-global.patch deleted file mode 100644 index 30f35e9a3..000000000 --- a/dev-libs/rsaref/files/rsaref-2.0-global.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/source/global.h -+++ b/source/global.h -@@ -7,23 +7,17 @@ - #ifndef _GLOBAL_H_ - #define _GLOBAL_H_ 1 - --/* PROTOTYPES should be set to one if and only if the compiler supports -- function argument prototyping. -- The following makes PROTOTYPES default to 1 if it has not already been -- defined as 0 with C compiler flags. -- */ --#ifndef PROTOTYPES --#define PROTOTYPES 1 --#endif -+#include -+#include - - /* POINTER defines a generic pointer type */ --typedef unsigned char *POINTER; -+typedef caddr_t POINTER; - - /* UINT2 defines a two byte word */ --typedef unsigned short int UINT2; -+typedef u_int16_t UINT2; - - /* UINT4 defines a four byte word */ --typedef unsigned long int UINT4; -+typedef u_int32_t UINT4; - - #ifndef NULL_PTR - #define NULL_PTR ((POINTER)0) -@@ -33,14 +27,6 @@ - #define UNUSED_ARG(x) x = *(&x); - #endif - --/* PROTO_LIST is defined depending on how PROTOTYPES is defined above. -- If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it -- returns an empty list. -- */ --#if PROTOTYPES --#define PROTO_LIST(list) list --#else --#define PROTO_LIST(list) () --#endif -+#define PROTO_LIST(x) __P(x) - - #endif /* end _GLOBAL_H_ */ diff --git a/dev-libs/rsaref/files/rsaref-2.0-includes.patch b/dev-libs/rsaref/files/rsaref-2.0-includes.patch deleted file mode 100644 index 1f6b6f008..000000000 --- a/dev-libs/rsaref/files/rsaref-2.0-includes.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- a/source/des.h -+++ b/source/des.h -@@ -4,6 +4,8 @@ - #ifndef _DES_H_ - #define _DES_H_ 1 - -+#include -+ - #ifdef __cplusplus - extern "C" { - #endif - ---- a/source/md2.h -+++ b/source/md2.h -@@ -22,6 +22,8 @@ - #ifndef _MD2_H_ - #define _MD2_H_ 1 - -+#include -+ - #ifdef __cplusplus - extern "C" { - #endif - ---- a/source/r_random.c -+++ b/source/r_random.c -@@ -8,7 +8,7 @@ - #include "global.h" - #include "rsaref.h" - #include "r_random.h" --#include "md5.h" -+#include - - #define RANDOM_BYTES_NEEDED 256 - ---- a/source/rsa.h -+++ b/source/rsa.h -@@ -5,6 +5,11 @@ - Inc., created 1991. All rights reserved. - */ - -+#ifndef _RSA_H_ -+#define _RSA_H_ 1 -+ -+#include -+ - int RSAPublicEncrypt PROTO_LIST - ((unsigned char *, unsigned int *, unsigned char *, unsigned int, - R_RSA_PUBLIC_KEY *, R_RANDOM_STRUCT *)); -@@ -17,3 +22,5 @@ - int RSAPrivateDecrypt PROTO_LIST - ((unsigned char *, unsigned int *, unsigned char *, unsigned int, - R_RSA_PRIVATE_KEY *)); -+ -+#endif -$NetBSD: patch-af,v 1.2 1998/08/07 11:13:48 agc Exp $ - ---- a/source/rsaref.h -+++ b/source/rsaref.h -@@ -8,9 +8,9 @@ - #ifndef _RSAREF_H_ - #define _RSAREF_H_ 1 - --#include "md2.h" --#include "md5.h" --#include "des.h" -+#include -+#include -+#include - - #ifdef __cplusplus - extern "C" { diff --git a/dev-libs/rsaref/files/rsaref-2.0-libtool.patch b/dev-libs/rsaref/files/rsaref-2.0-libtool.patch deleted file mode 100644 index ab0798241..000000000 --- a/dev-libs/rsaref/files/rsaref-2.0-libtool.patch +++ /dev/null @@ -1,44 +0,0 @@ ---- a/install/unix/makefile -+++ b/install/unix/makefile -@@ -4,8 +4,7 @@ - O = o - - # commands --CC = cc --LIB = ar -+CC := ${LIBTOOL} --tag=CC --mode=compile ${CC} - - # name of temporary library script - TEMPFILE = $(TEMP)/temp.mak -@@ -14,18 +13,18 @@ - STDINCDIR=/usr/include - - # The places to look for include files (in order). --INCL = -I. -I$(RSAREFDIR) -I$(STDINCDIR) -+INCL = -I. -I$(RSAREFDIR) - - # name of main executable to build - PROG = all - - # Normal C flags. --CFLAGS = $(INCL) -O -c -DPROTOTYPES=1 -+CFLAGS += $(INCL) -c -DPROTOTYPES=1 - MFLAGS = -I. -I$(RSAREFDIR) - - # The location of the common source directory. - RSAREFDIR = ../source/ --RSAREFLIB = rsaref.a -+RSAREFLIB = librsaref.la - - # The location of the demo source directory. - RDEMODIR = ../rdemo/ -@@ -41,8 +40,7 @@ - $(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\ - rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\ - r_stdlib.$(O) -- $(LIB) r $@ $? -- ranlib $@ -+ ${LIBTOOL} --tag=CC --mode=link cc -o $@ ${?:.o=.lo} -rpath ${LIBDIR} -version-info 3:0 ${LDFLAGS} - - rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h - $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c diff --git a/dev-libs/rsaref/files/rsaref-2.0-rsa.patch b/dev-libs/rsaref/files/rsaref-2.0-rsa.patch deleted file mode 100644 index 1f31080c8..000000000 --- a/dev-libs/rsaref/files/rsaref-2.0-rsa.patch +++ /dev/null @@ -1,73 +0,0 @@ ---- a/source/rsa.c -+++ b/source/rsa.c -@@ -11,10 +11,10 @@ - #include "rsa.h" - #include "nn.h" - --static int RSAPublicBlock PROTO_LIST -+int RSAPublicBlock PROTO_LIST - ((unsigned char *, unsigned int *, unsigned char *, unsigned int, - R_RSA_PUBLIC_KEY *)); --static int RSAPrivateBlock PROTO_LIST -+int RSAPrivateBlock PROTO_LIST - ((unsigned char *, unsigned int *, unsigned char *, unsigned int, - R_RSA_PRIVATE_KEY *)); - -@@ -33,6 +33,9 @@ - unsigned char byte, pkcsBlock[MAX_RSA_MODULUS_LEN]; - unsigned int i, modulusLen; - -+ if (inputLen+3>MAX_RSA_MODULUS_LEN) return (RE_LEN); -+ if (publicKey->bits > MAX_RSA_MODULUS_BITS) return (RE_LEN); -+ - modulusLen = (publicKey->bits + 7) / 8; - if (inputLen + 11 > modulusLen) - return (RE_LEN); -@@ -78,6 +81,9 @@ - unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN]; - unsigned int i, modulusLen, pkcsBlockLen; - -+ if (inputLen>MAX_RSA_MODULUS_LEN) return (RE_LEN); -+ if (publicKey->bits > MAX_RSA_MODULUS_BITS) return (RE_LEN); -+ - modulusLen = (publicKey->bits + 7) / 8; - if (inputLen > modulusLen) - return (RE_LEN); -@@ -129,6 +135,9 @@ - unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN]; - unsigned int i, modulusLen; - -+ if (inputLen+3>MAX_RSA_MODULUS_LEN) return (RE_LEN); -+ if (privateKey->bits > MAX_RSA_MODULUS_BITS) return (RE_LEN); -+ - modulusLen = (privateKey->bits + 7) / 8; - if (inputLen + 11 > modulusLen) - return (RE_LEN); -@@ -168,6 +177,9 @@ - unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN]; - unsigned int i, modulusLen, pkcsBlockLen; - -+ if (inputLen>MAX_RSA_MODULUS_LEN) return (RE_LEN); -+ if (privateKey->bits > MAX_RSA_MODULUS_BITS) return (RE_LEN); -+ - modulusLen = (privateKey->bits + 7) / 8; - if (inputLen > modulusLen) - return (RE_LEN); -@@ -212,7 +224,7 @@ - Assumes inputLen < length of modulus. - Requires input < modulus. - */ --static int RSAPublicBlock (output, outputLen, input, inputLen, publicKey) -+int RSAPublicBlock (output, outputLen, input, inputLen, publicKey) - unsigned char *output; /* output block */ - unsigned int *outputLen; /* length of output block */ - unsigned char *input; /* input block */ -@@ -252,7 +264,7 @@ - Assumes inputLen < length of modulus. - Requires input < modulus. - */ --static int RSAPrivateBlock (output, outputLen, input, inputLen, privateKey) -+int RSAPrivateBlock (output, outputLen, input, inputLen, privateKey) - unsigned char *output; /* output block */ - unsigned int *outputLen; /* length of output block */ - unsigned char *input; /* input block */ diff --git a/dev-libs/rsaref/metadata.xml b/dev-libs/rsaref/metadata.xml deleted file mode 100644 index f6084c828..000000000 --- a/dev-libs/rsaref/metadata.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - cyber+gentoo@sysrq.in - Anna - - -RSAREF is a free, portable software developer's library of popular -encryption and authentication algorithms. The name "RSAREF" means -"RSA reference." RSA Laboratories intends RSAREF to serve as a free, -educational reference implementation of modern public- and secret-key -cryptography. - -RSAREF 2.0 supports the following algorithms: - - o RSA encryption and key generation, as defined by RSA - Laboratories' Public-Key Cryptography Standards (PKCS) - - o MD2 and MD5 message digests - - o DES (Data Encryption Standard) in cipher-block chaining mode - - o Diffie-Hellman key agreement - - o DESX, RSA Data Security's efficient, secure DES enhancement - - o Triple-DES, for added security with three DES operations - - diff --git a/dev-libs/rsaref/rsaref-2.0.ebuild b/dev-libs/rsaref/rsaref-2.0.ebuild deleted file mode 100644 index 621e794ce..000000000 --- a/dev-libs/rsaref/rsaref-2.0.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="Encryption/authentication library, RSA/MDX/DES" -HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" -SRC_URI="https://archive.netbsd.org/pub/pkgsrc-archive/distfiles/2021Q3/${PN}.tar.Z -> ${P}.tar.Z" -S="${WORKDIR}" - -LICENSE="RSAREF" -SLOT="0/3" -KEYWORDS="~amd64" - -BDEPEND="sys-devel/libtool" - -PATCHES=( - "${FILESDIR}"/${P}-global.patch - "${FILESDIR}"/${P}-includes.patch - "${FILESDIR}"/${P}-libtool.patch - "${FILESDIR}"/${P}-rsa.patch -) - -DOCS=( doc ) - -src_unpack() { - default - - cd "${S}"/source || die - mkdir ${PN} || die - cp *.h ${PN} || die -} - -src_compile() { - # XXX: fails with slibtool - emake -C install -f unix/makefile librsaref.la \ - LIBTOOL=libtool LIBDIR="${EPREFIX}/usr/$(get_libdir)" -} - -src_install() { - dolib.so install/.libs/lib${PN}.so* - doheader -r source/${PN} - einstalldocs -}