blob: 72cfc11bca7da25abc90d4eab8861d991f48cd89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/chntpw/chntpw-080526.ebuild,v 1.3 2008/12/30 17:57:42 angelos Exp $
inherit toolchain-funcs
DESCRIPTION="Offline Windows NT Password & Registry Editor"
HOMEPAGE="http://home.eunet.no/~pnordahl/ntpasswd/"
SRC_URI="http://home.eunet.no/~pnordahl/ntpasswd/${PN}-source-${PV}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="static"
RDEPEND="dev-libs/openssl"
DEPEND="app-arch/unzip"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "/^CC/s/gcc/$(tc-getCC)/" \
Makefile || die "sed failed"
}
src_compile() {
#Makefile is hardcoded, override the defaults with the user's settings.
emake LIBS="-lcrypto" CFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dobin chntpw
use static && dobin chntpw.static
dobin cpnt
dodoc HISTORY.txt README.txt regedit.txt WinReg.txt
}
|