aboutsummaryrefslogtreecommitdiffstats
path: root/security/hmap/Makefile
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2018-12-27 00:48:37 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2018-12-27 00:48:37 +0800
commit3456e85d0bbba5feda7909a2f840ddf692a53d41 (patch)
tree892a2163c384f0ccf3ba1de399343d09da85c86e /security/hmap/Makefile
parent24d1d4d0dba41403b42186892a5ee7f70a0db077 (diff)
downloadfreebsd-ports-gnome-3456e85d0bbba5feda7909a2f840ddf692a53d41.tar.gz
freebsd-ports-gnome-3456e85d0bbba5feda7909a2f840ddf692a53d41.tar.zst
freebsd-ports-gnome-3456e85d0bbba5feda7909a2f840ddf692a53d41.zip
- Fix LICENSE
- Fix shebang a standard way - Switch to options helpers Approved by: portmgr blanket
Diffstat (limited to 'security/hmap/Makefile')
-rw-r--r--security/hmap/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/security/hmap/Makefile b/security/hmap/Makefile
index a902b90ec806..f45feb7ce5ba 100644
--- a/security/hmap/Makefile
+++ b/security/hmap/Makefile
@@ -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}