1 |
commit: b99c9e80ca9e93f9aadb62f2f4eaba84850104cb |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 13:43:52 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 14:30:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99c9e80 |
7 |
|
8 |
app-crypt/chntpw: install sampasswd and samusrgrp |
9 |
|
10 |
Closes: https://bugs.gentoo.org/840212 |
11 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
12 |
|
13 |
app-crypt/chntpw/chntpw-140201-r1.ebuild | 58 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/chntpw/chntpw-140201-r1.ebuild b/app-crypt/chntpw/chntpw-140201-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..eaba55788b42 |
19 |
--- /dev/null |
20 |
+++ b/app-crypt/chntpw/chntpw-140201-r1.ebuild |
21 |
@@ -0,0 +1,58 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="Offline Windows NT Password & Registry Editor" |
30 |
+HOMEPAGE="https://pogostick.net/~pnh/ntpasswd/" |
31 |
+SRC_URI="https://pogostick.net/~pnh/ntpasswd/${PN}-source-${PV}.zip" |
32 |
+ |
33 |
+LICENSE="GPL-2 LGPL-2.1" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~ppc ~x86" |
36 |
+IUSE="static" |
37 |
+ |
38 |
+RDEPEND="dev-libs/openssl:0=" |
39 |
+DEPEND="${RDEPEND} |
40 |
+ app-arch/unzip |
41 |
+ static? ( dev-libs/openssl:0[static-libs] )" |
42 |
+ |
43 |
+DOCS=( |
44 |
+ HISTORY.txt |
45 |
+ README.txt |
46 |
+ WinReg.txt |
47 |
+ regedit.txt |
48 |
+) |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${P}-missing-stdint.patch |
52 |
+) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ sed -i -e '/-o/s:$(CC):$(CC) $(LDFLAGS):' Makefile || die |
57 |
+ |
58 |
+ if ! use static ; then |
59 |
+ sed -i -e "/^all:/s/ \(chntpw\|reged\).static//g" Makefile || die |
60 |
+ fi |
61 |
+ |
62 |
+ emake clean |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake \ |
67 |
+ CC="$(tc-getCC)" \ |
68 |
+ CFLAGS="${CFLAGS} -DUSEOPENSSL -Wall" \ |
69 |
+ LIBS="-lcrypto" |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ einstalldocs |
74 |
+ dobin chntpw cpnt reged sampasswd samusrgrp |
75 |
+ |
76 |
+ if use static; then |
77 |
+ dobin {chntpw,reged,sampasswd,samusrgrp}.static |
78 |
+ fi |
79 |
+} |