diff options
-rw-r--r-- | app-misc/g15stats/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/g15stats/Manifest | 6 | ||||
-rw-r--r-- | app-misc/g15stats/files/g15stats-1.0.confd | 10 | ||||
-rw-r--r-- | app-misc/g15stats/files/g15stats-1.0.initd | 24 | ||||
-rw-r--r-- | app-misc/g15stats/g15stats-1.0.ebuild | 42 | ||||
-rw-r--r-- | app-misc/g15stats/metadata.xml | 10 |
6 files changed, 104 insertions, 0 deletions
diff --git a/app-misc/g15stats/ChangeLog b/app-misc/g15stats/ChangeLog new file mode 100644 index 000000000000..9ddee4a59d28 --- /dev/null +++ b/app-misc/g15stats/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-misc/g15stats +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/ChangeLog,v 1.1 2008/07/06 11:21:48 loki_val Exp $ + +*g15stats-1.0 (06 Jul 2008) + + 06 Jul 2008; Peter Alfredsen <loki_val@gentoo.org> + +files/g15stats-1.0.confd, +files/g15stats-1.0.initd, +metadata.xml, + +g15stats-1.0.ebuild: + Initial commit. Thanks Vadim Efimov <evadim@evadim.ru> of bug #210192 for + the ebuild. + diff --git a/app-misc/g15stats/Manifest b/app-misc/g15stats/Manifest new file mode 100644 index 000000000000..04c09b79421e --- /dev/null +++ b/app-misc/g15stats/Manifest @@ -0,0 +1,6 @@ +AUX g15stats-1.0.confd 339 RMD160 56e9a020f98d5fda2389772b6b3f5a0377d393d1 SHA1 552c595ad4bd3d9ea5011cf016077b4f9afd028a SHA256 97c64ab95603f9b08c3570c4fadf5802fc138253b7c1e87165d7ad7a9d477bbe +AUX g15stats-1.0.initd 536 RMD160 77bc5a9dabf0ab9cff1caf19a6b4bef85c7563d7 SHA1 0f425788e3a6d26afc36da470f577b12292bbfdc SHA256 181a144aba0d3d59db5a83252b6dac8a66f0c1d15378f7a3233bbb0e64e0fb55 +DIST g15stats-1.0.tar.bz2 216343 RMD160 9708e5e881b81867120f7fddee09822843a40627 SHA1 88c40017740ba8799a135a5e7523ff57840626cb SHA256 5ad5ff2bf65369b7ba30340551b022e69f32fd1e69e4a414a59c4bde8dc3ce62 +EBUILD g15stats-1.0.ebuild 986 RMD160 ec2ace858fcf3f09e599ddb7c69aa50a060cf5b4 SHA1 4b29c8e7b9df26224ffde9a9a2430b67a6bcad38 SHA256 760427224612784b03b21e3a4a980b8e139f6063dadc8937b605eb9d5690c147 +MISC ChangeLog 386 RMD160 f3f24b47c3d40cf0ef67dd622cf560f34665a410 SHA1 9cbb7d7e93baab25ded6237042f042931f98d124 SHA256 e506f69e27f6546db11433cecf0cb84ae72707890b6025b20139387c91deaea6 +MISC metadata.xml 254 RMD160 6c27a782dbac1887325ef84cecbe5070b69f5ea4 SHA1 cdbc29ed9187d58efe47f58147aaa1f0e210b45b SHA256 114737da2bcb4ce2124f594e1cc07a41531b19d489c8c6ce6eb9b20d784a9aaa diff --git a/app-misc/g15stats/files/g15stats-1.0.confd b/app-misc/g15stats/files/g15stats-1.0.confd new file mode 100644 index 000000000000..85895706fde9 --- /dev/null +++ b/app-misc/g15stats/files/g15stats-1.0.confd @@ -0,0 +1,10 @@ +# /etc/conf.d/g15stats: Configuration for the G15 stats + +#Gather statistics from named interface (ie eth0) +#Network Screen displays Total bytes In/Out, history graph, Peak speed. +IFACE="eth0" + +#-nsa +#Scale network graphs against highest speed recorded. The +#default is to scale against the highest peak in the current graph. +EXTRA_OPTS=""
\ No newline at end of file diff --git a/app-misc/g15stats/files/g15stats-1.0.initd b/app-misc/g15stats/files/g15stats-1.0.initd new file mode 100644 index 000000000000..2e69478398ea --- /dev/null +++ b/app-misc/g15stats/files/g15stats-1.0.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/files/g15stats-1.0.initd,v 1.1 2008/07/06 11:21:48 loki_val Exp $ + +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + need g15daemon + after xdm +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec \ + /usr/bin/g15stats -- --interface "${IFACE}" "${EXTRA_OPTS}" + eend $? +} + +stop() { + ebegin "Stoping ${SVCNAME}" + start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats + eend $? +} diff --git a/app-misc/g15stats/g15stats-1.0.ebuild b/app-misc/g15stats/g15stats-1.0.ebuild new file mode 100644 index 000000000000..3ed3c7b50c09 --- /dev/null +++ b/app-misc/g15stats/g15stats-1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/g15stats-1.0.ebuild,v 1.1 2008/07/06 11:21:48 loki_val Exp $ + +DESCRIPTION="A simple message/alert client for G15daemon" +HOMEPAGE="http://g15daemon.sourceforge.net/" +SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND=">=app-misc/g15daemon-1.9.0 + dev-libs/libg15 + dev-libs/libg15render + sys-libs/zlib + gnome-base/libgtop" + +DEPEND="${DEPEND} + dev-util/pkgconfig" + +src_compile() { + export CPPFLAGS=$CFLAGS + econf || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + rm "$D"/usr/share/doc/${P}/{COPYING,NEWS} + + newconfd "${FILESDIR}/${P}.confd" ${PN} + newinitd "${FILESDIR}/${P}.initd" ${PN} + + prepalldocs +} + +pkg_postinst() { + elog "Remember to set the interface you want monitored in" + elog "/etc/conf.d/g15stats" +} diff --git a/app-misc/g15stats/metadata.xml b/app-misc/g15stats/metadata.xml new file mode 100644 index 000000000000..96397185f69c --- /dev/null +++ b/app-misc/g15stats/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>loki_val@gentoo.org</email> + <name>Peter Alfredsen</name> +</maintainer> +</pkgmetadata> + |