22 Commits
Author SHA1 Message Date
Mikhail Yevchenko 076641c867 Add Debian 13 packaging for g15stats 2026-09-07 16:13:47 +03:00
Daniel Menelkir 95de11a526 Update README.rst 2024-06-09 14:57:20 +00:00
Daniel Menelkir c0ca57d355 Update README.rst 2022-08-05 19:13:31 +00:00
Daniel Menelkir c1a212eb1e Update email 2022-05-14 17:04:55 -03:00
Daniel Menelkir 025a5cd5ba modified: contrib/init/g15stats.66
modified:   contrib/init/g15stats.confd
	modified:   contrib/init/g15stats.in
	modified:   contrib/init/g15stats.initd
	modified:   contrib/init/g15stats.run
	modified:   contrib/init/g15stats.service
	modified:   contrib/init/rc.g15stats
	deleted:    dists/arch/g15stats-openrc/.SRCINFO
	deleted:    dists/arch/g15stats-openrc/PKGBUILD
	deleted:    dists/arch/g15stats-runit/.SRCINFO
	deleted:    dists/arch/g15stats-runit/PKGBUILD
	deleted:    dists/arch/g15stats-systemd/.SRCINFO
	deleted:    dists/arch/g15stats-systemd/PKGBUILD
	deleted:    dists/arch/g15stats/.SRCINFO
	deleted:    dists/arch/g15stats/PKGBUILD
	deleted:    dists/freebsd/Makefile
	deleted:    dists/freebsd/distinfo
	deleted:    dists/freebsd/files/g15stats.in
	deleted:    dists/freebsd/pkg-descr
	deleted:    dists/freebsd/pkg-plist
	deleted:    dists/gentoo/Manifest
	deleted:    dists/gentoo/g15stats-3.0.2.ebuild
	deleted:    dists/gentoo/g15stats-9999.ebuild
	deleted:    dists/gentoo/metadata.xml
	deleted:    dists/void/files/run
	deleted:    dists/void/template
2021-11-01 08:31:49 -03:00
Daniel Menelkir 7c7fd3b605 modified: config/ltmain.sh
modified:   contrib/init/g15stats.initd
	modified:   contrib/init/g15stats.run
	modified:   contrib/init/rc.g15stats
	modified:   dist/arch/g15stats-openrc/.SRCINFO
	modified:   dist/arch/g15stats-openrc/PKGBUILD
	modified:   dist/arch/g15stats-runit/.SRCINFO
	modified:   dist/arch/g15stats-runit/PKGBUILD
	modified:   dist/arch/g15stats-systemd/.SRCINFO
	modified:   dist/arch/g15stats-systemd/PKGBUILD
2021-11-01 08:30:48 -03:00
Daniel Menelkir e96d818469 Merge branch 'Marzal-master-patch-15671' into 'master'
g15stats.service wont start without g15daemon.service installed

See merge request menelkir/g15stats!1
2021-11-01 10:16:50 +00:00
David Marzal a906005a87 Update dist/arch/g15stats-systemd/PKGBUILD 2021-10-31 22:17:10 +00:00
David Marzal 05ca759c7b g15stats.service wont start without g15daemon.service installed 2021-10-31 22:10:57 +00:00
Daniel Menelkir b749ed8ad5 new file: contrib/init/rc.g15stats 2021-07-23 08:02:08 -03:00
Daniel Menelkir 9dda88635a Fixed openrc script 2021-06-13 04:55:52 -03:00
Daniel Menelkir 7ad83e1529 Updated distro files 2021-06-08 20:27:27 -03:00
Daniel Menelkir ee4adb969b modified: contrib/init/g15stats.run 2021-06-05 04:24:39 -03:00
Daniel Menelkir 2e4ba7177a Added void template 2021-05-22 11:11:47 -03:00
Daniel Menelkir cef3398d88 Merge branch 'master' of gitlab.com:menelkir/g15stats 2021-05-14 20:11:06 -03:00
Daniel Menelkir 9f0f01ed9e Update config files 2021-05-14 20:10:49 -03:00
Daniel Menelkir b12478b3b8 Added 66 service 2021-05-10 19:15:55 -03:00
Daniel Menelkir 1c3f49f905 renamed: dists/g15stats/Makefile -> dists/freebsd/Makefile
renamed:    dists/g15stats/distinfo -> dists/freebsd/distinfo
	renamed:    dists/g15stats/files/g15stats.in -> dists/freebsd/files/g15stats.in
	renamed:    dists/g15stats/pkg-descr -> dists/freebsd/pkg-descr
	renamed:    dists/g15stats/pkg-plist -> dists/freebsd/pkg-plist
2021-05-05 18:55:08 -03:00
Daniel Menelkir 2ba45c8e9a new file: contrib/init/g15stats.in
new file:   dists/g15stats/Makefile
	new file:   dists/g15stats/distinfo
	new file:   dists/g15stats/files/g15stats.in
	new file:   dists/g15stats/pkg-descr
	new file:   dists/g15stats/pkg-plist
2021-05-05 18:54:25 -03:00
Daniel Menelkir bd01f2ab24 Added support for distributions 2021-05-05 18:51:03 -03:00
Daniel Menelkir 3297bfbdf1 Adequate init files in contrib to reflect gentoo display-manager 2021-04-25 07:21:46 -03:00
Daniel Menelkir 0ec5241751 modified: configure.ac 2021-03-20 13:53:32 -03:00
50 changed files with 855 additions and 45 deletions

No files matched your search

