2002-06-23 08:58:05 +00:00
|
|
|
# New ports collection makefile for: honeyd
|
|
|
|
# Date created: 16/04/2002
|
2003-06-24 01:06:04 +00:00
|
|
|
# Whom: Dominic Marks <dominic.marks@btinternet.com>
|
2002-06-23 08:58:05 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= honeyd
|
2006-11-22 20:30:25 +00:00
|
|
|
PORTVERSION= 1.5b
|
2006-12-05 13:29:01 +00:00
|
|
|
PORTREVISION= 1
|
2002-06-23 08:58:05 +00:00
|
|
|
CATEGORIES= net
|
2003-12-20 22:00:04 +00:00
|
|
|
MASTER_SITES= http://www.citi.umich.edu/u/provos/honeyd/ \
|
|
|
|
http://niels.xtdnet.nl/honeyd/
|
2002-06-23 08:58:05 +00:00
|
|
|
|
2006-08-19 16:49:49 +00:00
|
|
|
MAINTAINER= wxs@atarininja.org
|
2003-12-04 16:00:46 +00:00
|
|
|
COMMENT= Simulate virtual network hosts (honeypots)
|
2002-06-23 08:58:05 +00:00
|
|
|
|
2006-12-05 13:29:01 +00:00
|
|
|
LIB_DEPENDS= event-1.2a:${PORTSDIR}/devel/libevent \
|
|
|
|
dnet.1:${PORTSDIR}/net/libdnet \
|
|
|
|
dnsres.0:${PORTSDIR}/devel/libdnsres
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
|
2002-06-23 08:58:05 +00:00
|
|
|
|
2006-11-22 20:30:25 +00:00
|
|
|
USE_LDCONFIG= yes
|
2007-03-22 17:49:07 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-08-12 06:33:14 +00:00
|
|
|
CONFIGURE_ARGS= --with-libdnet=${LOCALBASE} \
|
|
|
|
--with-libevent=${LOCALBASE} \
|
2006-04-29 12:33:12 +00:00
|
|
|
--with-libdnsres=${LOCALBASE}
|
2003-12-04 16:00:46 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PYTHON)
|
2006-11-22 20:30:25 +00:00
|
|
|
USE_PYTHON= 2.4
|
2003-12-04 16:00:46 +00:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.endif
|
|
|
|
|
2004-04-16 23:15:46 +00:00
|
|
|
MAN1= honeydctl.1
|
2002-06-23 08:58:05 +00:00
|
|
|
MAN8= honeyd.8
|
|
|
|
|
2004-04-21 19:22:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2006-04-29 12:33:12 +00:00
|
|
|
|
2004-04-21 19:22:47 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2006-01-29 23:27:23 +00:00
|
|
|
LIB_DEPENDS+= edit.6:${PORTSDIR}/devel/libedit
|
2004-04-21 19:22:47 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-04 16:00:46 +00: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:
|
|
|
|
@${REINPLACE_CMD} -e 's|LIBS = |LIBS = ${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2006-04-29 12:33:12 +00:00
|
|
|
# Have to make this directory, the Makefile is stupid and tries to
|
|
|
|
# install stuff here without making it.
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${DATADIR}/webserver
|
|
|
|
|
2003-12-04 16:00:46 +00:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DATADIR}/scripts/snmp
|
|
|
|
@cd ${WRKSRC}/scripts && \
|
2005-04-18 07:38:15 +00:00
|
|
|
${INSTALL_DATA} README* INSTALL* kuang2.conf \
|
|
|
|
${DATADIR}/scripts && \
|
2003-12-04 16:00:46 +00:00
|
|
|
${INSTALL_SCRIPT} *.pl *.sh ${DATADIR}/scripts
|
|
|
|
@cd ${WRKSRC}/scripts/snmp && \
|
|
|
|
${INSTALL_DATA} README default.snmp *.tpl \
|
|
|
|
${DATADIR}/scripts/snmp && \
|
|
|
|
${INSTALL_SCRIPT} *.pl ${DATADIR}/scripts/snmp
|
|
|
|
|
2004-04-21 19:22:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|