summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-20 09:14:43 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-20 09:14:43 +0000
commitf1a11d6b86a46396ab6bb64b53230fc7dd78db32 (patch)
tree302bfe0181125bc66fc95f76c4f88e3bad75591f
parentee28365e1138e26f98e13c1564e1bf3a6a641795 (diff)
downloadpkgsrc-f1a11d6b86a46396ab6bb64b53230fc7dd78db32.tar.gz
Initial import of honeyd-0.8b, from pkgsrc-wip packaged by Adrian
Portelli with minor changes by me. Honeyd is a small daemon that creates virtual hosts on a network. The hosts can be configured to run arbitrary services, and their personality can be adapted so that they appear to be running certain operating systems. Honeyd enables a single host to claim multiple addresses - I have tested up to 65536 - on a LAN for network simulation. Honeyd improves cyber security by providing mechanisms for threat detection and assessment. It also deters adversaries by hiding real systems in the middle of virtual systems.
-rw-r--r--security/honeyd/DESCR7
-rw-r--r--security/honeyd/Makefile40
-rw-r--r--security/honeyd/PLIST21
-rw-r--r--security/honeyd/distinfo5
-rw-r--r--security/honeyd/files/honeyd.sh18
-rw-r--r--security/honeyd/patches/patch-aa26
6 files changed, 117 insertions, 0 deletions
diff --git a/security/honeyd/DESCR b/security/honeyd/DESCR
new file mode 100644
index 00000000000..d326bc09788
--- /dev/null
+++ b/security/honeyd/DESCR
@@ -0,0 +1,7 @@
+Honeyd is a small daemon that creates virtual hosts on a network. The hosts
+can be configured to run arbitrary services, and their personality can be
+adapted so that they appear to be running certain operating systems. Honeyd
+enables a single host to claim multiple addresses - I have tested up to
+65536 - on a LAN for network simulation. Honeyd improves cyber security by
+providing mechanisms for threat detection and assessment. It also deters
+adversaries by hiding real systems in the middle of virtual systems.
diff --git a/security/honeyd/Makefile b/security/honeyd/Makefile
new file mode 100644
index 00000000000..a032a13352a
--- /dev/null
+++ b/security/honeyd/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/04/20 09:14:43 xtraeme Exp $
+#
+
+DISTNAME= honeyd-0.8b
+CATEGORIES= security net
+MASTER_SITES= http://niels.xtdnet.nl/honeyd/
+
+MAINTAINER= adrianp@stindustries.net
+HOMEPAGE= http://niels.xtdnet.nl/honeyd/index.php
+COMMENT= Small daemon that creates virtual hosts on a network
+
+DEPENDS+= honeyd-arpd>=0.2:../../security/honeyd-arpd
+
+GNU_CONFIGURE= yes
+USE_BUILDLINK3= yes
+USE_LIBTOOL= yes
+USE_PKGINSTALL= yes
+PKG_SYSCONFSUBDIR= honeyd
+RCD_SCRIPTS= honeyd
+
+DIST_CONF_FILES= nmap.assoc xprobe2.conf nmap.prints \
+ config.ethernet pf.os
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+
+.for f in ${DIST_CONF_FILES}
+CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
+.endfor
+.undef f
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../net/libdnet/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff --git a/security/honeyd/PLIST b/security/honeyd/PLIST
new file mode 100644
index 00000000000..acfacca4824
--- /dev/null
+++ b/security/honeyd/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/20 09:14:43 xtraeme Exp $
+bin/honeyd
+bin/honeydctl
+etc/rc.d/honeyd
+include/honeyd/debug.h
+include/honeyd/hooks.h
+include/honeyd/plugins.h
+include/honeyd/plugins_config.h
+lib/honeyd/libhoneyd.so
+man/man1/honeydctl.1
+man/man8/honeyd.8
+share/doc/honeyd/README
+share/examples/honeyd/config.ethernet
+share/examples/honeyd/config.sample
+share/examples/honeyd/nmap.assoc
+share/examples/honeyd/nmap.prints
+share/examples/honeyd/pf.os
+share/examples/honeyd/xprobe2.conf
+@dirrm share/examples/honeyd
+@dirrm lib/honeyd
+@dirrm include/honeyd
diff --git a/security/honeyd/distinfo b/security/honeyd/distinfo
new file mode 100644
index 00000000000..c95e9121621
--- /dev/null
+++ b/security/honeyd/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/04/20 09:14:43 xtraeme Exp $
+
+SHA1 (honeyd-0.8b.tar.gz) = fe8054847b98003d52ec50a8376e51a9f76d41e5
+Size (honeyd-0.8b.tar.gz) = 523808 bytes
+SHA1 (patch-aa) = 8f6330238715a19951731372f70fefcea85e5df9
diff --git a/security/honeyd/files/honeyd.sh b/security/honeyd/files/honeyd.sh
new file mode 100644
index 00000000000..44be1af9a19
--- /dev/null
+++ b/security/honeyd/files/honeyd.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: honeyd.sh,v 1.1.1.1 2004/04/20 09:14:43 xtraeme Exp $
+#
+
+# PROVIDE: honeyd
+# REQUIRE: DAEMON
+# AFTER: honeydarpd
+
+. /etc/rc.subr
+
+name="honeyd"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/security/honeyd/patches/patch-aa b/security/honeyd/patches/patch-aa
new file mode 100644
index 00000000000..74ca3dbd5c6
--- /dev/null
+++ b/security/honeyd/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/04/20 09:14:43 xtraeme Exp $
+
+--- Makefile.in.orig 2004-04-20 11:00:09.000000000 +0200
++++ Makefile.in 2004-04-20 11:01:05.000000000 +0200
+@@ -109,10 +109,10 @@
+ libhoneyd_DATA = libhoneyd.so
+
+ # Configuration files for Honeyd
+-honeyddatadir = $(datadir)/honeyd
++honeyddatadir = $(datadir)/examples/honeyd
+ honeydlibdir = $(libdir)/honeyd
+ honeydincludedir = $(includedir)/honeyd
+-honeyddata_DATA = README nmap.assoc xprobe2.conf nmap.prints config.sample config.ethernet pf.os
++honeyddata_DATA = nmap.assoc xprobe2.conf nmap.prints config.sample config.ethernet pf.os
+
+
+ honeydplugins = @PLUGINS@
+@@ -146,7 +146,7 @@
+ honeydctl_INCLUDES = @EDITINC@
+ honeydctl_CFLAGS = -O2 -Wall
+
+-CFLAGS = -O2 -Wall -g -DPATH_HONEYDINCLUDE="\"$(honeydincludedir)\"" -DPATH_HONEYDDATA="\"$(honeyddatadir)\"" -DPATH_HONEYDLIB="\"$(honeydlibdir)\"" -DHONEYD_PLUGINS_DECLARE="$(honeydpluginsdeclare)" -DHONEYD_PLUGINS="$(honeydplugins)"
++CFLAGS += -DPATH_HONEYDINCLUDE="\"$(honeydincludedir)\"" -DPATH_HONEYDDATA="\"$(sysconfdir)\"" -DPATH_HONEYDLIB="\"$(honeydlibdir)\"" -DHONEYD_PLUGINS_DECLARE="$(honeydpluginsdeclare)" -DHONEYD_PLUGINS="$(honeydplugins)"
+
+
+ INCLUDES = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat @PYTHONINC@ @EVENTINC@ @PCAPINC@ @DNETINC@