+1 -1
View File
@@ -5,4 +5,4 @@ Antonio Bartolini <robynhub@gmail.com>
Piotr Czarnecki <czarnyckm@users.sf.net>
Daniel Menelkir <menelkir@itroll.org>
Daniel Menelkir <dmenelkir@gmail.com>
+7 -11
View File
@@ -3,6 +3,13 @@ G15STATS
A CPU/Memory/Swap/Network/Battery/Temperature/Fan Speed/CPU Frequencies usage meter for G15Daemon.
=======
Warning
=======
I'm discontinuing this after someone made a fuzz about a feature he decided he want a decade later.
And as far I am concerned, Arch Linux's AUR administrators find this behavior just fine, so I'm not wasting my efforts on this anymore.
I can still fix issues as I always did and help via mail, but keep in mind Arch Linux is impossible to be supported.
========
Features
========
@@ -50,14 +57,3 @@ Once running, the separate screens can be switched to as follows:
| ``L3``: Next Screen
| ``L4``: Alternative Screen (Doesn't work on Swap, Memory and Battery Screen)
| ``L5``: Bottom Info bar mode
=============
How to donate
=============
If you find this repo useful (don't forget to pay a visit to the related
repos too), you can buy me a beer:
:BTC: 3ECzX5UhcFSRv6gBBYLNBc7zGP9UA5Ppmn
:ETH: 0x7E17Ac09Fa7e6F80284a75577B5c1cbaAD566C1c
+17 -10
View File
@@ -1,8 +1,8 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-2020 Free Software Foundation, Inc.
# Copyright 1992-2021 Free Software Foundation, Inc.
timestamp='2020-11-19'
timestamp='2021-04-21'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -50,7 +50,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright 1992-2020 Free Software Foundation, Inc.
Copyright 1992-2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -188,10 +188,9 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
#
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \
"/sbin/$sysctl" 2>/dev/null || \
"/usr/sbin/$sysctl" 2>/dev/null || \
/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
/usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
echo unknown))
case "$UNAME_MACHINE_ARCH" in
aarch64eb) machine=aarch64_be-unknown ;;
@@ -262,6 +261,10 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//')
echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
exit ;;
*:SecBSD:*:*)
UNAME_MACHINE_ARCH=$(arch | sed 's/SecBSD.//')
echo "$UNAME_MACHINE_ARCH"-unknown-secbsd"$UNAME_RELEASE"
exit ;;
*:LibertyBSD:*:*)
UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
@@ -950,7 +953,7 @@ EOF
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
arc:Linux:*:* | arceb:Linux:*:*)
arc:Linux:*:* | arceb:Linux:*:* | arc64:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
arm*:Linux:*:*)
@@ -996,6 +999,9 @@ EOF
k1om:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
m32r*:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
@@ -1084,7 +1090,7 @@ EOF
ppcle:Linux:*:*)
echo powerpcle-unknown-linux-"$LIBC"
exit ;;
riscv32:Linux:*:* | riscv64:Linux:*:*)
riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
@@ -1480,8 +1486,8 @@ EOF
i*86:rdos:*:*)
echo "$UNAME_MACHINE"-pc-rdos
exit ;;
i*86:AROS:*:*)
echo "$UNAME_MACHINE"-pc-aros
*:AROS:*:*)
echo "$UNAME_MACHINE"-unknown-aros
exit ;;
x86_64:VMkernel:*:*)
echo "$UNAME_MACHINE"-unknown-esx
@@ -1696,3 +1702,4 @@ exit 1
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
+21 -10
View File
@@ -1,8 +1,8 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-2020 Free Software Foundation, Inc.
# Copyright 1992-2021 Free Software Foundation, Inc.
timestamp='2020-12-02'
timestamp='2021-04-30'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright 1992-2020 Free Software Foundation, Inc.
Copyright 1992-2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -1165,7 +1165,7 @@ case $cpu-$vendor in
| alphapca5[67] | alpha64pca5[67] \
| am33_2.0 \
| amdgcn \
| arc | arceb \
| arc | arceb | arc64 \
| arm | arm[lb]e | arme[lb] | armv* \
| avr | avr32 \
| asmjs \
@@ -1185,6 +1185,7 @@ case $cpu-$vendor in
| k1om \
| le32 | le64 \
| lm32 \
| loongarch32 | loongarch64 | loongarchx32 \
| m32c | m32r | m32rle \
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
@@ -1203,9 +1204,13 @@ case $cpu-$vendor in
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa32r3 | mipsisa32r3el \
| mipsisa32r5 | mipsisa32r5el \
| mipsisa32r6 | mipsisa32r6el \
| mipsisa64 | mipsisa64el \
| mipsisa64r2 | mipsisa64r2el \
| mipsisa64r3 | mipsisa64r3el \
| mipsisa64r5 | mipsisa64r5el \
| mipsisa64r6 | mipsisa64r6el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
@@ -1229,7 +1234,7 @@ case $cpu-$vendor in
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
| pru \
| pyramid \
| riscv | riscv32 | riscv64 \
| riscv | riscv32 | riscv32be | riscv64 | riscv64be \
| rl78 | romp | rs6000 | rx \
| s390 | s390x \
| score \
@@ -1682,11 +1687,14 @@ fi
# Now, validate our (potentially fixed-up) OS.
case $os in
# Sometimes we do "kernel-abi", so those need to count as OSes.
# Sometimes we do "kernel-libc", so those need to count as OSes.
musl* | newlib* | uclibc*)
;;
# Likewise for "kernel-libc"
eabi | eabihf | gnueabi | gnueabihf)
# Likewise for "kernel-abi"
eabi* | gnueabi*)
;;
# VxWorks passes extra cpu info in the 4th filed.
simlinux | simwindows | spe)
;;
# Now accept the basic system types.
# The portable systems comes first.
@@ -1703,12 +1711,12 @@ case $os in
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
| mirbsd* | netbsd* | dicos* | openedition* | ose* \
| bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
| bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
| ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
| udi* | lites* | ieee* | go32* | aux* | hcos* \
| chorusrdb* | cegcc* | glidix* \
| chorusrdb* | cegcc* | glidix* | serenity* \
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
| midipix* | mingw32* | mingw64* | mint* \
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
@@ -1750,6 +1758,8 @@ case $kernel-$os in
;;
kfreebsd*-gnu* | kopensolaris*-gnu*)
;;
vxworks-simlinux | vxworks-simwindows | vxworks-spe)
;;
nto-qnx*)
;;
os2-emx)
@@ -1852,3 +1862,4 @@ exit
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
Regular → Executable
View File
File mode changed.
Vendored
+5 -5
View File
@@ -2,7 +2,7 @@
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for g15stats 3.0.
#
# Report bugs to <menelkir@itroll.org>.
# Report bugs to <dmenelkir@gmail.com>.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -276,7 +276,7 @@ then :
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
else
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
$0: menelkir@itroll.org about your system, including any
$0: dmenelkir@gmail.com about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
@@ -623,7 +623,7 @@ PACKAGE_NAME='g15stats'
PACKAGE_TARNAME='g15stats'
PACKAGE_VERSION='3.0'
PACKAGE_STRING='g15stats 3.0'
PACKAGE_BUGREPORT='menelkir@itroll.org'
PACKAGE_BUGREPORT='dmenelkir@gmail.com'
PACKAGE_URL=''
ac_default_prefix=/usr
@@ -1485,7 +1485,7 @@ Some influential environment variables:
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <menelkir@itroll.org>.
Report bugs to <dmenelkir@gmail.com>.
_ACEOF
ac_status=$?
fi
@@ -13557,7 +13557,7 @@ $config_headers
Configuration commands:
$config_commands
Report bugs to <menelkir@itroll.org>."
Report bugs to <dmenelkir@gmail.com>."
_ACEOF
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
+2 -2
View File
@@ -1,7 +1,7 @@
AC_INIT([g15stats],[3.0],[menelkir@itroll.org])
AC_INIT([g15stats],[3.0],[dmenelkir@gmail.com])
PACKAGE=g15stats
VERSION=3.0
VERSION=3.0.1
AC_PREFIX_DEFAULT(/usr)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+14
View File
@@ -0,0 +1,14 @@
[main]
@type = classic, oneshot
@name = g15stats
@description = "g15stats"
@depends = ()
@options = ( log env )
[start]
@build = auto,custom
@execute = ( g15stats -d )
[stop]
@build = auto,custom
@execute = ( g15stats -k )
Regular → Executable
+3 -3
View File
@@ -5,9 +5,9 @@
IFACE="eth0"
# Please see g15stats --help for meanings
#TEMP_INPUT=1
#GLOBAL_TEMP_INPUT=1
#FAN_INPUT=1
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:
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: g15stats
# REQUIRE: LOGIN g15daemon
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# g15stats_enable (bool): Set to NO by default.
# Set it to YES to enable doormand.
. /etc/rc.subr
name=g15stats
rcvar="${name}_enable"
load_rc_config $name
: ${g15stats_enable:="NO"}
command=%%PREFIX%%/bin/${name}
command_args='-d -i re0'
run_rc_command "$1"
-1
View File
@@ -6,7 +6,6 @@ PIDFILE=/var/run/${SVCNAME}.pid
depend() {
need g15daemon
after xdm
}
start() {
-2
View File
@@ -1,4 +1,2 @@
#!/bin/sh
exec 2>&1
sv check g15daemon >/dev/null || exit 1
exec g15stats
Regular → Executable
View File
File mode changed.
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
. /etc/rc.subr
case $1 in
start)
msg "Starting g15stats..."
start_daemon /usr/bin/g15stats -d
;;
stop)
msg "Stopping g15stats..."
stop_daemon /usr/bin/g15stats
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
status_daemon /usr/bin/g15stats
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac
+53
View File
@@ -0,0 +1,53 @@
Debian packaging import and fork provenance
==========================================
Imported on 2026-09-07 from the official Debian archive:
https://archive.debian.org/debian/pool/main/g/g15stats/
SHA-256 (filenames relative to that URL):
79289e9f182e086dc5bfe0b1b594fedc36ad7610ee1daec19b05d44c4494d3fa g15stats_1.9.2-2.dsc
ce724380069ee62563f2898b1bbd0afb80bb632cb6dbf3d1747871f7cdfefbb3 g15stats_1.9.2-2.diff.gz
9dda49a3f09e66ce738ceecb07f2c0fef7ecd5ecbd06e435b340dfca35a37da4 g15stats_1.9.2.orig.tar.gz
The diff (2316 bytes) and orig tarball (25190 bytes) match the SHA-256
checksums in the downloaded .dsc. The .dsc's own checksum was computed
locally. The byte-exact .dsc and diff are retained in debian/provenance/;
the diff preserves ALL original debian files, the manual and linker fix.
The tarball can be downloaded from the URL above and verified independently.
Checksum matching alone does not authenticate the uploader's PGP signature.
Verification was attempted with Debian 13's debian-keyring,
debian-maintainers and debian-nonupload keyrings: gpgv reported
"No public key" for DSA key F9935424B1DF9A57 (signature dated 2011-03-15).
No successful signature verification is claimed here.
Archive package: g15stats 1.9.2-2, source format 1.0, maintained by
Giacomo Catenazzi <cate@debian.org>. Original Debian packaging copyright:
2008 Giacomo A. Catenazzi, GPL-2-or-later. All three historical changelog
entries remain unchanged. The archive adds g15stats.1 outside debian/;
it is now debian/g15stats.1, extended for the fork, retaining Mike Lampard's
author credit. The archive's only upstream source patch adds -lpthread -lm
to Makefile.am, credited to Bhavani Shankar in the changelog (#554382).
Both libraries already appear in the fork: do not apply that patch twice.
All nine archived debian files were imported. control, rules, docs, install,
manpages, watch and copyright were adapted; changelog was prepended;
compat was raised from 5 to 13, with Build-Depends: debhelper (>= 13~).
Obsolete CDBS cleanup and SourceForge watching were replaced, not omitted
without a record. No archived quilt series existed.
Upstream snapshot (unmodified tracked files in the orig archive):
Menelkir master 95de11a526346b3d9fd33df051b330c36b1c8a16
Commit date: 2024-06-09; subject: Update README.rst
Upstream: https://gitlab.com/menelkir/g15stats
Local fork origin: https://gt.uo1.net/mikhail/g15stats
Version rationale: git describe gives 3.0.3-13-g95de11a and the tracked
Arch PKGBUILD declares 3.0.3. configure.ac instead has stale AC_INIT=3.0
and VERSION=3.0.1, including at tag 3.0.3. Therefore this package is
3.0.3+git20240609.95de11a-1~local1, NOT Debian's old 1.9.2 nor a new
upstream release. The quilt patch aligns the embedded version and modernizes
only the build system. Runtime engine files remain untouched.
The new changelog/patch identity is the configured local Git user,
Mikhail Yevchenko <m.ṥῥẚɱ.ѓѐḿởύḙ@uo1.net>; it does not impersonate
the historical Debian maintainer or claim upstream authorship.
+52
View File
@@ -0,0 +1,52 @@
g15stats for Debian 13 (local fork package)
=========================================
This packaging targets Linux and debhelper compatibility 13. See PROVENANCE
for the complete Debian 1.9.2-2 import, licensing and snapshot version choice.
All upstream modifications are in debian/patches; do not build in the checkout
when you want it to remain pristine.
Clean source preparation (outside the checkout)
----------------------------------------------
Export ONLY tracked upstream files at commit
95de11a526346b3d9fd33df051b330c36b1c8a16 using git archive, with directory
prefix g15stats-3.0.3+git20240609.95de11a/. Compress with xz to produce
g15stats_3.0.3+git20240609.95de11a.orig.tar.xz. Extract in a temporary build
directory, then copy this debian/ directory into it. Never tar the working
checkout: .git, quilt state and untracked build outputs must not be included.
In a disposable Debian 13 container, install build-essential, debhelper,
autoconf, automake, libtool, pkgconf, libgtop2-dev, libg15-dev,
libg15render-dev and libg15daemon-client-dev (apt-get build-dep on the staged
source directory also resolves Build-Depends). Install lintian for QA.
If the already-built local G15 libraries are available, install their runtime
and development .deb files instead of the distro G15 libraries. Keep libgtop
and other dependencies from Debian 13. Do not install packages on the host.
Run dpkg-buildpackage -S -us -uc in the staged source directory. In another
empty directory/container, extract the resulting .dsc with dpkg-source -x,
then run dpkg-buildpackage -b -us -uc. Source packages here are unsigned;
dpkg-source --no-check is appropriate only after independently checking the
locally produced source artifact checksums. Lint both source and binary
.changes with lintian --fail-on error. Keep logs and all artifacts outside
the checkout. A second independent extraction/build checks rebuildability;
bit-for-bit reproducibility is a separate claim requiring comparison.
Safe smoke test
---------------
Install the resulting binary in a disposable container with no USB mappings,
no host networking and no privileged mode. Suppress service startup using
policy-rc.d before installing g15daemon. Run debian/tests/help, which compares
timeout-bounded --help and -h output. These exit before any daemon connection,
sensor access or keyboard thread. Do not invoke the normal client or -d.
The same test is declared as a superficial autopkgtest.
Scope and limitations
---------------------
No service/init, udev rule, keyboard macro or automatic startup is shipped.
The existing runtime code has not been safety-certified or rewritten: legacy
sensor paths, argument parsing, array bounds, string handling and threading
need separate runtime review. Build/CLI tests do not validate hardware, LCD
rendering, live daemon interaction, battery support or other architectures.
Use --info-rotate, not the incorrectly documented short form -ir; see the
manual for the existing parser discrepancy.
+36
View File
@@ -0,0 +1,36 @@
g15stats (3.0.3+git20240609.95de11a-1~local1) UNRELEASED; urgency=medium
* Import Debian 1.9.2-2 packaging and manual, retaining its changelog,
attribution and checksum-recorded archive provenance.
* Package Menelkir master 95de11a526346b3d9fd33df051b330c36b1c8a16,
a post-3.0.3 snapshot, rather than mislabelling this fork as 1.9.2.
* Use debhelper compat 13, 3.0 (quilt), direct build dependencies,
rootless builds and all Debian hardening flags on Debian 13.
* Quilt build fixes preserve compiler flags, link libgtop correctly,
remove the bare include flag and align the embedded snapshot version.
* Extend the archived manual and add isolated CLI smoke tests.
Do not install init scripts or automatically start the client.
-- Mikhail Yevchenko <m.ṥῥẚɱ.ѓѐḿởύḙ@uo1.net> Mon, 07 Sep 2026 15:47:05 +0300
g15stats (1.9.2-2) unstable; urgency=low
* Supports binutils-gold linker, writing explicitly our library
dependencies. Patch from Bhavani Shankar (Closes: #554382).
-- Giacomo Catenazzi <cate@debian.org> Tue, 15 Mar 2011 08:04:59 +0100
g15stats (1.9.2-1) unstable; urgency=low
* New upstream version (Closes: #530548).
* Add support for automake and autoconf
-- Giacomo Catenazzi <cate@debian.org> Tue, 04 Aug 2009 13:15:38 +0200
g15stats (1.0-1) unstable; urgency=low
* Initial release. (Closes: #439792).
-- Giacomo Catenazzi <cate@debian.org> Tue, 18 Mar 2008 08:09:06 +0100
+1
View File
@@ -0,0 +1 @@
13
+38
View File
@@ -0,0 +1,38 @@
Source: g15stats
Section: utils
Priority: optional
Maintainer: Mikhail Yevchenko <m.ṥῥẚɱ.ѓѐḿởύḙ@uo1.net>
Build-Depends: debhelper (>= 13~),
autoconf,
automake,
libg15-dev,
libg15daemon-client-dev,
libg15render-dev,
libgtop2-dev,
libtool,
pkgconf
Standards-Version: 4.7.2
Rules-Requires-Root: no
Homepage: https://gitlab.com/menelkir/g15stats
Package: g15stats
Architecture: linux-any
Depends: g15daemon, ${shlibs:Depends}, ${misc:Depends}
Description: system statistics display client for G15Daemon
Displays system statistics on the LCD of supported Logitech keyboards
through g15daemon.
.
CPU Screen displays graphs of User/System/Nice and Idle time, along with
LoadAVG and Uptime.
.
Memory Screen displays Memory Total & Free, and graph of Used vs
Buffered+Cached Memory.
.
Swap Screen displays Used, Free and Total swap space, along with the number
of pages currently paged in/out.
.
Network Screen displays Total bytes In/Out, history graph, Peak speed.
.
Additional screens show CPU frequency, battery charge, temperature and
fan speed where supported by the system's sensors.
+40
View File
@@ -0,0 +1,40 @@
This package was debianized by Giacomo A. Catenazzi <cate@debian.org> on
Sat, 15 Sep 2007 08:32:51 +0200.
It was downloaded from http://g15daemon.sourceforge.net/
Upstream Authors (also see AUTHORS):
Mike Lampard <mlampard@users.sourceforge.net>
Antonio Bartolini <robynhub@gmail.com>
Piotr Czarnecki <czarnyckm@users.sf.net>
Daniel Menelkir <dmenelkir@gmail.com>
Copyright:
Copyright (c) 2006-2007 Mike Lampard
Copyright (c) 2008-2010 Mike Lampard (g15stats.c)
License:
g15daemon is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
g15daemon is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
License can be found in the file `/usr/share/common-licenses/GPL-2'.
The Debian packaging is (C) 2008, Giacomo A. Catenazzi <cate@debian.org> and
is licensed under the GPL v2 (or later), see `/usr/share/common-licenses/GPL-2'.
Local packaging additions are Copyright (c) 2026 Mikhail Yevchenko
<m.ṥῥẚɱ.ѓѐḿởύḙ@uo1.net>, licensed under GPL v2 or later.
The imported manual names Mike Lampard as author; its Debian archive origin
and subsequent local updates are documented in debian/PROVENANCE.
The original Debian diff, including the original copyright notice, is retained
unchanged in debian/provenance/. No authorship of the fork is claimed here.
Vendored
+4
View File
@@ -0,0 +1,4 @@
README
AUTHORS
debian/README.Debian
debian/PROVENANCE
+87
View File
@@ -0,0 +1,87 @@
.\" Imported from Debian 1.9.2-2; see debian/PROVENANCE for attribution.
.TH "g15stats" "1" "7 September 2026" "G15Daemon - g15stats" "G15Daemon User Manual"
.SH "NAME"
g15stats \- system statistics display client for G15Daemon
.SH "SYNOPSIS"
.B g15stats
.RI [ options ]
.SH "DESCRIPTION"
The program provides usage meters for the LCD on
supported Logitech keyboards, using g15daemon:
.PP
CPU Screen displays graphs of User/System/Nice and Idle time, along with
LoadAVG and Uptime.
.PP
Memory Screen displays Memory Total & Free, and graph of Used vs
Buffered+Cached Memory.
.PP
Swap Screen displays Used, Free and Total swap space, along with the number
of pages currently paged in/out.
.PP
Network Screen displays Total bytes In/Out, history graph, Peak speed.
.PP
The summary, CPU frequency, battery, temperature and fan screens display
additional statistics where the relevant system sensors are available.
.SH "OPTIONS"
g15stats understands the following options:
.br
.P
.HP
\-h,--help show usage information.
.P
.HP
\-d,--daemon run in background.
.P
.HP
\-i,--interface [interface] monitor network interface [interface] ie -i eth0.
.P
.HP
\-nsa,--net-scale-absolute scale net graphs against maximum speed seen.
.TP
.BR \-u , " --unicore"
Display unicore graphs on the CPU screen.
.TP
.BI "\-r, --refresh " seconds
Set the refresh interval from 1 to 300 seconds (default: 1).
.TP
.BI "\-t, --temperature " id
Select the temperature hwmon sensor (0 to 3).
.TP
.BI "\-f, --fan " id
Select the fan hwmon sensor (0 to 3).
.TP
.BI "\-gt, --global-temp " id
Show this temperature probe instead of the maximum on the summary screen.
.TP
.BR \-df , " --disable-freq"
Disable CPU frequency monitoring.
.TP
.B --info-rotate
Rotate the bottom information bar. Use the long option: the fork documents
\-ir in its help, but its parser checks \-rc and also treats that prefix as
\-r. The documented short form \-ir is not supported correctly.
.TP
.BR \-vc , " --variable-cpu"
Recalculate the CPU count for systems supporting CPU hotplug.
.SH "KEYS"
L2 selects the previous screen; L3 selects the next screen.
L4 selects an alternative view where available; L5 changes the bottom bar.
.SH "NOTES"
Normal operation requires a running g15daemon. This package does not install
or enable a g15stats service. Run the client as an ordinary user.
The help options exit before connecting to g15daemon.
Sensor availability depends on the kernel and hardware; legacy battery
paths may be unavailable on modern systems.
.SH "AUTHOR"
Mike Lampard
.SH "SEE ALSO"
.BR g15daemon (1),
.BR libg15 (3)
+1
View File
@@ -0,0 +1 @@
usr/bin/g15stats
+1
View File
@@ -0,0 +1 @@
debian/g15stats.1
+47
View File
@@ -0,0 +1,47 @@
Description: Preserve Debian flags and use conventional automake linking
Remove the bare -I (which consumes the next compiler argument), pass GTOP
libraries after objects, and let debhelper install selected documentation.
The historical Bhavani Shankar explicit pthread/math linkage fix is already
present in this fork and remains intact. Align stale configure versions with
the pinned post-3.0.3 snapshot (see debian/PROVENANCE).
Author: Mikhail Yevchenko <m.ṥῥẚɱ.ѓѐḿởύḙ@uo1.net>
Forwarded: not-needed
Last-Update: 2026-09-07
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,5 @@
-AC_INIT([g15stats],[3.0],[dmenelkir@gmail.com])
+AC_INIT([g15stats],[3.0.3+git20240609.95de11a],[dmenelkir@gmail.com])
-PACKAGE=g15stats
-VERSION=3.0.1
AC_PREFIX_DEFAULT(/usr)
AC_CONFIG_AUX_DIR(config)
-AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+AM_INIT_AUTOMAKE([foreign])
@@ -26,6 +24,4 @@
CPPFLAGS="$CPPFLAGS $GTOP_CFLAGS"
-CFLAGS="$CPPFLAGS $GTOP_CFLAGS"
-LDFLAGS="$LDFLAGS $GTOP_LIBS"
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,12 +2,8 @@
-AM_CFLAGS = -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)
+AM_CFLAGS = -Wall
+AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
METASOURCES = AUTO
bin_PROGRAMS = g15stats
noinst_HEADERS = g15stats.h
-docdir = @docdir@
-doc_DATA = README ChangeLog AUTHORS NEWS COPYING
-
-LIBS = -lg15daemon_client -lg15render -lpthread -lm -lrt
-IMCLUDES = -I
-g15stats_LDFLAGS = -avoid-version
+g15stats_LDADD = -lg15daemon_client -lg15render -lpthread -lm -lrt $(GTOP_LIBS)
g15stats_SOURCES = g15stats.c g15stats.h
+1
View File
@@ -0,0 +1 @@
modern-build.patch
Binary file not shown.
+29
View File
@@ -0,0 +1,29 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.0
Source: g15stats
Binary: g15stats
Architecture: any
Version: 1.9.2-2
Maintainer: Giacomo Catenazzi <cate@debian.org>
Homepage: http://www.g15tools.com
Standards-Version: 3.8.2
Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libxtst-dev, libfreetype6-dev, libusb-dev, libgtop2-dev, libg15-dev, libg15render-dev (>= 1.2-3), libg15daemon-client-dev, automake, libtool, autoconf
Checksums-Sha1:
b53ea7414bd47b68a73aaa8f548d36f50b47aa09 25190 g15stats_1.9.2.orig.tar.gz
245c96ab8267a31c5e1ebebe91307e8ff99bb976 2316 g15stats_1.9.2-2.diff.gz
Checksums-Sha256:
9dda49a3f09e66ce738ceecb07f2c0fef7ecd5ecbd06e435b340dfca35a37da4 25190 g15stats_1.9.2.orig.tar.gz
ce724380069ee62563f2898b1bbd0afb80bb632cb6dbf3d1747871f7cdfefbb3 2316 g15stats_1.9.2-2.diff.gz
Files:
beb285f739127e91b97af465e6b53c4a 25190 g15stats_1.9.2.orig.tar.gz
bec0a80e18f8905d4d70a1c9fc575043 2316 g15stats_1.9.2-2.diff.gz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk1/EkEACgkQ+ZNUJLHfmlclzQCeMMSD3P7ix2G7M8JJnlfTbqBS
4U4AnjhLSSPFun2rWQirQ5w9D7ubM3gC
=ounU
-----END PGP SIGNATURE-----
Vendored Executable
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
+1
View File
@@ -0,0 +1 @@
3.0 (quilt)
+1
View File
@@ -0,0 +1 @@
debian/provenance/g15stats_1.9.2-2.diff.gz
+3
View File
@@ -0,0 +1,3 @@
Tests: help
Depends: @
Restrictions: superficial
Vendored Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
# Help returns before daemon connection, sensor polling or keyboard threads.
# Run only in an isolated testbed without USB device passthrough.
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT HUP INT TERM
timeout 5 g15stats --help > "$work/long"
timeout 5 g15stats -h > "$work/short"
cmp "$work/long" "$work/short"
grep -F 'g15stats 3.0.3+git20240609.95de11a' "$work/long"
grep -F -- '--interface' "$work/long"
grep -F -- '--refresh' "$work/long"
+5
View File
@@ -0,0 +1,5 @@
version=4
# Local post-3.0.3 snapshot: see PROVENANCE; no upstream signatures available.
opts="mode=git, pgpmode=none, dversionmangle=s/\+git.*//" \
https://gitlab.com/menelkir/g15stats.git refs/tags/@ANY_VERSION@
+15
View File
@@ -0,0 +1,15 @@
pkgbase = g15stats-openrc
pkgdesc = g15stats init script for OpenRC
pkgver = 20211101
pkgrel = 1
url = https://gitlab.com/menelkir/g15stats
arch = any
license = GPL2
depends = g15stats
depends = g15daemon-openrc
source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.initd
source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.confd
sha256sums = 136da674e6e7c993dd388e09b245dc43d25fefebb1e379092585cbf87bf55676
sha256sums = ca6520f9752ec526e284d4359aea57399949e0ea5e98ee5904524d186d898f01
pkgname = g15stats-openrc
+22
View File
@@ -0,0 +1,22 @@
# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>
pkgname=g15stats-openrc
pkgver=20211101
pkgrel=1
pkgdesc="g15stats init script for OpenRC"
arch=('any')
url="https://gitlab.com/menelkir/g15stats"
license=('GPL2')
depends=('g15stats' 'g15daemon-openrc')
_filename=('g15stats.initd' 'g15stats.confd')
source=("https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.initd"
"https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.confd")
sha256sums=('136da674e6e7c993dd388e09b245dc43d25fefebb1e379092585cbf87bf55676'
'ca6520f9752ec526e284d4359aea57399949e0ea5e98ee5904524d186d898f01')
package() {
install -dm755 "$pkgdir/etc/init.d"
install -dm755 "$pkgdir/etc/conf.d"
install -Dm755 "$srcdir/g15stats.initd" "$pkgdir/etc/init.d/g15stats"
install -Dm644 "$srcdir/g15stats.confd" "$pkgdir/etc/conf.d/g15stats"
}
+13
View File
@@ -0,0 +1,13 @@
pkgbase = g15stats-systemd
pkgdesc = g15stats init script for systemd
pkgver = 20211101
pkgrel = 1
url = https://gitlab.com/menelkir/g15stats
arch = any
license = GPL2
depends = g15stats
depends = g15daemon-systemd
source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.service
sha256sums = 2723465ba726a4675d442fdb3068353def37bc70ce84cdab6c65f1c450c1dc4a
pkgname = g15stats-systemd
+17
View File
@@ -0,0 +1,17 @@
# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>
pkgname=g15stats-systemd
pkgver=20211101
pkgrel=1
pkgdesc="g15stats init script for systemd"
arch=('any')
url="https://gitlab.com/menelkir/g15stats"
license=('GPL2')
depends=('g15stats' 'g15daemon-systemd')
_filename='g15stats.run'
source=("https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.service")
sha256sums=('2723465ba726a4675d442fdb3068353def37bc70ce84cdab6c65f1c450c1dc4a')
package() {
install -D -m 644 "g15stats.service" "${pkgdir}/usr/lib/systemd/system/g15stats.service"
}
+17
View File
@@ -0,0 +1,17 @@
pkgbase = g15stats
pkgdesc = A CPU/Mem/Swap/Network monitoring client for G15Daemon.
pkgver = 3.0.3
pkgrel = 2
url = https://gitlab.com/menelkir/g15stats
arch = i686
arch = x86_64
license = GPL
depends = g15daemon
depends = libgtop
depends = libg15
depends = libg15render
source = https://gitlab.com/menelkir/g15stats/-/archive/3.0.3/g15stats-3.0.3.tar.bz2
sha512sums = 6034fec8f2188182c6fd7587ec5f5ef8d06b617875573382385edc12f1aefb3b9bf52b437eafb7c9412676c5ceae42ae8c9c2099270908aea2b949d01df79047
pkgname = g15stats
+32
View File
@@ -0,0 +1,32 @@
# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>
# Contributor: Mathieu OTHACEHE <m.othacehe@gmail.com>
# Contributor: Brenton <brenton@taylorbyte.com>
pkgname=g15stats
pkgver=3.0.3
pkgrel=2
pkgdesc="A CPU/Mem/Swap/Network monitoring client for G15Daemon."
arch=('i686' 'x86_64')
url="https://gitlab.com/menelkir/g15stats"
license=('GPL')
depends=('g15daemon' 'libgtop' 'libg15' 'libg15render')
source=(https://gitlab.com/menelkir/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2)
sha512sums=('6034fec8f2188182c6fd7587ec5f5ef8d06b617875573382385edc12f1aefb3b9bf52b437eafb7c9412676c5ceae42ae8c9c2099270908aea2b949d01df79047')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
echo ""
echo "This package doesn't come with an init, you should install one:"
echo "g15stats-runit"
echo "g15stats-openrc"
echo "g15stats-systemd"
}
+33
View File
@@ -0,0 +1,33 @@
PORTNAME= g15stats
PORTVERSION= 3.0.3
CATEGORIES= sysutils
MASTER_SITES= https://gitlab.com/menelkir/${PORTNAME}/-/archive/${PORTVERSION}/
MAINTAINER= dmenelkir@gmail.com
COMMENT= Resource monitor for G15daemon
LICENSE= GPLv2
LIB_DEPENDS+= libg15.so:sysutils/libg15 \
libg15render.so:sysutils/libg15render \
libgtop-2.0.so:devel/libgtop \
libg15daemon_client.so:sysutils/g15daemon
USES= gmake localbase libtool gnome pkgconfig
USE_LDCONFIG= yes
USE_GNOME+= glib20
GNU_CONFIGURE= yes
CFLAGS+= -std=c99 -fcommon
USE_RC_SUBR= g15stats
INSTALL_TARGET= install-strip
PLIST_FILES= bin/g15stats \
etc/rc.d/g15stats
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1621364357
SHA256 (g15stats-3.0.3.tar.gz) = 000ad7852fcf5b2d9524ea4fb0799654341b4ea23e076848e3b96dcb7d41d250
SIZE (g15stats-3.0.3.tar.gz) = 363805
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: g15stats
# REQUIRE: LOGIN g15daemon
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# g15stats_enable (bool): Set to NO by default.
# Set it to YES to enable doormand.
. /etc/rc.subr
name=g15stats
rcvar="${name}_enable"
load_rc_config $name
: ${g15stats_enable:="NO"}
command=%%PREFIX%%/bin/${name}
command_args='-d -i re0'
run_rc_command "$1"
+3
View File
@@ -0,0 +1,3 @@
Resource Monitor for G15Daemon.
WWW: https://gitlab.com/menelkir/g15stats
+1
View File
@@ -0,0 +1 @@
DIST g15stats-3.0.2.tar.bz2 295556 BLAKE2B d2e96e9d715f7dde5ec6227f5fe6d6d110bfd80d33a831ec1dffda754c4c606fce1134502cb44de691303e2f4f0d7960f806ef37c82002de896a12c90dc0b3b0 SHA512 d0b0aaca5cb551a77ce09e63bf903764cafc060636d0d19baae245e9b397926f15d776aa08076dc71aafaf2c5aa064fea77f589d10fec908c8543217ff3a3d69
+46
View File
@@ -0,0 +1,46 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="CPU, memory, swap, network stats for G15 Keyboard"
HOMEPAGE="https://gitlab.com/menelkir/${PN}"
SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${PN}-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND="app-misc/g15daemon
dev-libs/libg15
dev-libs/libg15render
sys-libs/zlib
gnome-base/libgtop"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
}
src_configure() {
export CPPFLAGS="${CFLAGS}"
econf
}
src_install() {
default
rm "${D}"/usr/share/doc/${PF}/{COPYING,NEWS} || die
newconfd "${S}/contrib/init/${PN}.confd" ${PN}
newinitd "${S}/contrib/init/${PN}.initd" ${PN}
}
pkg_postinst() {
elog "Remember to set the interface you want monitored in"
elog "/etc/conf.d/g15stats"
}
+48
View File
@@ -0,0 +1,48 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools git-r3
DESCRIPTION="CPU, memory, swap, network stats for G15 Keyboard"
HOMEPAGE="https://gitlab.com/menelkir/${PN}"
EGIT_REPO_URI="https://gitlab.com/menelkir/${PN}.git"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS=""
RDEPEND="app-misc/g15daemon
dev-libs/libg15
dev-libs/libg15render
sys-libs/zlib
gnome-base/libgtop"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
mv configure.{in,ac} || die
eautoreconf
}
src_configure() {
export CPPFLAGS="${CFLAGS}"
econf
}
src_install() {
default
rm "${D}"/usr/share/doc/${PF}/{COPYING,NEWS} || die
newconfd "${S}/contrib/init/${PN}.confd" ${PN}
newinitd "${S}/contrib/init/${PN}.initd" ${PN}
}
pkg_postinst() {
elog "Remember to set the interface you want monitored in"
elog "/etc/conf.d/g15stats"
}
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>robbat2@gentoo.org</email>
</maintainer>
<maintainer type="person">
<email>polynomial-c@gentoo.org</email>
<name>Lars Wendler</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">g15daemon</remote-id>
</upstream>
</pkgmetadata>
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
sv check g15daemon >/dev/null || exit 1
exec g15stats
+18
View File
@@ -0,0 +1,18 @@
# Template file for 'g15stats'
pkgname=g15stats
version=3.0.3
revision=1
build_style=gnu-configure
CFLAGS=" -fcommon" # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
makedepends="libgtop-devel g15daemon pkg-config"
depends="libgtop g15daemon"
short_desc="An usage monitor for G15daemon"
maintainer="Daniel Menelkir <dmenelkir@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/menelkir/g15stats"
distfiles="${homepage}/-/archive/${version}/g15stats-${version}.tar.bz2"
checksum=f5bb77d4b8a1030d07efc22919446c4abf876ca3086ff7c50cfcae9d67b64647
post_install() {
vsv g15stats
}