1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/security/chntpw/Makefile
Dmitry Marakasov 3a8ea1224e - Drop ARCH condition for removing -m32 flag: on i386 it's no-op anyway
- Drop ONLY_FOR_ARCHS, it builds fine on arm, mips and mips64, however not sure if it's usable there
- Switch to options helpers

PR:		202870
Submitted by:	amdmi3
Approved by:	buganini@gmail.com (maintainer)
2015-09-15 12:23:19 +00:00

39 lines
960 B
Makefile

# Created by: buganini@gmail.com
# $FreeBSD$
PORTNAME= chntpw
PORTVERSION= 110511
PORTREVISION= 2
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_OPENSSL= yes
USES= gmake zip
BIN_FILES= chntpw cpnt reged
PLIST_FILES= ${BIN_FILES:C|^|bin/|}
PORTDOCS= README.txt WinReg.txt regedit.txt
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e '/^CC=/d; /^OSSLPATH=/ s|=.*|=${OPENSSLBASE}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^CFLAGS=/ s| -m32||' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${BIN_FILES:C|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>