From owner-svn-ports-head@FreeBSD.ORG Thu Oct 10 06:53:57 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 043B26B; Thu, 10 Oct 2013 06:53:57 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E643D2381; Thu, 10 Oct 2013 06:53:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9A6ruvS031240; Thu, 10 Oct 2013 06:53:56 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9A6ruGr031239; Thu, 10 Oct 2013 06:53:56 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201310100653.r9A6ruGr031239@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Thu, 10 Oct 2013 06:53:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329967 - head/security/chntpw X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 06:53:57 -0000 Author: sunpoet Date: Thu Oct 10 06:53:56 2013 New Revision: 329967 URL: http://svnweb.freebsd.org/changeset/ports/329967 Log: - Add LICENSE - Convert to new OPTIONS framework - Allow build on amd64 - Respect CC: fix build with clang - Support STAGEDIR - While I'm here, use USES=gmake PR: ports/182832 Submitted by: Kuan-Chung Chiu (maintainer) Modified: head/security/chntpw/Makefile (contents, props changed) Modified: head/security/chntpw/Makefile ============================================================================== --- head/security/chntpw/Makefile Thu Oct 10 06:53:51 2013 (r329966) +++ head/security/chntpw/Makefile Thu Oct 10 06:53:56 2013 (r329967) @@ -10,27 +10,36 @@ DISTNAME= ${PORTNAME}-source-${PORTVERSI 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_GMAKE= yes USE_OPENSSL= yes +USES= gmake -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 amd64 PLIST_FILES= bin/chntpw PORTDOCS= README.txt WinReg.txt regedit.txt WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -NO_STAGE= yes +.include + post-patch: - @${REINPLACE_CMD} -e '10 s,/usr,$$\(OPENSSLBASE\),' \ - ${WRKSRC}/Makefile + @${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} ${WRKSRC}/chntpw ${PREFIX}/bin -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} + @${INSTALL_PROGRAM} ${WRKSRC}/chntpw ${STAGEDIR}${PREFIX}/bin + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif -.include +.include