# $Header: /magellan-cvs/smage/imaging/imaging-1.1.5-r2.smage2,v 1.3 2005/12/29 20:42:58 niro Exp $ PNAME="chntpw" PVER="20040818" PBUILD="r1" PCATEGORIE="app-crypt" STATE="unstable" DESCRIPTION="Offline NT Password & Registry Editor" HOMEPAGE="http://home.eunet.no/~pnordahl/ntpasswd/" DEPEND="" SDEPEND=">= dev-libs/openssl-0.9.7 >= app-arch/unzip-5.50" SRCFILE="${PNAME}-source-040818.zip" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch ) src_prepare() { install -d ${SRCDIR} || die unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${SRCDIR} || die cd ${SRCDIR} mpatch -Np1 ${PNAME}-${PVER}-gcc4.patch || die } src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} install -d ${BINDIR}/usr/bin || die install -o root -g root -m0755 chntpw ${BINDIR}/usr/bin || die minstalldocs COPYING.txt HISTORY.txt INSTALL.txt README.txt || die }