From 4f49fc7caa0253a7ab164331f55bd4c70bba1bf7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Sep 2022 16:36:21 +0100 Subject: gentoo auto-resync : 07:09:2022 - 16:36:21 --- app-crypt/Manifest.gz | Bin 23960 -> 23958 bytes app-crypt/chntpw/Manifest | 1 + app-crypt/chntpw/chntpw-140201-r1.ebuild | 58 +++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 app-crypt/chntpw/chntpw-140201-r1.ebuild (limited to 'app-crypt') diff --git a/app-crypt/Manifest.gz b/app-crypt/Manifest.gz index 802018255758..f9576770c56b 100644 Binary files a/app-crypt/Manifest.gz and b/app-crypt/Manifest.gz differ diff --git a/app-crypt/chntpw/Manifest b/app-crypt/chntpw/Manifest index faf5e30ae0a1..9ca28fd52497 100644 --- a/app-crypt/chntpw/Manifest +++ b/app-crypt/chntpw/Manifest @@ -1,4 +1,5 @@ AUX chntpw-140201-missing-stdint.patch 596 BLAKE2B 093eb3d96bd34d6d436e69dcdbee64433af52e9f5db3fb92bbe110864040694db3b41ce53e29a4671649a870150bb90fee8c7e1211023cc8d153b76f456df8de SHA512 ab88107c1df99e7fd544a5779f1a9526a3e6d9c93b121f9076dc668e3823e63056df284bed60dd48f60ab2eccb198beee3a26292820805f1be1451776cc46531 DIST chntpw-source-140201.zip 1404098 BLAKE2B 86c93861983613496fcd82879a5b000537d4a7ee2add466aa26c67feabefdb5363f610234f99615139997a04aedb448468ef8b29cc6c4bf49b2e295f41308644 SHA512 a26d747f6e077d1bb3e9b8077781f8c37dd978e07b7426495862f15c9004572b706c34736fc4d1ed8856b1a43335d726b4d87c688f7f9a11fd6cc3a74d71a7fa +EBUILD chntpw-140201-r1.ebuild 1079 BLAKE2B c6445f23bc6690ff94d9782bf747781040c8ce9b8557a10dae9c2606f3925d9d747329cae09cc865df3ff1eb58b5aac12b68350127593e381f8ec7bb23c1a88c SHA512 3862f8808dd28a6e53aef1c8030f23fb40497ac1f6b22bb2f87c78bca689aba26a686fe8f640cb883a8fc568f6b48192e036e0662b5a81d16b7c514050310797 EBUILD chntpw-140201.ebuild 1036 BLAKE2B 806bedd22b457eb6d7d1c442b6e08088c1790919229f722238f74376de452ff7691e8a6beafe468c2e2367b916fc184b03489b6206ccf446f8078e5b3f5f78bd SHA512 6905f1d416eb5466cb7fb1b7c5d3151fbbaea17433445b7ffbab48120dd00798389d4574e357a86ec6ae96adfdeef07c1ebef8dac772a399c2159f5b8f4e64af MISC metadata.xml 246 BLAKE2B f808bbbcb9c53d005d1a1667cd6217a601a3bd3bd2267121c0043a870ae44bb91bb27bc9825d5d6eafe01b73fe58a553655aa252737c0b066f2286ff9415d65e SHA512 b620abb7732628010a8a3792d40bde878492be97ce14c99c4d2466240df2f25edf7734ad4d210bc954f27323f0e26698e660766c65be5868646a3866020373fd diff --git a/app-crypt/chntpw/chntpw-140201-r1.ebuild b/app-crypt/chntpw/chntpw-140201-r1.ebuild new file mode 100644 index 000000000000..eaba55788b42 --- /dev/null +++ b/app-crypt/chntpw/chntpw-140201-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Offline Windows NT Password & Registry Editor" +HOMEPAGE="https://pogostick.net/~pnh/ntpasswd/" +SRC_URI="https://pogostick.net/~pnh/ntpasswd/${PN}-source-${PV}.zip" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static" + +RDEPEND="dev-libs/openssl:0=" +DEPEND="${RDEPEND} + app-arch/unzip + static? ( dev-libs/openssl:0[static-libs] )" + +DOCS=( + HISTORY.txt + README.txt + WinReg.txt + regedit.txt +) + +PATCHES=( + "${FILESDIR}"/${P}-missing-stdint.patch +) + +src_prepare() { + default + sed -i -e '/-o/s:$(CC):$(CC) $(LDFLAGS):' Makefile || die + + if ! use static ; then + sed -i -e "/^all:/s/ \(chntpw\|reged\).static//g" Makefile || die + fi + + emake clean +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -DUSEOPENSSL -Wall" \ + LIBS="-lcrypto" +} + +src_install() { + einstalldocs + dobin chntpw cpnt reged sampasswd samusrgrp + + if use static; then + dobin {chntpw,reged,sampasswd,samusrgrp}.static + fi +} -- cgit v1.2.3