blob: 8f20b4689a584ee3741ab23b997c419be7c62075 (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Dominic Marks <dominic.marks@btinternet.com>
# $FreeBSD$
PORTNAME= honeyd
PORTVERSION= 1.5c
PORTREVISION= 8
CATEGORIES= net
MASTER_SITES= http://www.honeyd.org/uploads/ \
http://www.citi.umich.edu/u/provos/honeyd/
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Simulate virtual network hosts (honeypots)
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libevent.so:devel/libevent2 \
libdnet.so:net/libdnet \
libpcre.so:devel/pcre
USES= libedit libtool shebangfix
SHEBANG_FILES= scripts/*.pl scripts/snmp/*.pl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libdnet=${LOCALBASE} \
--with-libevent=${LOCALBASE}
EXTRA_PATCHES= ${FILESDIR}/honeyd-1.5c-libevent2.patch:-p1
.if defined(WITH_PYTHON)
USES+= python
CONFIGURE_ARGS+= --with-python
.else
CONFIGURE_ARGS+= --without-python
.endif
.include <bsd.port.pre.mk>
.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 = -lpthread|' \
${WRKSRC}/Makefile
# Have to make this directory, the Makefile is stupid and tries to
# install stuff here without making it.
pre-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/webserver
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/scripts/snmp
@cd ${WRKSRC}/scripts && \
${INSTALL_DATA} README* INSTALL* kuang2.conf \
${STAGEDIR}${DATADIR}/scripts && \
${INSTALL_SCRIPT} *.pl *.sh ${STAGEDIR}${DATADIR}/scripts
@cd ${WRKSRC}/scripts/snmp && \
${INSTALL_DATA} README default.snmp *.tpl \
${STAGEDIR}${DATADIR}/scripts/snmp && \
${INSTALL_SCRIPT} *.pl ${STAGEDIR}${DATADIR}/scripts/snmp
.include <bsd.port.post.mk>
|