diff options
author | Petre Rodan <kaiowas@gentoo.org> | 2005-09-09 20:27:25 +0000 |
---|---|---|
committer | Petre Rodan <kaiowas@gentoo.org> | 2005-09-09 20:27:25 +0000 |
commit | 262c9c2b7acf92d479acb9c5fdd122fb449c23fa (patch) | |
tree | 90ba5c8aa269ee956235ae60876a8a871b261691 /net-analyzer/nepenthes/files | |
parent | new development release, pulling the old one (diff) | |
download | gentoo-2-262c9c2b7acf92d479acb9c5fdd122fb449c23fa.tar.gz gentoo-2-262c9c2b7acf92d479acb9c5fdd122fb449c23fa.tar.bz2 gentoo-2-262c9c2b7acf92d479acb9c5fdd122fb449c23fa.zip |
initial commit
(Portage version: 2.0.52-r1)
Diffstat (limited to 'net-analyzer/nepenthes/files')
-rw-r--r-- | net-analyzer/nepenthes/files/digest-nepenthes-0.1.1 | 1 | ||||
-rw-r--r-- | net-analyzer/nepenthes/files/magic.patch | 12 | ||||
-rw-r--r-- | net-analyzer/nepenthes/files/nepenthes.confd | 5 | ||||
-rw-r--r-- | net-analyzer/nepenthes/files/nepenthes.initd | 21 |
4 files changed, 39 insertions, 0 deletions
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 $? +} + |