aboutsummaryrefslogtreecommitdiffstats
path: root/security/skipfish/Makefile
blob: 4656be611ae2d1c8fbae9f25f1a8d38ac325b7c8 (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
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    skipfish
# Date created:         2010-03-25
# Whom:                 rpsfa@rit.edu
#
# $FreeBSD$

PORTNAME=   skipfish
PORTVERSION=    1.88b
CATEGORIES= security www
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX=   .tgz

MAINTAINER= rpsfa@rit.edu
COMMENT=    A fully automated, active web application security reconnaissance tool

LIB_DEPENDS=    idn.17:${PORTSDIR}/dns/libidn

LICENSE=    ASL
LICENSE_FILE=   ${WRKSRC}/COPYING
SUB_FILES=  pkg-message

.if !defined(NOPORTDOCS)
PORTDOCS=   README COPYING ChangeLog
.endif

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's:"skipfish.wl":"${DATADIR}/dictionaries/complete.wl":' \
        -e 's:"assets":"${DATADIR}/assets":' ${WRKSRC}/config.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/skipfish ${PREFIX}/bin/skipfish
    (cd ${WRKSRC}/assets/ && ${COPYTREE_SHARE} . ${DATADIR}/assets/)
    (cd ${WRKSRC}/dictionaries/ && ${COPYTREE_SHARE} . ${DATADIR}/dictionaries/)
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.   for doc in ${PORTDOCS}
        ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.   endfor
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>