aboutsummaryrefslogtreecommitdiffstats
path: root/net/nepenthes/Makefile
blob: 4dcee0c5cc1203b74e1cd61b9d4343c0f0213940 (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
47
48
49
# Ports collection makefile for:    nepenthes
# Date created:             1 Dec 2005
# Whom:                 ryo
#
# $FreeBSD$
#

PORTNAME=   nepenthes
PORTVERSION=    0.2.2
PORTREVISION=   4
CATEGORIES= net
MASTER_SITES=   SF/${PORTNAME}/Nepenthes%20development/${PORTVERSION}

MAINTAINER= systemoperator@gmail.com
COMMENT=    Determine the malware activity on a network

LIB_DEPENDS=    curl.6:${PORTSDIR}/ftp/curl \
        magic.1:${PORTSDIR}/sysutils/file \
        pcre.1:${PORTSDIR}/devel/pcre \
        adns.1:${PORTSDIR}/dns/adns

.if defined(WITH_PRELUDE)
LIB_DEPENDS+=       prelude.20:${PORTSDIR}/security/libprelude
CONFIGURE_ARGS+=    --enable-prelude
.endif

.if defined(WITH_DEBUG_LOGGING)
CONFIGURE_ARGS+=    --enable-debug-logging
.endif

USE_PERL5=  yes
GNU_CONFIGURE=  yes

DOCS=   README README.VFS logo-shaded.svg
MAN8=   nepenthes.8

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
    ${REINPLACE_CMD} -e 's,-Werror,,'
    @${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
        ${WRKSRC}/modules/download-curl/download-curl.hpp \
        ${WRKSRC}/modules/submit-http/HTTPSession.hpp \
        ${WRKSRC}/modules/submit-http/HTTPSession.cpp \
        ${WRKSRC}/modules/submit-http/submit-http.hpp \
        ${WRKSRC}/modules/submit-mwserv/TransferSession.hpp \
        ${WRKSRC}/modules/submit-mwserv/submit-mwserv.hpp \
        ${WRKSRC}/modules/submit-norman/submit-norman.hpp

.include <bsd.port.mk>