Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2018 16:48:38 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488404 - head/security/hmap
Message-ID:  <201812261648.wBQGmcYf033220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Dec 26 16:48:37 2018
New Revision: 488404
URL: https://svnweb.freebsd.org/changeset/ports/488404

Log:
  - Fix LICENSE
  - Fix shebang a standard way
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/security/hmap/Makefile

Modified: head/security/hmap/Makefile
==============================================================================
--- head/security/hmap/Makefile	Wed Dec 26 16:09:58 2018	(r488403)
+++ head/security/hmap/Makefile	Wed Dec 26 16:48:37 2018	(r488404)
@@ -11,10 +11,11 @@ DISTNAME=	${PORTNAME}
 MAINTAINER=	onatan@gmail.com
 COMMENT=	Web server fingerprinting utility
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/GPL
 
-USES=		dos2unix python
+USES=		dos2unix python shebangfix
+SHEBANG_FILES=	hmap.py
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 NO_ARCH=	yes
@@ -22,12 +23,14 @@ NO_ARCH=	yes
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
-	${REINPLACE_CMD} -e 's|DATADIR|${DATADIR}|; s|#! /usr/bin/env python|#!${PYTHON_CMD}|' ${WRKSRC}/hmap.py
+	@${REINPLACE_CMD} -e 's|DATADIR|${DATADIR}|' ${WRKSRC}/hmap.py
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/hmap.py ${STAGEDIR}${PREFIX}/bin
 	@${MKDIR} ${STAGEDIR}${DATADIR}
-	(cd ${WRKSRC}/known.servers/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
+	(cd ${WRKSRC}/known.servers/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in README BUGS FAQS HIDING_GUIDE KNOWN_TESTS
 	${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812261648.wBQGmcYf033220>