summaryrefslogtreecommitdiff
path: root/security/hackbot/Makefile
blob: dfaa30c1b61e87f407f8d6d25b74fdb3f16f85c5 (plain)
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
# $NetBSD: Makefile,v 1.13 2013/07/30 09:19:28 is Exp $

DISTNAME=		hackbot-2.21
PKGREVISION=		1
CATEGORIES=		security net
MASTER_SITES=		http://hackbot.stream-portal.org/
EXTRACT_SUFX=		.tgz

MAINTAINER=		is@netbsd.org
HOMEPAGE=		http://hackbot.stream-portal.org/
COMMENT=		Vulnerability scanner written in Perl

WRKSRC=			${WRKDIR}/hackbot
MANCOMPRESSED=		YES
USE_TOOLS+=		perl:run
REPLACE_PERL=		hackbot.pl

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/hackbot

do-build:
	${SED} "s,/usr/local/etc,${PREFIX}/share/hackbot,g" ${WRKSRC}/hackbot.pl > ${WRKSRC}/hackbot.pl.done
	${MV} ${WRKSRC}/hackbot.pl.done ${WRKSRC}/hackbot.pl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/hackbot.pl ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/cgi.db ${WRKSRC}/fingerprint.db \
	    ${DESTDIR}${PREFIX}/share/hackbot
	${INSTALL_MAN} ${WRKSRC}/hackbot.1.gz ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"