summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Russell Reese III <anti@gentoo.org>2004-02-08 19:26:36 +0000
committerRay Russell Reese III <anti@gentoo.org>2004-02-08 19:26:36 +0000
commit6b650339486175914d83295e330c24b63ed0fbee (patch)
tree0310554c0aff4dfca022de0be779860db9c15c1f /net-analyzer
parentMarking x86. Fixes lots of issues like SMP, module-init-tools, etc (diff)
downloadhistorical-6b650339486175914d83295e330c24b63ed0fbee.tar.gz
historical-6b650339486175914d83295e330c24b63ed0fbee.tar.bz2
historical-6b650339486175914d83295e330c24b63ed0fbee.zip
Initial Import
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/rtg/ChangeLog9
-rw-r--r--net-analyzer/rtg/Manifest5
-rw-r--r--net-analyzer/rtg/files/digest-rtg-0.7.41
-rw-r--r--net-analyzer/rtg/files/rtg-0.7.4-pathfix.patch91
-rw-r--r--net-analyzer/rtg/metadata.xml9
-rw-r--r--net-analyzer/rtg/rtg-0.7.4.ebuild44
6 files changed, 159 insertions, 0 deletions
diff --git a/net-analyzer/rtg/ChangeLog b/net-analyzer/rtg/ChangeLog
new file mode 100644
index 000000000000..5d5ba181671f
--- /dev/null
+++ b/net-analyzer/rtg/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/rtg
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rtg/ChangeLog,v 1.1 2004/02/08 19:26:36 anti Exp $
+
+*rtg-0.7.4 (08 Feb 2004)
+
+ 08 Feb 2004; Ray Russell Reese III <anti@gentoo.org> rtg-0.7.4.ebuild:
+ Initial import
+
diff --git a/net-analyzer/rtg/Manifest b/net-analyzer/rtg/Manifest
new file mode 100644
index 000000000000..a25761e64c70
--- /dev/null
+++ b/net-analyzer/rtg/Manifest
@@ -0,0 +1,5 @@
+MD5 71f4f7b1124310624cfc683ab4a6df70 rtg-0.7.4.ebuild 966
+MD5 e25c84fd1a2a0c0e81cacb709f6cbbbe metadata.xml 260
+MD5 b8a8f10cad216b0f3eaa8c86954ee42d ChangeLog 242
+MD5 6692acdf355eb282398b0e09eee80d02 files/digest-rtg-0.7.4 61
+MD5 95d2926c7d784e64b502842c3d3597b5 files/rtg-0.7.4-pathfix.patch 4074
diff --git a/net-analyzer/rtg/files/digest-rtg-0.7.4 b/net-analyzer/rtg/files/digest-rtg-0.7.4
new file mode 100644
index 000000000000..fd1fc2b8a83e
--- /dev/null
+++ b/net-analyzer/rtg/files/digest-rtg-0.7.4
@@ -0,0 +1 @@
+MD5 c61ff1323701e2771bb5ff9cf67f1b77 rtg-0.7.4.tar.gz 710621
diff --git a/net-analyzer/rtg/files/rtg-0.7.4-pathfix.patch b/net-analyzer/rtg/files/rtg-0.7.4-pathfix.patch
new file mode 100644
index 000000000000..ad7001a64e84
--- /dev/null
+++ b/net-analyzer/rtg/files/rtg-0.7.4-pathfix.patch
@@ -0,0 +1,91 @@
+diff -ruN ./rtg-0.7.4.orig/contrib/Makefile.in ./rtg-0.7.4/contrib/Makefile.in
+--- ./rtg-0.7.4.orig/contrib/Makefile.in 2004-02-08 13:52:20.361020339 -0500
++++ ./rtg-0.7.4/contrib/Makefile.in 2004-02-08 13:52:33.854805146 -0500
+@@ -80,7 +80,7 @@
+ am__quote = @am__quote@
+ install_sh = @install_sh@
+
+-contribdir = $(prefix)/contrib
++contribdir = $(datadir)/rtg/contrib
+ contrib_DATA = README rtgtargmkr-with-modules-0.2.tar.gz
+ EXTRA_DIST = $(contrib_DATA)
+ subdir = contrib
+diff -ruN ./rtg-0.7.4.orig/etc/Makefile.in ./rtg-0.7.4/etc/Makefile.in
+--- ./rtg-0.7.4.orig/etc/Makefile.in 2004-02-08 13:52:20.331025263 -0500
++++ ./rtg-0.7.4/etc/Makefile.in 2004-02-08 13:52:33.854805146 -0500
+@@ -220,14 +220,13 @@
+ all:
+
+ install: installdirs
+- @for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(etcdir) ; echo "install: installed $$i in $(prefix)$(etcdir)" ; done
+- @for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(webdir) ; echo "install: installed $$i in $(prefix)$(webdir)" ; done
+- @for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(reportsdir) ; echo "install: installed $$i in $(prefix)$(reportsdir)" ; done
++ @for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(sysconfdir)/rtg ; echo "install: installed $$i in $(sysconfdir)" ; done
++ @for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(datadir)/rtg ; echo "install: installed $$i in $(datadir)" ; done
++ @for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(datadir)/rtg ; echo "install: installed $$i in $(datadir)" ; done
+
+ installdirs:
+- $(mkinstalldirs) $(prefix)$(etcdir)
+- $(mkinstalldirs) $(prefix)$(webdir)
+- $(mkinstalldirs) $(prefix)$(reportsdir)
++ $(mkinstalldirs) $(sysconfdir)/rtg
++ $(mkinstalldirs) $(datadir)/rtg
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
+diff -ruN ./rtg-0.7.4.orig/src/Makefile.in ./rtg-0.7.4/src/Makefile.in
+--- ./rtg-0.7.4.orig/src/Makefile.in 2004-02-08 13:52:20.360020503 -0500
++++ ./rtg-0.7.4/src/Makefile.in 2004-02-08 13:52:33.855804981 -0500
+@@ -206,12 +206,12 @@
+ uninstall-info-am:
+ install-includeHEADERS: $(include_HEADERS)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(includedir)
++ $(mkinstalldirs) $(DESTDIR)$(includedir)/rtg
+ @list='$(include_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
+- $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
++ echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/rtg/$$f"; \
++ $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/rtg/$$f; \
+ done
+
+ uninstall-includeHEADERS:
+diff -ruN ./rtg-0.7.4.orig/src/rtg.h ./rtg-0.7.4/src/rtg.h
+--- ./rtg-0.7.4.orig/src/rtg.h 2004-02-08 13:52:20.360020503 -0500
++++ ./rtg-0.7.4/src/rtg.h 2004-02-08 13:52:56.912020385 -0500
+@@ -25,9 +25,10 @@
+
+ /* Define CONFIG_PATHS places to search for the rtg.conf file. Note
+ that RTG_HOME, as determined during autoconf is one path */
+-#define CONFIG_PATHS 3
++#define CONFIG_PATHS 4
+ #define CONFIG_PATH_1 ""
+ #define CONFIG_PATH_2 "/etc/"
++#define CONFIG_PATH_3 "/etc/rtg/"
+
+ /* Defaults */
+ #define DEFAULT_CONF_FILE "rtg.conf"
+@@ -44,7 +45,7 @@
+ #define DEFAULT_SNMP_PORT 161
+
+ /* PID File */
+-#define PIDFILE "/tmp/rtgpoll.pid"
++#define PIDFILE "/var/run/rtgpoll.pid"
+
+ #define STAT_DESCRIP_ERROR 99
+ #define HASHSIZE 5000
+diff -ruN ./rtg-0.7.4.orig/src/rtgutil.c ./rtg-0.7.4/src/rtgutil.c
+--- ./rtg-0.7.4.orig/src/rtgutil.c 2004-02-08 13:52:20.360020503 -0500
++++ ./rtg-0.7.4/src/rtgutil.c 2004-02-08 13:52:33.857804653 -0500
+@@ -115,7 +115,8 @@
+ set->verbose = OFF;
+ strncpy(config_paths[0], CONFIG_PATH_1, sizeof(config_paths[0]));
+ snprintf(config_paths[1], sizeof(config_paths[1]), "%s/etc/", RTG_HOME);
+- strncpy(config_paths[2], CONFIG_PATH_2, sizeof(config_paths[1]));
++ strncpy(config_paths[2], CONFIG_PATH_2, sizeof(config_paths[2]));
++ strncpy(config_paths[3], CONFIG_PATH_3, sizeof(config_paths[3]));
+ return;
+ }
+
diff --git a/net-analyzer/rtg/metadata.xml b/net-analyzer/rtg/metadata.xml
new file mode 100644
index 000000000000..526dc592a6c0
--- /dev/null
+++ b/net-analyzer/rtg/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>anti@gentoo.org</email>
+ <name>Ray Russell Reese III</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/rtg/rtg-0.7.4.ebuild b/net-analyzer/rtg/rtg-0.7.4.ebuild
new file mode 100644
index 000000000000..39fad8466101
--- /dev/null
+++ b/net-analyzer/rtg/rtg-0.7.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rtg/rtg-0.7.4.ebuild,v 1.1 2004/02/08 19:26:36 anti Exp $
+
+inherit eutils
+
+DESCRIPTION="RTG: Real Traffic Grabber"
+HOMEPAGE="http://rtg.sourceforge.net/"
+SRC_URI="mirror://sourceforge/rtg/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=dev-db/mysql-3.23.52-r1
+ >=net-analyzer/net-snmp-5.0.9-r1"
+
+src_compile() {
+ epatch ${FILESDIR}/${P}-pathfix.patch
+
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc/rtg \
+ --datadir=/usr/share/rtg \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodoc FAQ README
+}
+
+pkg_postinst() {
+ einfo "RTG has been installed."
+ einfo ""
+ einfo "The default configuration file location is now /etc/rtg"
+ einfo ""
+ einfo "Sample reports have been installed into /usr/share/rtg"
+} \ No newline at end of file