summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetre Rodan <kaiowas@gentoo.org>2005-09-09 20:27:25 +0000
committerPetre Rodan <kaiowas@gentoo.org>2005-09-09 20:27:25 +0000
commitb3788a420c27c06283ced7f6b19e6b440c29aa3f (patch)
tree4eb31052a475df5224855afe835b472434057709 /net-analyzer/nepenthes
parentnew development release, pulling the old one (diff)
downloadhistorical-b3788a420c27c06283ced7f6b19e6b440c29aa3f.tar.gz
historical-b3788a420c27c06283ced7f6b19e6b440c29aa3f.tar.bz2
historical-b3788a420c27c06283ced7f6b19e6b440c29aa3f.zip
initial commit
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'net-analyzer/nepenthes')
-rw-r--r--net-analyzer/nepenthes/ChangeLog11
-rw-r--r--net-analyzer/nepenthes/Manifest17
-rw-r--r--net-analyzer/nepenthes/files/digest-nepenthes-0.1.11
-rw-r--r--net-analyzer/nepenthes/files/magic.patch12
-rw-r--r--net-analyzer/nepenthes/files/nepenthes.confd5
-rw-r--r--net-analyzer/nepenthes/files/nepenthes.initd21
-rw-r--r--net-analyzer/nepenthes/metadata.xml12
-rw-r--r--net-analyzer/nepenthes/nepenthes-0.1.1.ebuild69
8 files changed, 148 insertions, 0 deletions
diff --git a/net-analyzer/nepenthes/ChangeLog b/net-analyzer/nepenthes/ChangeLog
new file mode 100644
index 000000000000..ae8b4a7d989d
--- /dev/null
+++ b/net-analyzer/nepenthes/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-analyzer/nepenthes
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nepenthes/ChangeLog,v 1.1 2005/09/09 20:27:25 kaiowas Exp $
+
+*nepenthes-0.1.1 (09 Sep 2005)
+
+ 09 Sep 2005; petre rodan <kaiowas@gentoo.org> +files/magic.patch,
+ +files/nepenthes.confd, +files/nepenthes.initd, +metadata.xml,
+ +nepenthes-0.1.1.ebuild:
+ initial commit
+
diff --git a/net-analyzer/nepenthes/Manifest b/net-analyzer/nepenthes/Manifest
new file mode 100644
index 000000000000..7ac75a1da504
--- /dev/null
+++ b/net-analyzer/nepenthes/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 bc2476e992e7c4210c018ecd2f3603f2 metadata.xml 381
+MD5 01b4875d75bfe246ad16d3c8fde97f23 ChangeLog 428
+MD5 5c937dbc7f597effd30fdba0983e668d nepenthes-0.1.1.ebuild 1947
+MD5 1f59aae5e0641b494e1ce286b9f2a341 files/digest-nepenthes-0.1.1 68
+MD5 9f779f5117afae2b26f1e4fbff55ff4b files/nepenthes.confd 123
+MD5 1c20696c1b6d548688b9a9db60ad74c8 files/nepenthes.initd 538
+MD5 a8d80c4c2501a34c72e31e2a5315c014 files/magic.patch 694
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFDIdP6GSBEIeh4AEYRAqErAJ9bUy0K1kvbdH6T6k9Py8k5c3AIPgCfUtnp
+qOoljsZ/gx42xwvRXhrThe4=
+=hBIJ
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/nepenthes/files/digest-nepenthes-0.1.1 b/net-analyzer/nepenthes/files/digest-nepenthes-0.1.1
new file mode 100644
index 000000000000..48435ff5ad9e
--- /dev/null
+++ b/net-analyzer/nepenthes/files/digest-nepenthes-0.1.1
@@ -0,0 +1 @@
+MD5 bcbdc00daf0f304ba2f0df1d32f0d8d0 nepenthes-0.1.1.tar.bz2 431092
diff --git a/net-analyzer/nepenthes/files/magic.patch b/net-analyzer/nepenthes/files/magic.patch
new file mode 100644
index 000000000000..956d93cdf1e0
--- /dev/null
+++ b/net-analyzer/nepenthes/files/magic.patch
@@ -0,0 +1,12 @@
+diff -Naur nepenthes-0.1.1.orig/nepenthes-core/src/SubmitManager.cpp nepenthes-0.1.1/nepenthes-core/src/SubmitManager.cpp
+--- nepenthes-0.1.1.orig/nepenthes-core/src/SubmitManager.cpp 2005-08-27 23:57:40.000000000 +0200
++++ nepenthes-0.1.1/nepenthes-core/src/SubmitManager.cpp 2005-09-07 12:43:00.000000000 +0200
+@@ -170,7 +170,7 @@
+ logInfo("File %s has type %s \n",down->getMD5Sum().c_str(),filetype);
+ if ( filetype != NULL )
+ {
+- if (strstr(filetype,"MS-DOS executable") == NULL && m_StrictFileType == true )
++ if (strstr(filetype,"executable") == NULL && m_StrictFileType == true )
+ {
+ logWarn("dropping file %s as it is not executable\n",down->getMD5Sum().c_str());
+ return;
diff --git a/net-analyzer/nepenthes/files/nepenthes.confd b/net-analyzer/nepenthes/files/nepenthes.confd
new file mode 100644
index 000000000000..d5ccb515940f
--- /dev/null
+++ b/net-analyzer/nepenthes/files/nepenthes.confd
@@ -0,0 +1,5 @@
+# Config file for /etc/init.d/nepenthes
+
+# Set preferred options here
+NEPENTHES_OPTS="--user nepenthes --group nepenthes"
+
diff --git a/net-analyzer/nepenthes/files/nepenthes.initd b/net-analyzer/nepenthes/files/nepenthes.initd
new file mode 100644
index 000000000000..6bb418fb419d
--- /dev/null
+++ b/net-analyzer/nepenthes/files/nepenthes.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nepenthes/files/nepenthes.initd,v 1.1 2005/09/09 20:27:25 kaiowas Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting nepenthes"
+ start-stop-daemon --start --quiet --background --exec /usr/sbin/nepenthes -- ${NEPENTHES_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nepenthes"
+ start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/nepenthes
+ eend $?
+}
+
diff --git a/net-analyzer/nepenthes/metadata.xml b/net-analyzer/nepenthes/metadata.xml
new file mode 100644
index 000000000000..9cebce1ffdaa
--- /dev/null
+++ b/net-analyzer/nepenthes/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd></herd>
+<maintainer>
+<email>kaiowas@gentoo.org</email>
+<name>Petre Rodan</name>
+</maintainer>
+<longdescription lang="en">Nepenthes is a low interaction honeypot that captures worms by emulating known vulnerabilities
+</longdescription>
+</pkgmetadata>
+
diff --git a/net-analyzer/nepenthes/nepenthes-0.1.1.ebuild b/net-analyzer/nepenthes/nepenthes-0.1.1.ebuild
new file mode 100644
index 000000000000..065f7f019f49
--- /dev/null
+++ b/net-analyzer/nepenthes/nepenthes-0.1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nepenthes/nepenthes-0.1.1.ebuild,v 1.1 2005/09/09 20:27:25 kaiowas Exp $
+
+inherit eutils
+
+DESCRIPTION="Nepenthes is a low interaction honeypot that captures worms by emulating known vulnerabilities"
+HOMEPAGE="http://nepenthes.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="selinux"
+
+DEPEND="net-misc/curl
+ sys-apps/file
+ dev-libs/libpcre
+ net-libs/adns"
+
+RDEPEND=""
+#RDEPEND=" selinux? ( sec-policy/selinux-nepenthes )"
+
+pkg_setup() {
+ enewgroup nepenthes
+ enewuser nepenthes -1 -1 /dev/null nepenthes
+}
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+
+ # patched as per sf tracker
+ epatch ${FILESDIR}/magic.patch || die
+
+ sed -i 's|var/log/nepenthes.log|/var/log/nepenthes/nepenthes.log|' "${S}/nepenthes-core/src/Nepenthes.cpp"
+ sed -i 's|var/log/hexdumps/|/var/lib/nepenthes/hexdumps/|' "${S}/nepenthes-core/src/Utilities.cpp"
+}
+
+src_compile() {
+ econf --sysconfdir=/etc/nepenthes --localstatedir=/var/lib/nepenthes || die
+ emake || die "make failed"
+}
+
+src_install() {
+ dodoc doc/README doc/README.VFS AUTHORS
+ dosbin nepenthes-core/src/nepenthes || die "dosbin failed"
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ for i in ${D}/etc/nepenthes/*; do
+ sed -i 's|"var/binaries|"/var/lib/nepenthes/binaries|;s|"var/log|"/var/log/nepenthes|;s|"lib/nepenthes|"/usr/lib/nepenthes|;s|"etc|"/etc/nepenthes|' $i
+ done
+
+ rm ${D}/usr/bin/nepenthes
+ rm ${D}/usr/share/doc/README
+ rm ${D}/usr/share/doc/README.VFS
+ rm ${D}/usr/share/doc/logo-shaded.svg
+
+ newinitd ${FILESDIR}/${PN}.initd ${PN} || die
+ newconfd ${FILESDIR}/${PN}.confd ${PN} || die
+
+ diropts -m 755 -o nepenthes -g nepenthes
+ keepdir /var/log/nepenthes
+ keepdir /var/lib/nepenthes
+ keepdir /var/lib/nepenthes/binaries
+ keepdir /var/lib/nepenthes/hexdumps
+
+}
+