summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Doty <kingtaco@gentoo.org>2006-03-23 19:21:54 +0000
committerMike Doty <kingtaco@gentoo.org>2006-03-23 19:21:54 +0000
commit78ac12cf09addd692683b77742a83a1a850e6ac6 (patch)
tree6ec9f8eecbcffe4228656ecd2c2503c04ac9f11d /net-analyzer/sysmon/files
parentdev-perl/CDDB_get stable on ppc. (diff)
downloadgentoo-2-78ac12cf09addd692683b77742a83a1a850e6ac6.tar.gz
gentoo-2-78ac12cf09addd692683b77742a83a1a850e6ac6.tar.bz2
gentoo-2-78ac12cf09addd692683b77742a83a1a850e6ac6.zip
Initial import, contributed by Jason Huebel
(Portage version: 2.1_pre6-r4)
Diffstat (limited to 'net-analyzer/sysmon/files')
-rw-r--r--net-analyzer/sysmon/files/digest-sysmon-0.92.23
-rw-r--r--net-analyzer/sysmon/files/sysmon-0.92.2.patch34
-rw-r--r--net-analyzer/sysmon/files/sysmond35
3 files changed, 72 insertions, 0 deletions
diff --git a/net-analyzer/sysmon/files/digest-sysmon-0.92.2 b/net-analyzer/sysmon/files/digest-sysmon-0.92.2
new file mode 100644
index 000000000000..006dc277348f
--- /dev/null
+++ b/net-analyzer/sysmon/files/digest-sysmon-0.92.2
@@ -0,0 +1,3 @@
+MD5 be9304964bfd131be6098c4b7b502cd1 sysmon-0.92.2.tar.gz 495714
+RMD160 7408bfa9a20482e2f0e86dee2566b175b8ecad59 sysmon-0.92.2.tar.gz 495714
+SHA256 3e271ee3a089f597b9aa72c93eed9a371bb97ac952011de793335ccfafa57438 sysmon-0.92.2.tar.gz 495714
diff --git a/net-analyzer/sysmon/files/sysmon-0.92.2.patch b/net-analyzer/sysmon/files/sysmon-0.92.2.patch
new file mode 100644
index 000000000000..4f21781bf9eb
--- /dev/null
+++ b/net-analyzer/sysmon/files/sysmon-0.92.2.patch
@@ -0,0 +1,34 @@
+diff -ur sysmon-0.92.old/autoconf/Makefile.in sysmon-0.92/autoconf/Makefile.in
+--- sysmon-0.92.old/autoconf/Makefile.in 2003-11-05 21:41:31.000000000 -0600
++++ sysmon-0.92/autoconf/Makefile.in 2005-05-25 14:54:09.000000000 -0500
+@@ -56,11 +56,7 @@
+ install: all
+ @echo "installing into @bindir@"
+ -mkdir -p @bindir@
+- -mv @bindir@/sysmond @bindir@/sysmond.old
+- -mv @bindir@/sysmon @bindir@/sysmon.old
+- cp sysmon sysmond @bindir@
+- @echo "creating directory @sysconfdir@"
+- -mkdir -p @sysconfdir@
++ cp sysmon sysmond ${DESTDIR}/@bindir@
+
+ strip:
+ -strip @PROGS@
+diff -ur sysmon-0.92.old/src/snmp.c sysmon-0.92/src/snmp.c
+--- sysmon-0.92.old/src/snmp.c 2003-12-16 11:33:44.000000000 -0600
++++ sysmon-0.92/src/snmp.c 2005-05-25 13:29:40.000000000 -0500
+@@ -5,6 +5,8 @@
+ /* SNMP specific includes */
+ #ifdef ENABLE_SNMP
+
++#define NETSNMP_NO_INLINE
++
+ #ifdef HAVE_UCD_SNMP_VERSION_H
+ #include <ucd-snmp/ucd-snmp-config.h>
+ #include <ucd-snmp/ucd-snmp-includes.h>
+@@ -13,7 +15,6 @@
+ #ifdef HAVE_NET_SNMP_VERSION_H
+ #include <net-snmp/net-snmp-config.h>
+ #include <net-snmp/net-snmp-includes.h>
+-#include <net-snmp/library/snmp_client.h>
+ #endif
diff --git a/net-analyzer/sysmon/files/sysmond b/net-analyzer/sysmon/files/sysmond
new file mode 100644
index 000000000000..48e26fda6a76
--- /dev/null
+++ b/net-analyzer/sysmon/files/sysmond
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sysmon/files/sysmond,v 1.1 2006/03/23 19:21:54 kingtaco Exp $
+
+opts="${opts} reload"
+
+checkconfig() {
+ if [ ! -f "/etc/sysmon.conf" ] ; then
+ eerror "You should setup your /etc/sysmon.conf file!"
+ eerror "See the sysmon.conf(5) manpage."
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting SysMon daemon"
+ /usr/bin/sysmond -q &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping SysMon daemon"
+ /usr/bin/sysmond -q stop &>/dev/null
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading SysMon configuration"
+ /usr/bin/sysmond -q reload &>/dev/null
+ eend $?
+}