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 E8B9D158094 for ; Wed, 7 Sep 2022 14:30:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA6F3E0AA0; Wed, 7 Sep 2022 14:30:27 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 B639EE0AA0 for ; Wed, 7 Sep 2022 14:30:27 +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 CC86D340CB8 for ; Wed, 7 Sep 2022 14:30:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3547E5C7 for ; Wed, 7 Sep 2022 14:30:25 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1662561010.b99c9e80ca9e93f9aadb62f2f4eaba84850104cb.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/chntpw/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/chntpw/chntpw-140201-r1.ebuild X-VCS-Directories: app-crypt/chntpw/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: b99c9e80ca9e93f9aadb62f2f4eaba84850104cb X-VCS-Branch: master Date: Wed, 7 Sep 2022 14:30:25 +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: 9c789cfa-d1c8-4de6-b6d1-9cc389f503b5 X-Archives-Hash: cf801d5a95a2e20988f31eb4c56c07a5 commit: b99c9e80ca9e93f9aadb62f2f4eaba84850104cb Author: Marek Szuba gentoo org> AuthorDate: Wed Sep 7 13:43:52 2022 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Sep 7 14:30:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99c9e80 app-crypt/chntpw: install sampasswd and samusrgrp Closes: https://bugs.gentoo.org/840212 Signed-off-by: Marek Szuba gentoo.org> app-crypt/chntpw/chntpw-140201-r1.ebuild | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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 +}