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
|
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_ZIP= yes
|
|
|
|
USE_OPENSSL= yes
|
2013-10-10 08:53:56 +02:00
|
|
|
USES= gmake
|
2007-07-27 16:41:07 +02:00
|
|
|
|
2013-10-10 08:53:56 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2007-07-29 13:58:14 +02:00
|
|
|
|
2007-07-27 16:41:07 +02:00
|
|
|
PLIST_FILES= bin/chntpw
|
|
|
|
PORTDOCS= README.txt WinReg.txt regedit.txt
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2013-10-10 08:53:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-07-27 16:41:07 +02:00
|
|
|
post-patch:
|
2013-10-10 08:53:56 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^CC=/d; /^OSSLPATH=/ s|=.*|=${OPENSSLBASE}|' ${WRKSRC}/Makefile
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
@${REINPLACE_CMD} -e '/^CFLAGS=/ s| -m32||' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2007-07-27 16:41:07 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-10-10 08:53:56 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/chntpw ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2007-07-27 16:41:07 +02:00
|
|
|
.endif
|
|
|
|
|
2013-10-10 08:53:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|