# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Offline Windows NT Password & Registry Editor" HOMEPAGE="http://home.eunet.no/~pnordahl/ntpasswd/" MY_PV="${PV/*200/0}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" RDEPEND="dev-libs/openssl amd64? (app-emulation/emul-linux-x86-baselibs)" DEPEND="${RDEPEND} app-arch/unzip" SRC_URI="http://home.eunet.no/~pnordahl/ntpasswd/chntpw-source-${MY_PV}.zip" IUSE="" S="${WORKDIR}/chntpw-${MY_PV}" src_unpack() { unpack ${A} } src_compile() { if use amd64; then #we can't use our CFLAGS here cause we need 32bit emake LIBS="-lcrypto" || die "emake failed" emake LIBS="-lcrypto" cpnt || die "emake failed" else emake LIBS="-lcrypto" CFLAGS="${CFLAGS}" || die "emake failed" emake LIBS="-lcrypto" CFLAGS="${CFLAGS}" cpnt || die "emake failed" fi } src_install() { into /usr dobin chntpw dobin cpnt dodoc *.txt }