2013-09-21 00:55:24 +02:00
|
|
|
# Created by: buganini@gmail.com
|
2007-07-27 16:41:07 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= chntpw
|
2012-01-14 20:11:50 +01:00
|
|
|
PORTVERSION= 110511
|
2015-04-04 14:19:14 +02:00
|
|
|
PORTREVISION= 2
|
2007-07-27 16:41:07 +02:00
|
|
|
CATEGORIES= security sysutils
|
2010-08-13 16:50:21 +02:00
|
|
|
MASTER_SITES= http://pogostick.net/~pnh/ntpasswd/
|
2007-07-27 16:41:07 +02:00
|
|
|
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= buganini@gmail.com
|
|
|
|
COMMENT= Utility to set the password and edit registry on Microsoft NT system
|
|
|
|
|
2013-10-10 08:53:56 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2007-07-27 16:41:07 +02:00
|
|
|
USE_OPENSSL= yes
|
2014-03-10 18:01:36 +01:00
|
|
|
USES= gmake zip
|
2007-07-27 16:41:07 +02:00
|
|
|
|
2013-11-28 16:48:46 +01:00
|
|
|
BIN_FILES= chntpw cpnt reged
|
|
|
|
PLIST_FILES= ${BIN_FILES:C|^|bin/|}
|
2007-07-27 16:41:07 +02:00
|
|
|
PORTDOCS= README.txt WinReg.txt regedit.txt
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
post-patch:
|
2013-10-10 08:53:56 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^CC=/d; /^OSSLPATH=/ s|=.*|=${OPENSSLBASE}|' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/^CFLAGS=/ s| -m32||' ${WRKSRC}/Makefile
|
2007-07-27 16:41:07 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-11-28 16:48:46 +01:00
|
|
|
${INSTALL_PROGRAM} ${BIN_FILES:C|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
2013-10-10 08:53:56 +02:00
|
|
|
|
2015-09-15 14:23:19 +02:00
|
|
|
do-install-DOCS-on:
|
2013-10-10 08:53:56 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2007-07-27 16:41:07 +02:00
|
|
|
|
2015-09-15 14:23:19 +02:00
|
|
|
.include <bsd.port.mk>
|