Bug 182832 - [MAINTAINER] update security/chntpw
Summary: [MAINTAINER] update security/chntpw
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 16:40 UTC by buganini
Modified: 2013-10-10 08:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.04 KB, patch)
2013-10-08 16:40 UTC, buganini
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description buganini 2013-10-08 16:40:00 UTC
* Add LICENSE
* New option framework
* Enable for amd64
* Stagify
* Fix build without GCC

https://redports.org/buildarchive/20131008151000-10238/

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-08 16:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-10 07:54:07 UTC
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 <buganini@gmail.com> (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 <bsd.port.pre.mk>
+
 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 <bsd.port.mk>
+.include <bsd.port.post.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-10-10 07:59:39 UTC
State Changed
From-To: open->closed

Committed. Thanks!