From ebd51986f51b430f84c569c6c0f2fe051158d444 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 21 Apr 2023 18:02:52 +0100 Subject: gentoo auto-resync : 21:04:2023 - 18:02:52 --- app-admin/pwgen/Manifest | 2 + app-admin/pwgen/files/pwgen-2.08-c2x.patch | 62 ++++++++++++++++++++++++++++++ app-admin/pwgen/pwgen-2.08-r2.ebuild | 27 +++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 app-admin/pwgen/files/pwgen-2.08-c2x.patch create mode 100644 app-admin/pwgen/pwgen-2.08-r2.ebuild (limited to 'app-admin/pwgen') diff --git a/app-admin/pwgen/Manifest b/app-admin/pwgen/Manifest index 80c16688bd3c..56d1f948c0ef 100644 --- a/app-admin/pwgen/Manifest +++ b/app-admin/pwgen/Manifest @@ -1,4 +1,6 @@ +AUX pwgen-2.08-c2x.patch 1537 BLAKE2B 9fc3313890f9900dc987f4dd71db5c05087ec37e20a899e8416a3b1cdc957ee5acb75dfacd969711de43a4fab353bb06a064d1c52c3c241752d010eb77b15aab SHA512 e86fb03305dfe07e85ce9adbec90ae0b10aed5d51fa8270c14b87f829ff65b8475fa597789f4f80077f3e9db7bd6cb60c65e90837243a936fead3d0bd6724157 AUX pwgen.rc 389 BLAKE2B d8a3af8df9be2a78e18aaddd7d17269ecb0c61a4c77252a77bb2d492edfe5b8c31279de616c4b0bf92ef6ec4763235b18931edc333121c543cae3e839927bedc SHA512 5d2bdf0dfbaf8fc31cd8217495fccccfefb383779c8a03faedcfaa830851b3bbdccb63fdf8d1bf8aa8a96759ea90a31da6b7a4e0cf5368e62ed10b8db8b0382d DIST pwgen-2.08.tar.gz 54884 BLAKE2B 43bb6176d9408558b362bd84839c190c4bcf5d8f71b46fcbbe0b00c390d957683fd9403ff697e96cef2e4de27776c841e12032d3589965629e8e2d29bf202583 SHA512 4a930dc7d4c58a4434209db30c54629d76fce57d0fd5767cd7894168bb1a5b85eaae6734a982b0f4e0640540c366ce27ad84860ff2c406dea3f5902b5bb54255 EBUILD pwgen-2.08-r1.ebuild 604 BLAKE2B d0237353ec58ffc880c21caf8a9d08374e1baf35d738c3c6b05bc235631072d542940621a1c228c502222d85b925a0e1306a649122e3de88359ad2d762a64cfb SHA512 478060426a35d080769428e285576642f92ea6f938ba3a9aa45f51feb0dc4696847f65a9701aa36e4d92456cbb9730f181d01099ba12cf36cd7b513182ff8d7f +EBUILD pwgen-2.08-r2.ebuild 655 BLAKE2B 852db677521fe2bf00f8219e7ec4a57d2381855b9c4e46f88dc510264990cc63e3ebf43740b80916b312fbd8c652baba587f7de594bdc7821dd735e28072bae6 SHA512 1b33df39be1fe124b1f87e1ae65eab2d5fb8abd0ff7fa46b614702c2e2b930b3f7e2f9281490230e06fdd29f0b6c4bc34cb59d598bdb580528461671614eb246 MISC metadata.xml 801 BLAKE2B dd9ac9712fcbfc2a681587ca84aa40ac7e2c96474dd6b89ba4f16b40be44c7ea441bf44dd4008397aa99ad08ae2ab07a535ce5375940b6f3991dc6e8e9f5f75a SHA512 15ab62126db1bb0211d39963ff8102e31cfb8791a496c660d6a63666c0c440ab1d6f04ad490e0455aa39f9c69bb69035e0c33c02107b9940e45a0a788b2f9ce9 diff --git a/app-admin/pwgen/files/pwgen-2.08-c2x.patch b/app-admin/pwgen/files/pwgen-2.08-c2x.patch new file mode 100644 index 000000000000..d6cc05734d3c --- /dev/null +++ b/app-admin/pwgen/files/pwgen-2.08-c2x.patch @@ -0,0 +1,62 @@ +replace antiquated C syntax constructs for function declarations + +Signed-off-by: Fabian Groffen + +--- pwgen-2.08/randnum.c 2017-08-07 06:36:54.000000000 +0200 ++++ pwgen-2.08/randnum.c 2023-04-20 14:46:50.107904416 +0200 +@@ -43,8 +43,7 @@ + * Generate a random number n, where 0 <= n < max_num, using + * /dev/urandom if possible. + */ +-int pw_random_number(max_num) +- int max_num; ++int pw_random_number(int max_num) + { + unsigned int rand_num; + int i, fd = get_random_fd(); +--- pwgen-2.08/sha1.c 2007-07-04 23:39:35.000000000 +0200 ++++ pwgen-2.08/sha1.c 2023-04-20 14:48:25.048635027 +0200 +@@ -42,8 +42,7 @@ + (b)[(i) + 3] = (uint8) ( (n) ); \ + } + +-void sha1_starts(ctx) +- sha1_context *ctx; ++void sha1_starts(sha1_context *ctx) + { + ctx->total[0] = 0; + ctx->total[1] = 0; +@@ -55,9 +54,7 @@ + ctx->state[4] = 0xC3D2E1F0; + } + +-void sha1_process(ctx, data) +- sha1_context *ctx; +- uint8 data[64]; ++void sha1_process(sha1_context *ctx, uint8 data[64]) + { + uint32 temp, W[16], A, B, C, D, E; + +@@ -213,10 +210,7 @@ + ctx->state[4] += E; + } + +-void sha1_update(ctx, input, length ) +- sha1_context *ctx; +- uint8 *input; +- uint32 length; ++void sha1_update(sha1_context *ctx, uint8 *input, uint32 length) + { + uint32 left, fill; + +@@ -263,9 +257,7 @@ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + +-void sha1_finish( ctx, digest ) +- sha1_context *ctx; +- uint8 digest[20]; ++void sha1_finish(sha1_context *ctx, uint8 digest[20]) + { + uint32 last, padn; + uint32 high, low; diff --git a/app-admin/pwgen/pwgen-2.08-r2.ebuild b/app-admin/pwgen/pwgen-2.08-r2.ebuild new file mode 100644 index 000000000000..d263bb50e841 --- /dev/null +++ b/app-admin/pwgen/pwgen-2.08-r2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Password Generator" +HOMEPAGE="https://sourceforge.net/projects/pwgen/" +SRC_URI="mirror://sourceforge/pwgen/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="livecd" + +PATCHES=( + "${FILESDIR}"/${P}-c2x.patch +) + +src_configure() { + econf --sysconfdir="${EPREFIX}"/etc/pwgen +} + +src_install() { + default + + use livecd && newinitd "${FILESDIR}"/pwgen.rc pwgen +} -- cgit v1.2.3