mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
a7c03045af
- Bump portrevision PR: ports/184158 Submitted by: John Hein <jhein@symmetricom.com> Approved by: maintainer
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# Created by: buganini@gmail.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= chntpw
|
|
PORTVERSION= 110511
|
|
PORTREVISION= 1
|
|
CATEGORIES= security sysutils
|
|
MASTER_SITES= http://pogostick.net/~pnh/ntpasswd/
|
|
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
|
|
|
|
MAINTAINER= buganini@gmail.com
|
|
COMMENT= Utility to set the password and edit registry on Microsoft NT system
|
|
|
|
LICENSE= GPLv2
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USE_ZIP= yes
|
|
USE_OPENSSL= yes
|
|
USES= gmake
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
BIN_FILES= chntpw cpnt reged
|
|
PLIST_FILES= ${BIN_FILES:C|^|bin/|}
|
|
PORTDOCS= README.txt WinReg.txt regedit.txt
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^CC=/d; /^OSSLPATH=/ s|=.*|=${OPENSSLBASE}|' ${WRKSRC}/Makefile
|
|
.if ${ARCH} == "amd64"
|
|
@${REINPLACE_CMD} -e '/^CFLAGS=/ s| -m32||' ${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BIN_FILES:C|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|