summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-08-03 08:11:00 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-08-03 08:11:00 +0000
commitb42a675613b0e890007483342e676021d63c8704 (patch)
tree7ae2621efec6f161bed008e4dd4547c1645718f1 /app-misc/g15stats
parentVersion bump. (diff)
downloadgentoo-2-b42a675613b0e890007483342e676021d63c8704.tar.gz
gentoo-2-b42a675613b0e890007483342e676021d63c8704.tar.bz2
gentoo-2-b42a675613b0e890007483342e676021d63c8704.zip
Bug #349482: version bump.
(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/g15stats')
-rw-r--r--app-misc/g15stats/ChangeLog10
-rw-r--r--app-misc/g15stats/files/g15stats-1.9.7.confd20
-rw-r--r--app-misc/g15stats/files/g15stats-1.9.7.initd24
-rw-r--r--app-misc/g15stats/g15stats-1.9.7.ebuild49
4 files changed, 101 insertions, 2 deletions
diff --git a/app-misc/g15stats/ChangeLog b/app-misc/g15stats/ChangeLog
index 8fba10ad92a4..9e4cc7f62b72 100644
--- a/app-misc/g15stats/ChangeLog
+++ b/app-misc/g15stats/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/g15stats
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/ChangeLog,v 1.6 2010/03/06 20:17:48 robbat2 Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/ChangeLog,v 1.7 2011/08/03 08:11:00 robbat2 Exp $
+
+*g15stats-1.9.7 (03 Aug 2011)
+
+ 03 Aug 2011; Robin H. Johnson <robbat2@gentoo.org> +g15stats-1.9.7.ebuild,
+ +files/g15stats-1.9.7.confd, +files/g15stats-1.9.7.initd:
+ Bug #349482: version bump.
06 Mar 2010; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
Changing maintainer per emails of Jan 18th.
diff --git a/app-misc/g15stats/files/g15stats-1.9.7.confd b/app-misc/g15stats/files/g15stats-1.9.7.confd
new file mode 100644
index 000000000000..4bf61c238488
--- /dev/null
+++ b/app-misc/g15stats/files/g15stats-1.9.7.confd
@@ -0,0 +1,20 @@
+# /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"
+
+# Please see g15stats --help for meanings
+#TEMP_INPUT=1
+#GLOBAL_TEMP_INPUT=1
+#FAN_INPUT=1
+
+# please see g15stats --help for all options
+# As of 1.9.7, the options where:
+# --unicore
+# --net-scale-absolute
+# --info-rotate
+# --variable-cpu
+# --refresh
+# --disable-freq
+EXTRA_OPTS="${IFACE:+--interface} ${IFACE} ${TEMP_INPUT:+--temperature} ${TEMP_INPUT} ${GLOBAL_TEMP_INPUT:+--global-temp} ${GLOBAL_TEMP_INPUT} ${FAN_INPUT:+--fan} ${FAN_INPUT}"
diff --git a/app-misc/g15stats/files/g15stats-1.9.7.initd b/app-misc/g15stats/files/g15stats-1.9.7.initd
new file mode 100644
index 000000000000..463528964604
--- /dev/null
+++ b/app-misc/g15stats/files/g15stats-1.9.7.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.initd,v 1.1 2011/08/03 08:11:00 robbat2 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 -- "${EXTRA_OPTS}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats
+ eend $?
+}
diff --git a/app-misc/g15stats/g15stats-1.9.7.ebuild b/app-misc/g15stats/g15stats-1.9.7.ebuild
new file mode 100644
index 000000000000..2b8a13cba7c2
--- /dev/null
+++ b/app-misc/g15stats/g15stats-1.9.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/g15stats-1.9.7.ebuild,v 1.1 2011/08/03 08:11:00 robbat2 Exp $
+
+EAPI=4
+
+DESCRIPTION="CPU, memory, swap, network stats for G15 Keyboard"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-misc/g15daemon-1.9.0
+ dev-libs/libg15
+ dev-libs/libg15render
+ sys-libs/zlib
+ gnome-base/libgtop"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ sh autogen.sh
+}
+
+src_configure() {
+ export CPPFLAGS=$CFLAGS
+ econf
+}
+
+src_compile() {
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ rm "$D"/usr/share/doc/${P}/{COPYING,NEWS}
+
+ newconfd "${FILESDIR}/${PN}-1.9.7.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-1.9.7.initd" ${PN}
+}
+
+pkg_postinst() {
+ elog "Remember to set the interface you want monitored in"
+ elog "/etc/conf.d/g15stats"
+}