Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: app-crypt/chntpw/, app-crypt/chntpw/files/
Date: Mon, 31 Oct 2016 23:14:13
Message-Id: 1477955615.64ee8fa9eb1176ca8f1f0082200a0ad35f5922c1.lluixhi@gentoo
1 commit: 64ee8fa9eb1176ca8f1f0082200a0ad35f5922c1
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 31 23:13:35 2016 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Mon Oct 31 23:13:35 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=64ee8fa9
7
8 app-crypt/chntpw: Add Latest.
9
10 app-crypt/chntpw/Manifest | 4 ++
11 app-crypt/chntpw/chntpw-140201.ebuild | 52 ++++++++++++++++++++++
12 .../files/chntpw-140201-missing-stdint.patch | 11 +++++
13 app-crypt/chntpw/metadata.xml | 8 ++++
14 4 files changed, 75 insertions(+)
15
16 diff --git a/app-crypt/chntpw/Manifest b/app-crypt/chntpw/Manifest
17 new file mode 100644
18 index 0000000..a83d7cf
19 --- /dev/null
20 +++ b/app-crypt/chntpw/Manifest
21 @@ -0,0 +1,4 @@
22 +AUX chntpw-140201-missing-stdint.patch 363 SHA256 22d8319807cec29ac9f7f64a5d94ba8edc09dfee94ccc4303e4d39f011ba4ea1 SHA512 44c06ba580c8beba76d84bcbc2bb1b47cfdad44736518f3e9adab13476c0b8a1e6bb64ccdf81aa515daac5e68b52af4f14edac139cbf3ecd558c556248e6df63 WHIRLPOOL ead7efc702e46130ef9ccc501f7486d5029e34c6fc69fbb985564055b8acb7cb43e4bb01a2e24c8f0d95ae91c7b9f53d59478b6ce2e4583cc42d72292376e5c6
23 +DIST chntpw-source-140201.zip 1404098 SHA256 96e20905443e24cba2f21e51162df71dd993a1c02bfa12b1be2d0801a4ee2ccc SHA512 a26d747f6e077d1bb3e9b8077781f8c37dd978e07b7426495862f15c9004572b706c34736fc4d1ed8856b1a43335d726b4d87c688f7f9a11fd6cc3a74d71a7fa WHIRLPOOL 87284c123d2ae1965d069d4d97cda23ce757305b3521f84089e43a9f1fa8aaa48f8fbad5bba19b3a439cfb16d270e0f77f528664fdba895c65c100492eb9e42a
24 +EBUILD chntpw-140201.ebuild 1086 SHA256 528c3745f581829953d9c1a344ca6ba02333f45e0dc4332ce2844f5e37f46ea8 SHA512 43a0528edd558b4e4607f915d62c665182493a2e184135bcf93daeb196e923d81b69e48353b1702bda603cae1f4879df2a1a12f9e919579b314d01efb9444875 WHIRLPOOL a1007a0989f511d18aae18090f63665414507f4bbb94dc2c99de77cf41db871353954f7a78f90524be999b201a35f0c00379a9e7ac5c3e4c375c985b6e6da13d
25 +MISC metadata.xml 240 SHA256 d1d2aa7abc46b180b2494a0cbb393768f12073097a3ddf9d118cb9e2cead8317 SHA512 e94cdc08f1a8aafc0ec72615a476ed63dbacd22b48413a938f5bfbe9c2bda2cab2347465df3035b53031e0a4f935b47d22fad8c89a67e5780a5370ec9564d99d WHIRLPOOL aad153df696809789d129412e71fd5eca91f7b230c22a10c70baa6f79e3ab57cf8890540fead3d9587f76b4396a7089921b207165fe0505917ad76b5cf86af90
26
27 diff --git a/app-crypt/chntpw/chntpw-140201.ebuild b/app-crypt/chntpw/chntpw-140201.ebuild
28 new file mode 100644
29 index 0000000..5047f17
30 --- /dev/null
31 +++ b/app-crypt/chntpw/chntpw-140201.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +inherit eutils toolchain-funcs
40 +
41 +DESCRIPTION="Offline Windows NT Password & Registry Editor"
42 +HOMEPAGE="http://pogostick.net/~pnh/ntpasswd/"
43 +SRC_URI="http://pogostick.net/~pnh/ntpasswd/${PN}-source-${PV}.zip"
44 +
45 +LICENSE="GPL-2 LGPL-2.1"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~ppc ~x86"
48 +IUSE="libressl static"
49 +
50 +RDEPEND="!libressl? ( dev-libs/openssl:0= )
51 + libressl? ( dev-libs/libressl:0= )"
52 +DEPEND="${RDEPEND}
53 + app-arch/unzip
54 + static? ( dev-libs/openssl:0[static-libs] )"
55 +
56 +src_prepare() {
57 + sed -i -e '/-o/s:$(CC):$(CC) $(LDFLAGS):' Makefile || die
58 +
59 + if ! use static ; then
60 + sed -i -e "/^all:/s/ \(chntpw\|reged\).static//g" Makefile || die
61 + fi
62 +
63 + # Fix for musl
64 + epatch "${FILESDIR}"/${P}-missing-stdint.patch
65 +
66 + emake clean
67 +}
68 +
69 +src_compile() {
70 + emake \
71 + CC="$(tc-getCC)" \
72 + CFLAGS="${CFLAGS} -DUSEOPENSSL -Wall" \
73 + LIBS="-lcrypto"
74 +}
75 +
76 +src_install() {
77 + dobin chntpw cpnt reged
78 +
79 + if use static; then
80 + dobin {chntpw,reged}.static
81 + fi
82 +
83 + dodoc {HISTORY,README,regedit,WinReg}.txt
84 +}
85
86 diff --git a/app-crypt/chntpw/files/chntpw-140201-missing-stdint.patch b/app-crypt/chntpw/files/chntpw-140201-missing-stdint.patch
87 new file mode 100644
88 index 0000000..e6b4902
89 --- /dev/null
90 +++ b/app-crypt/chntpw/files/chntpw-140201-missing-stdint.patch
91 @@ -0,0 +1,11 @@
92 +diff -Naur chntpw-140201.orig/ntreg.h chntpw-140201/ntreg.h
93 +--- chntpw-140201.orig/ntreg.h 2014-02-01 08:54:37.000000000 -0800
94 ++++ chntpw-140201/ntreg.h 2016-03-02 18:26:33.820980981 -0800
95 +@@ -24,6 +24,7 @@
96 +
97 + #ifndef _INCLUDE_NTREG_H
98 + #define _INCLUDE_NTREG_H 1
99 ++#include <stdint.h>
100 +
101 + #define SZ_MAX 4096 /* Max unicode strlen before we truncate */
102 +
103
104 diff --git a/app-crypt/chntpw/metadata.xml b/app-crypt/chntpw/metadata.xml
105 new file mode 100644
106 index 0000000..040cba5
107 --- /dev/null
108 +++ b/app-crypt/chntpw/metadata.xml
109 @@ -0,0 +1,8 @@
110 +<?xml version="1.0" encoding="UTF-8"?>
111 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
112 +<pkgmetadata>
113 + <maintainer type="project">
114 + <email>crypto@g.o</email>
115 + <name>Crypto</name>
116 + </maintainer>
117 +</pkgmetadata>