diff options
author | Chris White <chriswhite@gentoo.org> | 2005-06-17 02:48:52 +0000 |
---|---|---|
committer | Chris White <chriswhite@gentoo.org> | 2005-06-17 02:48:52 +0000 |
commit | 86943aa140064c6b8d2a3efa727037e106ae9574 (patch) | |
tree | 28018ee716a26f4b3ce07e2647ed2269f926d4ca /net-analyzer/mwcollect | |
parent | Version bump. (diff) | |
download | gentoo-2-86943aa140064c6b8d2a3efa727037e106ae9574.tar.gz gentoo-2-86943aa140064c6b8d2a3efa727037e106ae9574.tar.bz2 gentoo-2-86943aa140064c6b8d2a3efa727037e106ae9574.zip |
Initial import into the tree. This closes bug #94336. Thanks to Tomoyuki Sakurai for the initial ebuild.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-analyzer/mwcollect')
-rw-r--r-- | net-analyzer/mwcollect/ChangeLog | 11 | ||||
-rw-r--r-- | net-analyzer/mwcollect/Manifest | 5 | ||||
-rw-r--r-- | net-analyzer/mwcollect/files/confd | 29 | ||||
-rw-r--r-- | net-analyzer/mwcollect/files/digest-mwcollect-2.1.0 | 1 | ||||
-rw-r--r-- | net-analyzer/mwcollect/files/initd | 36 | ||||
-rw-r--r-- | net-analyzer/mwcollect/metadata.xml | 14 | ||||
-rw-r--r-- | net-analyzer/mwcollect/mwcollect-2.1.0.ebuild | 50 |
7 files changed, 146 insertions, 0 deletions
diff --git a/net-analyzer/mwcollect/ChangeLog b/net-analyzer/mwcollect/ChangeLog new file mode 100644 index 000000000000..8beeb8b12fe4 --- /dev/null +++ b/net-analyzer/mwcollect/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-analyzer/mwcollect +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mwcollect/ChangeLog,v 1.1 2005/06/17 02:48:52 chriswhite Exp $ + +*mwcollect-2.1.0 (17 Jun 2005) + + 17 Jun 2005; Chris White <chriswhite@gentoo.org> +files/confd, + +files/initd, +metadata.xml, +mwcollect-2.1.0.ebuild: + Initial import into the tree. This closes bug #94336. Thanks to Tomoyuki + Sakurai for the initial ebuild. + diff --git a/net-analyzer/mwcollect/Manifest b/net-analyzer/mwcollect/Manifest new file mode 100644 index 000000000000..83a803b85b85 --- /dev/null +++ b/net-analyzer/mwcollect/Manifest @@ -0,0 +1,5 @@ +MD5 314372ad9b42706d30bbc21d5ea535fb mwcollect-2.1.0.ebuild 1138 +MD5 8fc79d7bb0d8a75830b8aa40bdbe9a2a .mwcollect-2.1.0.ebuild.swp 12288 +MD5 4ed65c3d34968a58036df1fd8f729808 files/confd 1164 +MD5 74e0b4bdc8a808fc003c6012de634c5d files/initd 873 +MD5 55d7fce54ad5e7342a076f413f5527a0 files/digest-mwcollect-2.1.0 66 diff --git a/net-analyzer/mwcollect/files/confd b/net-analyzer/mwcollect/files/confd new file mode 100644 index 000000000000..4159b6ad924a --- /dev/null +++ b/net-analyzer/mwcollect/files/confd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# +# options for mwcollectd +# +# Usage: /usr/sbin/mwcollectd [options] +# Where options can be one of the following: +# -c <config-file> specify config file (defaults to /etc/mwcollectd.conf) +# -l <log-file> add log file +# -C add console logger +# -L <log-level> specify log level, inital is 3 +# -D detach from console +# -h display this info +# +# Example: +# /usr/sbin/mwcollectd -L critical -C -L info -l /var/log/mwcollectd.log -c /etc/mwcollectd.conf + +OPTIONS="-D -p /var/run/mwcollectd.pid -c /etc/mwcollect/mwcollectd.conf" + +# NOTE: DO NOT specify "-D", because mwcollectd does not create its pid file +# This way, start-stop-daemon makes it background and is able to create the +# pid file under /var/run + +# example: add log file +# OPTIONS="$OPTIONS -l /var/log/mwcollect.log -L 3" + +# see http://www.mwcollect.org/wiki/DocConfiguration for +# more info, which is currently empty, though diff --git a/net-analyzer/mwcollect/files/digest-mwcollect-2.1.0 b/net-analyzer/mwcollect/files/digest-mwcollect-2.1.0 new file mode 100644 index 000000000000..daa9cd342bc7 --- /dev/null +++ b/net-analyzer/mwcollect/files/digest-mwcollect-2.1.0 @@ -0,0 +1 @@ +MD5 7c277cf1c627130134b8e0d426a0957c mwcollect2.1.0.tar.bz2 36275 diff --git a/net-analyzer/mwcollect/files/initd b/net-analyzer/mwcollect/files/initd new file mode 100644 index 000000000000..03e2598ffb40 --- /dev/null +++ b/net-analyzer/mwcollect/files/initd @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +opts="depend checkconfig start stop" + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/mwcollect/mwcollectd.conf ] ; then + eerror "You need to create /etc/mwcollect/mwcollectd.conf first." + eerror "An example can be found in /etc/mwcollect/mwcollectd.conf.dist" + return 1 + fi +} + +start() { + ebegin "Starting mwcollectd" + # HACK: making mwcollectd background with --background + # mwcollectd should have created its pid file + checkconfig && \ + start-stop-daemon --start --quiet \ + --exec /usr/sbin/mwcollectd -- ${OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping mwcollectd" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/mwcollectd.pid \ + --exec /usr/sbin/mwcollectd && rm /var/run/mwcollectd.pid + eend $? +} + diff --git a/net-analyzer/mwcollect/metadata.xml b/net-analyzer/mwcollect/metadata.xml new file mode 100644 index 000000000000..77d91661fee0 --- /dev/null +++ b/net-analyzer/mwcollect/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>chriswhite</herd> +<maintainer> +<email>chriswhite@gentoo.org</email> +<name>Chris White</name> +</maintainer> +<longdescription lang="en"> +mwcollect is an easy solution to collect worms and other autonomous spreading +malware in a non-native environment like FreeBSD or Linux. +</longdescription> +</pkgmetadata> + diff --git a/net-analyzer/mwcollect/mwcollect-2.1.0.ebuild b/net-analyzer/mwcollect/mwcollect-2.1.0.ebuild new file mode 100644 index 000000000000..dc5095ab0fae --- /dev/null +++ b/net-analyzer/mwcollect/mwcollect-2.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mwcollect/mwcollect-2.1.0.ebuild,v 1.1 2005/06/17 02:48:52 chriswhite Exp $ + +DESCRIPTION="mwcollect collects worms and other autonomous spreading malware" +HOMEPAGE="http://www.mwcollect.org/" +MY_PV="2.1.0" +MY_P=${PN}${MY_PV} +S="${WORKDIR}/${MY_P}" +SRC_URI="http://download.mwcollect.org/${MY_P}.tar.bz2" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="dev-libs/libpcre + net-misc/curl" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd ${S} + sed -i \ + -e "s:CXXFLAGS = .*:CXXFLAGS = ${CXXFLAGS} -D LINUX -D_GNU_SOURCE -g -Wall:" \ + Makefile.LINUX || die "CFLAGS patching failed" +} + +src_compile() { + emake -f Makefile.LINUX || die "emake failed" +} + +src_install() { + dosbin bin/mwcollectd + insinto /usr/$(get_libdir)/mwcollect + doins bin/modules/* + + sed -e "s#\./bin/modules#/usr/$(get_libdir)/mwcollect#g" \ + mwcollectd.conf.dist > mwcollectd.conf.gentoo \ + || die "sed failed" + + insinto /etc/mwcollect + doins mwcollectd.conf.gentoo \ + || die "newins mwcollectd.conf failed" + + dodoc README* + + newinitd ${FILESDIR}/initd mwcollectd + insinto /etc/conf.d + newins ${FILESDIR}/confd mwcollectd +} |