public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/chntpw/
Date: Wed,  7 Sep 2022 14:30:25 +0000 (UTC)	[thread overview]
Message-ID: <1662561010.b99c9e80ca9e93f9aadb62f2f4eaba84850104cb.marecki@gentoo> (raw)

commit:     b99c9e80ca9e93f9aadb62f2f4eaba84850104cb
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 13:43:52 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> 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 <marecki <AT> 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
+}


             reply	other threads:[~2022-09-07 14:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 14:30 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-31 12:55 [gentoo-commits] repo/gentoo:master commit in: app-crypt/chntpw/ Marek Szuba
2022-11-12  0:56 Marek Szuba
2022-11-11  3:50 Sam James
2022-11-11  3:50 Sam James
2022-11-10 18:18 Arthur Zamarin
2021-12-23 23:02 Sam James
2021-12-23 16:39 Jory Pratt
2021-05-02 16:40 Mikle Kolyada
2020-03-18 17:14 Marek Szuba
2020-01-21 10:42 Agostino Sarubbo
2020-01-21 10:33 Agostino Sarubbo
2020-01-20 19:46 Agostino Sarubbo
2020-01-10 11:30 Marek Szuba
2017-02-04  1:31 Alon Bar-Lev
2016-06-12 13:41 Alon Bar-Lev
2016-06-03  8:55 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662561010.b99c9e80ca9e93f9aadb62f2f4eaba84850104cb.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox