summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-07-03 03:29:25 +0000
committerJon Hood <squinky86@gentoo.org>2004-07-03 03:29:25 +0000
commit425e4d9d27e3cb948518f3e308d3751ae8b0a891 (patch)
tree82e7666a1e7d1fbbb312a3d532c32d90372da85e /net-analyzer/mrtg
parentlike, totally a version bump. fershure! test it out. it's totally RAD (diff)
downloadhistorical-425e4d9d27e3cb948518f3e308d3751ae8b0a891.tar.gz
historical-425e4d9d27e3cb948518f3e308d3751ae8b0a891.tar.bz2
historical-425e4d9d27e3cb948518f3e308d3751ae8b0a891.zip
add init script, closing #13839
Diffstat (limited to 'net-analyzer/mrtg')
-rw-r--r--net-analyzer/mrtg/ChangeLog6
-rw-r--r--net-analyzer/mrtg/Manifest25
-rw-r--r--net-analyzer/mrtg/files/mrtg.rc47
-rw-r--r--net-analyzer/mrtg/mrtg-2.10.14.ebuild3
4 files changed, 62 insertions, 19 deletions
diff --git a/net-analyzer/mrtg/ChangeLog b/net-analyzer/mrtg/ChangeLog
index 2831dfc1d526..8c166b781884 100644
--- a/net-analyzer/mrtg/ChangeLog
+++ b/net-analyzer/mrtg/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/mrtg
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/ChangeLog,v 1.21 2004/06/24 22:07:41 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/ChangeLog,v 1.22 2004/07/03 03:29:25 squinky86 Exp $
+
+ 02 Jul 2004; Jon Hood <squinky86@gentoo.org> +files/mrtg.rc,
+ mrtg-2.10.14.ebuild:
+ add init script from Matthew Smith <matthewsmith@iinet.net.au> closing #13839
*mrtg-2.10.14 (08 Jun 2004)
diff --git a/net-analyzer/mrtg/Manifest b/net-analyzer/mrtg/Manifest
index bf6942924775..26b1d8cb6be6 100644
--- a/net-analyzer/mrtg/Manifest
+++ b/net-analyzer/mrtg/Manifest
@@ -1,24 +1,15 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 01d2a2a0fe2c09e83a0c76f823313882 ChangeLog 2766
-MD5 cc67d9f34d8b0e54386ed8b8dabca61b mrtg-2.10.13.ebuild 974
-MD5 756ff8286f7a582f549dfa08ac31942c mrtg-2.9.21.ebuild 995
MD5 402cb9206b9c84882f2e572cec1472e0 mrtg-2.9.22.ebuild 1001
+MD5 cc67d9f34d8b0e54386ed8b8dabca61b mrtg-2.10.13.ebuild 974
MD5 1b6d96b3c0a33ac37a6bf04ae22b6a6c mrtg-2.9.29.ebuild 966
-MD5 9683bb7323c40d69b48d54ad0eb169ed metadata.xml 221
+MD5 756ff8286f7a582f549dfa08ac31942c mrtg-2.9.21.ebuild 995
MD5 167def38eaccf1b5bc2b02a19bf225c1 mrtg-2.10.12.ebuild 974
-MD5 359cc6fb7052278f7c4d8d9c7da4a7aa mrtg-2.10.14.ebuild 973
-MD5 226ec302d6cefdba221cbdcd484c2fbd files/digest-mrtg-2.10.13 65
-MD5 85c2c5bcbc07346b4d167bc4ebe4ba9a files/digest-mrtg-2.10.14 65
+MD5 3d9d414671d1acd80ced1e73becf2650 mrtg-2.10.14.ebuild 1031
+MD5 3b054e59e9b16f5136af15e4512adf4d ChangeLog 2934
+MD5 9683bb7323c40d69b48d54ad0eb169ed metadata.xml 221
MD5 a891490462eeed790f01ca34ca861ca0 files/digest-mrtg-2.9.21 64
MD5 b984863c1e7c00e4a0829e901c6cc492 files/digest-mrtg-2.9.22 64
MD5 0f087b04562f24a41ddb5c5a190f7b33 files/digest-mrtg-2.9.29 64
MD5 590e7eff763d30811a38ebe03b2ad028 files/digest-mrtg-2.10.12 65
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.8 (GNU/Linux)
-
-iD8DBQFA4vn5HTu7gpaalycRAn0IAJ9qjt0S1mX92cX5DXDuSncteMRYyACgtqDU
-k4hLnWuCc49GinySKNKcYRA=
-=Ak2u
------END PGP SIGNATURE-----
+MD5 226ec302d6cefdba221cbdcd484c2fbd files/digest-mrtg-2.10.13 65
+MD5 85c2c5bcbc07346b4d167bc4ebe4ba9a files/digest-mrtg-2.10.14 65
+MD5 351ec1843842936c6540a80df17546c3 files/mrtg.rc 1202
diff --git a/net-analyzer/mrtg/files/mrtg.rc b/net-analyzer/mrtg/files/mrtg.rc
new file mode 100644
index 000000000000..c04ef8741d9f
--- /dev/null
+++ b/net-analyzer/mrtg/files/mrtg.rc
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/files/mrtg.rc,v 1.1 2004/07/03 03:29:25 squinky86 Exp $
+
+# This runscript is for those who want to use the RunAsDaemon:Yes
+# option for MRTG instead of launching it from a cron job.
+
+
+# Set the following variables for your setup
+
+MRTGPREFIX=/usr/bin
+MRTGCONF=/etc/mrtg.conf
+# pid file defaults to same dir as config file (edit $MRTGPREFIX/mrtg)
+# if you don't like it.
+MRTGPID=/etc/mrtg.pid
+
+
+depend() {
+ need net
+
+ # if monitoring snmp variables on this machine:
+ # use net-snmpd
+}
+
+checkconfig() {
+ if [ ! -f $MRTGCONF ] ; then
+ eerror "Please create $MRTGCONF (try man cfgmaker)"
+ eerror "Make sure you use RunAsDaemon:Yes"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting mrtg"
+ start-stop-daemon --start --quiet --pidfile $MRTGPID \
+ --startas $MRTGPREFIX/mrtg $MRTGCONF
+ eend $? "Failed to start mrtg"
+}
+
+stop() {
+ ebegin "Stopping mrtg"
+ start-stop-daemon --stop --quiet --pidfile $MRTGPID
+ eend $? "Failed to stop mrtg"
+}
diff --git a/net-analyzer/mrtg/mrtg-2.10.14.ebuild b/net-analyzer/mrtg/mrtg-2.10.14.ebuild
index 2de808203562..49f89783e2c6 100644
--- a/net-analyzer/mrtg/mrtg-2.10.14.ebuild
+++ b/net-analyzer/mrtg/mrtg-2.10.14.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/mrtg-2.10.14.ebuild,v 1.4 2004/06/30 17:35:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/mrtg-2.10.14.ebuild,v 1.5 2004/07/03 03:29:25 squinky86 Exp $
DESCRIPTION="A tool to monitor the traffic load on network-links"
HOMEPAGE="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/"
@@ -30,4 +30,5 @@ src_install () {
cp -a contrib ${D}/usr/share/doc/${PF}/contrib
prepalldocs
docinto html ; dohtml -r doc/*.html images/*
+ exeinto /etc/init.d ; newexe ${FILESDIR}/mrtg.rc mrtg
}