mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
6a49fa15fa
PR: 193042 Submitted by: Ports Fury
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: ryo
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nepenthes
|
|
PORTVERSION= 0.2.2
|
|
PORTREVISION= 8
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF/${PORTNAME}/Nepenthes%20development/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Determine the malware activity on a network
|
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
libadns.so:${PORTSDIR}/dns/adns \
|
|
libcurl.so:${PORTSDIR}/ftp/curl \
|
|
libmagic.so:${PORTSDIR}/sysutils/file
|
|
|
|
USES= dos2unix libtool perl5
|
|
DOS2UNIX_FILE= modules/shellcode-generic/sch_generic_connect_trans.cpp
|
|
USE_GCC= any
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
|
INSTALL_TARGET= install-strip
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= DEBUG_LOGGING PRELUDE
|
|
|
|
DEBUG_LOGGING_CONFIGURE_ENABLE= debug-logging
|
|
PRELUDE_LIB_DEPENDS= libprelude.so:${PORTSDIR}/security/libprelude
|
|
PRELUDE_CONFIGURE_ENABLE= prelude
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e \
|
|
's|-Werror|| ; \
|
|
s|-D.*_GNU_SOURCE||'
|
|
@${FIND} ${WRKSRC}/modules -name "*.[ch]pp" -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e \
|
|
'/<curl\/types.h>/d'
|
|
@${REINPLACE_CMD} -e \
|
|
's|-I/usr/local/include|| ; \
|
|
s|-I/usr/src/contrib/file/|| ; \
|
|
s|-L/usr/local/lib|| ; \
|
|
s|-R/usr/local/lib||' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/signatures
|
|
(cd ${WRKSRC}/modules/shellcode-signatures && ${INSTALL_DATA} \
|
|
shellcode-signatures.sc ${STAGEDIR}${DATADIR}/signatures)
|
|
|
|
.include <bsd.port.mk>
|