- Fix LICENSE

- Fix shebang a standard way
- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-12-26 16:48:37 +00:00
parent d08a415475
commit 6a17362f69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488404

View File

@ -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}