aboutsummaryrefslogtreecommitdiffstats
path: root/security/hmap/Makefile
blob: 54790a523ee26587847b66a75361ef98d94085dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Yonatan <onatan@gmail.com>
# $FreeBSD$

PORTNAME=   hmap
PORTVERSION=    0.1
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://ujeni.murkyroc.com/hmap/code/current/
DISTNAME=   ${PORTNAME}

MAINTAINER= onatan@gmail.com
COMMENT=    Web server fingerprinting utility

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/GPL

USES=       dos2unix
USE_PYTHON= yes

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

OPTIONS_DEFINE= DOCS

post-patch:
    ${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})
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README BUGS FAQS HIDING_GUIDE KNOWN_TESTS
    ${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>