2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Dominic Marks <dominic.marks@btinternet.com>
|
2002-06-23 10:58:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= honeyd
|
2007-06-22 11:52:01 +02:00
|
|
|
PORTVERSION= 1.5c
|
2015-08-26 04:44:32 +02:00
|
|
|
PORTREVISION= 8
|
2002-06-23 10:58:05 +02:00
|
|
|
CATEGORIES= net
|
2011-04-20 22:12:20 +02:00
|
|
|
MASTER_SITES= http://www.honeyd.org/uploads/ \
|
|
|
|
http://www.citi.umich.edu/u/provos/honeyd/
|
2002-06-23 10:58:05 +02:00
|
|
|
|
2009-06-03 17:19:10 +02:00
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
2003-12-04 17:00:46 +01:00
|
|
|
COMMENT= Simulate virtual network hosts (honeypots)
|
2002-06-23 10:58:05 +02:00
|
|
|
|
2014-05-14 04:12:19 +02:00
|
|
|
LICENSE= GPLv2
|
2015-07-14 21:39:16 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2014-05-14 04:12:19 +02:00
|
|
|
|
2014-07-24 15:32:58 +02:00
|
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 \
|
2014-05-14 04:12:19 +02:00
|
|
|
libdnet.so:${PORTSDIR}/net/libdnet \
|
|
|
|
libpcre.so:${PORTSDIR}/devel/pcre
|
2002-06-23 10:58:05 +02:00
|
|
|
|
2015-08-26 04:44:32 +02:00
|
|
|
USES= libedit libtool shebangfix
|
2015-07-14 21:39:16 +02:00
|
|
|
SHEBANG_FILES= scripts/*.pl scripts/snmp/*.pl
|
2006-11-22 21:30:25 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-07-03 17:57:03 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-08-12 08:33:14 +02:00
|
|
|
CONFIGURE_ARGS= --with-libdnet=${LOCALBASE} \
|
2007-07-23 11:36:51 +02:00
|
|
|
--with-libevent=${LOCALBASE}
|
2003-12-04 17:00:46 +01:00
|
|
|
|
2014-07-24 15:32:58 +02:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/honeyd-1.5c-libevent2.patch:-p1
|
|
|
|
|
2003-12-04 17:00:46 +01:00
|
|
|
.if defined(WITH_PYTHON)
|
2014-10-24 18:21:26 +02:00
|
|
|
USES+= python
|
2003-12-04 17:00:46 +01:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.endif
|
|
|
|
|
2004-04-21 21:22:47 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2006-04-29 14:33:12 +02:00
|
|
|
|
2003-12-04 17:00:46 +01:00
|
|
|
.if !defined(WITH_PYTHON)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
@${ECHO_MSG} "===> You can enable Python support by defining the following variable:"
|
|
|
|
@${ECHO_MSG} "===> WITH_PYTHON=yes Enable Python support"
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
2015-03-26 00:51:05 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|LIBS = |LIBS = -lpthread|' \
|
2003-12-04 17:00:46 +01:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2006-04-29 14:33:12 +02:00
|
|
|
# Have to make this directory, the Makefile is stupid and tries to
|
|
|
|
# install stuff here without making it.
|
|
|
|
pre-install:
|
2014-05-14 04:12:19 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/webserver
|
2006-04-29 14:33:12 +02:00
|
|
|
|
2003-12-04 17:00:46 +01:00
|
|
|
post-install:
|
2014-05-14 04:12:19 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/scripts/snmp
|
2003-12-04 17:00:46 +01:00
|
|
|
@cd ${WRKSRC}/scripts && \
|
2005-04-18 09:38:15 +02:00
|
|
|
${INSTALL_DATA} README* INSTALL* kuang2.conf \
|
2014-05-14 04:12:19 +02:00
|
|
|
${STAGEDIR}${DATADIR}/scripts && \
|
|
|
|
${INSTALL_SCRIPT} *.pl *.sh ${STAGEDIR}${DATADIR}/scripts
|
2003-12-04 17:00:46 +01:00
|
|
|
@cd ${WRKSRC}/scripts/snmp && \
|
|
|
|
${INSTALL_DATA} README default.snmp *.tpl \
|
2014-05-14 04:12:19 +02:00
|
|
|
${STAGEDIR}${DATADIR}/scripts/snmp && \
|
|
|
|
${INSTALL_SCRIPT} *.pl ${STAGEDIR}${DATADIR}/scripts/snmp
|
2003-12-04 17:00:46 +01:00
|
|
|
|
2004-04-21 21:22:47 +02:00
|
|
|
.include <bsd.port.post.mk>
|