summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2005-11-30 10:12:29 +0000
committerChris White <chriswhite@gentoo.org>2005-11-30 10:12:29 +0000
commit39b02842acda66dfe551bdaedcc6567c32c82859 (patch)
tree3e7a7b83af17dd31c5485b54aa5d3078aae87381
parent*** empty log message *** (diff)
downloadhistorical-39b02842acda66dfe551bdaedcc6567c32c82859.tar.gz
historical-39b02842acda66dfe551bdaedcc6567c32c82859.tar.bz2
historical-39b02842acda66dfe551bdaedcc6567c32c82859.zip
-rw-r--r--net-analyzer/admlogger/Manifest3
-rw-r--r--net-analyzer/admlogger/admlogger-11.ebuild41
-rw-r--r--net-analyzer/admlogger/files/admlogger-11-makefile.patch62
-rw-r--r--net-analyzer/admlogger/files/digest-admlogger-111
-rw-r--r--net-analyzer/admlogger_ebuild.tar.bz2bin0 -> 1891 bytes
-rw-r--r--net-analyzer/mwcollect/files/digest-mwcollect-3.0.01
-rw-r--r--net-analyzer/mwcollect/files/mwcollect-3.0.0-capacity.patch11
-rw-r--r--net-analyzer/mwcollect/mwcollect-3.0.0.ebuild64
8 files changed, 183 insertions, 0 deletions
diff --git a/net-analyzer/admlogger/Manifest b/net-analyzer/admlogger/Manifest
new file mode 100644
index 000000000000..6fd186f10603
--- /dev/null
+++ b/net-analyzer/admlogger/Manifest
@@ -0,0 +1,3 @@
+MD5 1d8c84af62fe74de356951d817182162 admlogger-11.ebuild 867
+MD5 d9ef278d645c750ed5070f88611ff1f9 files/admlogger-11-makefile.patch 3264
+MD5 0fe085e9bf4e664340103fef4e931732 files/digest-admlogger-11 60
diff --git a/net-analyzer/admlogger/admlogger-11.ebuild b/net-analyzer/admlogger/admlogger-11.ebuild
new file mode 100644
index 000000000000..ab588145c6f0
--- /dev/null
+++ b/net-analyzer/admlogger/admlogger-11.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/admlogger/admlogger-11.ebuild,v 1.1.1.1 2005/11/30 10:12:21 chriswhite Exp $
+
+inherit eutils
+
+DESCRIPTION="a log analyzing engine based on fireparse."
+HOMEPAGE="http://aaron.marasco.com/linux.html"
+SRC_URI="http://aaron.marasco.com/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="dhcp pureftp logrotate"
+
+DEPEND="dev-lang/perl
+ virtual/mta
+ pureftp? (net-ftp/pure-ftpd)
+ dhcp? (net-misc/dhcp)
+ logrotate? (app-admin/logrotate)"
+RDEPEND=""
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch ${FILESDIR}/${P}-makefile.patch
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ chmod a+x pconfig.pl
+ make DESTDIR=${D} admlogger
+ make DESTDIR=${D} fireparse
+ use dhcp && make DESTDIR=${D} dhcp
+ use logrotate && make DESTDIR=${D} logrotate
+ use pureftp && make DESTDIR=${D} pureftp
+}
diff --git a/net-analyzer/admlogger/files/admlogger-11-makefile.patch b/net-analyzer/admlogger/files/admlogger-11-makefile.patch
new file mode 100644
index 000000000000..d10c209a55a0
--- /dev/null
+++ b/net-analyzer/admlogger/files/admlogger-11-makefile.patch
@@ -0,0 +1,62 @@
+--- Makefile.old 2005-09-15 16:54:47.000000000 +0900
++++ Makefile 2005-09-15 16:58:41.000000000 +0900
+@@ -53,20 +53,20 @@
+ test -e logger_v.pc || cp logger.pc logger_v.pc
+ ./pconfig.pl logger.pc
+ echo 'Making /var/adm/logger and subdirectories...'
+- test -d /var/adm/logger/doc || $(INSTALL) -d /var/adm/logger/doc
+- test -d /var/adm/logger/handlers || $(INSTALL) -d /var/adm/logger/handlers
+- test -d /var/adm/logger/plugins || $(INSTALL) -d /var/adm/logger/plugins
++ $(INSTALL) -d ${DESTDIR}/var/adm/logger/doc
++ $(INSTALL) -d ${DESTDIR}/var/adm/logger/handlers
++ $(INSTALL) -d ${DESTDIR}/var/adm/logger/plugins
+ echo 'Copying files...'
+- $(INSTALL_OP) logger.pl /var/adm/logger/
+- chmod u+x /var/adm/logger/logger.pl
+- cd doc ; $(INSTALL_OP) README.ADMLogger LICENSE /var/adm/logger/doc/
+- cd handlers ; $(INSTALL_OP) ADMLogHandler.* ADMMailHandler.* ADMNetHandler.* /var/adm/logger/handlers/
++ $(INSTALL_OP) logger.pl ${DESTDIR}/var/adm/logger/
++ chmod u+x ${DESTDIR}/var/adm/logger/logger.pl
++ cd doc ; $(INSTALL_OP) README.ADMLogger LICENSE ${DESTDIR}/var/adm/logger/doc/
++ cd handlers ; $(INSTALL_OP) ADMLogHandler.* ADMMailHandler.* ADMNetHandler.* ${DESTDIR}/var/adm/logger/handlers/
+ echo 'Automated installation complete... be sure to check README.ADMLogger for more instructions!'
+
+ fireparse:
+ # If you are writing your own plugin, I suggest cut and paste from this IF YOU USE PCONFIG.
+ echo -n Checking if admlogger is installed...
+- test -x /var/adm/logger/logger.pl || exit 1
++ test -x ${DESTDIR}/var/adm/logger/logger.pl || exit 1
+ echo ' success!'
+ echo -n 'Checking for source file fireparse.pc (if it does not exist, try "make clean")...'
+ test -e ./plugins/fireparse.pc || exit 2
+@@ -75,23 +75,23 @@
+ cd plugins ; ../pconfig.pl fireparse.pc
+ echo 'Copying files...'
+ # Don't overwrite /etc/services.fake if it exists! (Previous fireparse users)
+- test -e /etc/services.fake || $(INSTALL_OP) services.fake /var/adm/logger/
+- cd doc ; $(INSTALL_OP) README.$@ /var/adm/logger/doc/
+- cd plugins ; $(INSTALL_OP) $@.pm /var/adm/logger/plugins/
++ $(INSTALL_OP) services.fake ${DESTDIR}/var/adm/logger/
++ cd doc ; $(INSTALL_OP) README.$@ ${DESTDIR}/var/adm/logger/doc/
++ cd plugins ; $(INSTALL_OP) $@.pm ${DESTDIR}/var/adm/logger/plugins/
+ echo 'Automated installation complete... be sure to check README.fireparse for more instructions!'
+
+ dhcpd pam_unix pureftp zcleanup:
+ # If you are writing your own plugin, I suggest cut and paste from this IF YOU DO NOT USE PCONFIG.
+ echo -n Checking if admlogger is installed...
+- test -x /var/adm/logger/logger.pl || exit 1
++ test -x ${DESTDIR}/var/adm/logger/logger.pl || exit 1
+ echo ' success!'
+ echo -n 'Checking for source file...'
+ test -e ./plugins/$@.pm || exit 2
+ echo ' success!'
+ echo 'Copying files...'
+- cd doc ; $(INSTALL_OP) README.$@ /var/adm/logger/doc/
+- cd plugins ; $(INSTALL_OP) $@.pm /var/adm/logger/plugins/
++ cd doc ; $(INSTALL_OP) README.$@ ${DESTDIR}/var/adm/logger/doc/
++ cd plugins ; $(INSTALL_OP) $@.pm ${DESTDIR}/var/adm/logger/plugins/
+ echo Automated installation complete... be sure to check README.$@ for more instructions.
+
+ logrotate:
+- $(INSTALL) -v admlogger.rotate /etc/logrotate.d/
++ $(INSTALL) -v admlogger.rotate ${DESTDIR}/etc/logrotate.d/
diff --git a/net-analyzer/admlogger/files/digest-admlogger-11 b/net-analyzer/admlogger/files/digest-admlogger-11
new file mode 100644
index 000000000000..c97deda4f38c
--- /dev/null
+++ b/net-analyzer/admlogger/files/digest-admlogger-11
@@ -0,0 +1 @@
+MD5 a1365120dcce7d9933674e5f260e7b50 admlogger-11.tgz 40391
diff --git a/net-analyzer/admlogger_ebuild.tar.bz2 b/net-analyzer/admlogger_ebuild.tar.bz2
new file mode 100644
index 000000000000..bc23838f9fa9
--- /dev/null
+++ b/net-analyzer/admlogger_ebuild.tar.bz2
Binary files differ
diff --git a/net-analyzer/mwcollect/files/digest-mwcollect-3.0.0 b/net-analyzer/mwcollect/files/digest-mwcollect-3.0.0
new file mode 100644
index 000000000000..4c6eec4c16b3
--- /dev/null
+++ b/net-analyzer/mwcollect/files/digest-mwcollect-3.0.0
@@ -0,0 +1 @@
+MD5 e36833c7f9da5e485c235eb9de266444 mwcollect-3.0.0.tar.bz2 53294
diff --git a/net-analyzer/mwcollect/files/mwcollect-3.0.0-capacity.patch b/net-analyzer/mwcollect/files/mwcollect-3.0.0-capacity.patch
new file mode 100644
index 000000000000..880f14fbd601
--- /dev/null
+++ b/net-analyzer/mwcollect/files/mwcollect-3.0.0-capacity.patch
@@ -0,0 +1,11 @@
+--- src/core/mwcollect.cpp.old 2005-11-01 01:51:39.000000000 +0900
++++ src/core/mwcollect.cpp 2005-11-01 01:51:52.000000000 +0900
+@@ -284,7 +284,7 @@
+ #ifdef LINUX_FLAVOURED
+ { // we still may need to bind ports < 1024 / create raw sockets
+ cap_t capCapabilities = cap_init();
+- cap_value_t cvValues[] = { CAP_NET_RAW, CAP_NET_BIND_SERVICE, };
++ cap_value_t cvValues[] = { CAP_NET_RAW, CAP_NET_BIND_SERVICE, CAP_SETUID, };
+
+ cap_set_flag(capCapabilities, CAP_PERMITTED, sizeof(cvValues) / sizeof(cap_value_t), cvValues, CAP_SET);
+ cap_set_flag(capCapabilities, CAP_INHERITABLE, sizeof(cvValues) / sizeof(cap_value_t), cvValues, CAP_SET);
diff --git a/net-analyzer/mwcollect/mwcollect-3.0.0.ebuild b/net-analyzer/mwcollect/mwcollect-3.0.0.ebuild
new file mode 100644
index 000000000000..41bc69b39fe5
--- /dev/null
+++ b/net-analyzer/mwcollect/mwcollect-3.0.0.ebuild
@@ -0,0 +1,64 @@
+# 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-3.0.0.ebuild,v 1.1.1.1 2005/11/30 10:12:29 chriswhite Exp $
+
+inherit eutils
+
+DESCRIPTION="mwcollect collects worms and other autonomous spreading malware"
+HOMEPAGE="http://www.mwcollect.org/"
+SRC_URI="http://download.mwcollect.org/${P}.tar.bz2"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="debug"
+
+DEPEND="dev-libs/libpcre
+ net-misc/curl
+ >=sys-libs/libcap-1"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i \
+ -e "s:CXXFLAGS += -I./src/include:CXXFLAGS += ${CXXFLAGS} -I./src/include:" \
+ Makefile || die "custom CFLAGS patching failed"
+
+ sed -i \
+ -e "s:\$(MODULE_OBJ) \$(LDFLAGS):\$(MODULE_OBJ) \$(LDFLAGS) -fPIC:" \
+ Makefile.MODULE || die "pic patching failed"
+
+ sed -i \
+ -e "s:%loadModule(\":%loadModule(\"\/usr\/lib\/mwcollect\/:g" \
+ conf/mwcollect.conf || die "module load directory failed"
+
+ # sets CAP_SETUID for setresuid
+ epatch "${FILESDIR}"/${P}-capacity.patch
+}
+
+src_compile() {
+ if use debug
+ then
+ emake DEBUG="y" || die "Make failed"
+ else
+ emake || die "Make failed"
+ fi
+}
+
+src_install() {
+ dosbin bin/mwcollectd
+ insinto /usr/$(get_libdir)/mwcollect
+ doins bin/modules/*
+
+ insinto /etc/mwcollect
+ doins conf/* \
+ || die "config file installation failed"
+
+ dodoc README* doc/core-design.txt
+ mv doc/mwcollectd.1.man doc/mwcollectd.1
+ doman doc/mwcollectd.1
+
+ newinitd ${FILESDIR}/initd mwcollectd
+ insinto /etc/conf.d
+ newins ${FILESDIR}/confd mwcollectd
+}