summaryrefslogtreecommitdiff
path: root/security/chntpw/Makefile
blob: 215f607104f199db13eb5c486ad3395aa10affcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection makefile for:    chntpw
# Date created:                         25 July 2007
# Whom:                    buganini@gmail.com
#
# $FreeBSD$
#

PORTNAME=	chntpw
PORTVERSION=	070923
CATEGORIES=	security sysutils
MASTER_SITES=	http://home.eunet.no/pnordahl/ntpasswd/
DISTNAME=	${PORTNAME}-source-${PORTVERSION}

MAINTAINER=	buganini@gmail.com
COMMENT=	Utility to set the password and edit registry on Microsoft NT system

USE_ZIP=	yes
USE_GMAKE=	yes
USE_OPENSSL=	yes

ONLY_FOR_ARCHS=	i386

PLIST_FILES=	bin/chntpw
PORTDOCS=	README.txt WinReg.txt regedit.txt

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
	@${REINPLACE_CMD} -e '10 s,/usr,$$\(OPENSSLBASE\),' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/chntpw ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>