--- /dev/null
+# 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
+
--- /dev/null
+-----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-----
--- /dev/null
+MD5 bcbdc00daf0f304ba2f0df1d32f0d8d0 nepenthes-0.1.1.tar.bz2 431092
--- /dev/null
+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;
--- /dev/null
+# Config file for /etc/init.d/nepenthes
+
+# Set preferred options here
+NEPENTHES_OPTS="--user nepenthes --group nepenthes"
+
--- /dev/null
+#!/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 $?
+}
+
--- /dev/null
+<?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>
+
--- /dev/null
+# 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
+
+}
+