diff --git a/dist/arch/g15stats-openrc/.SRCINFO b/dist/arch/g15stats-openrc/.SRCINFO new file mode 100644 index 0000000..5673fc7 --- /dev/null +++ b/dist/arch/g15stats-openrc/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = g15stats-openrc + pkgdesc = g15stats init script for OpenRC + pkgver = 20210605 + pkgrel = 1 + url = https://gitlab.com/menelkir/g15stats + arch = any + license = GPL2 + depends = g15stats + depends = 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 = 6d43c777ececbe7a926b57b0bcf948df5ee810b6a676dd59ebc89c667d3d47d0 + sha256sums = ca6520f9752ec526e284d4359aea57399949e0ea5e98ee5904524d186d898f01 + +pkgname = g15stats-openrc diff --git a/dist/arch/g15stats-openrc/PKGBUILD b/dist/arch/g15stats-openrc/PKGBUILD new file mode 100644 index 0000000..78e5960 --- /dev/null +++ b/dist/arch/g15stats-openrc/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Daniel Menelkir +pkgname=g15stats-openrc +pkgver=20210605 +pkgrel=1 +pkgdesc="g15stats init script for OpenRC" +arch=('any') +url="https://gitlab.com/menelkir/g15stats" +license=('GPL2') +depends=('g15stats' '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=('6d43c777ececbe7a926b57b0bcf948df5ee810b6a676dd59ebc89c667d3d47d0' + '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" +} diff --git a/dist/arch/g15stats-runit/.SRCINFO b/dist/arch/g15stats-runit/.SRCINFO new file mode 100644 index 0000000..33da53b --- /dev/null +++ b/dist/arch/g15stats-runit/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = g15stats-runit + pkgdesc = g15stats init script for runit + pkgver = 20210605 + pkgrel = 1 + url = https://gitlab.com/menelkir/g15stats + arch = any + license = GPL2 + depends = g15stats + depends = runit + source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.run + sha256sums = 4860d43f7104eddf3b9440295171a2c9b4d31b3398789a5adfb684d38c8e6351 + +pkgname = g15stats-runit diff --git a/dist/arch/g15stats-runit/PKGBUILD b/dist/arch/g15stats-runit/PKGBUILD new file mode 100644 index 0000000..ad8c5c6 --- /dev/null +++ b/dist/arch/g15stats-runit/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Daniel Menelkir +pkgname=g15stats-runit +pkgver=20210605 +pkgrel=1 +pkgdesc="g15stats init script for runit" +arch=('any') +url="https://gitlab.com/menelkir/g15stats" +license=('GPL2') +depends=('g15stats' 'runit') +_filename='g15stats.run' +source=("https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.run") +sha256sums=('4860d43f7104eddf3b9440295171a2c9b4d31b3398789a5adfb684d38c8e6351') + +package() { + install -Dm755 "$srcdir/g15stats.run" "$pkgdir/etc/runit/sv/g15stats/run" +} + diff --git a/dist/arch/g15stats-systemd/.SRCINFO b/dist/arch/g15stats-systemd/.SRCINFO new file mode 100644 index 0000000..8f270ef --- /dev/null +++ b/dist/arch/g15stats-systemd/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = g15stats-systemd + pkgdesc = g15stats init script for systemd + pkgver = 20210605 + pkgrel = 1 + url = https://gitlab.com/menelkir/g15stats + arch = any + license = GPL2 + depends = g15stats + depends = systemd + source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.service + sha256sums = 2723465ba726a4675d442fdb3068353def37bc70ce84cdab6c65f1c450c1dc4a + +pkgname = g15stats-systemd diff --git a/dist/arch/g15stats-systemd/PKGBUILD b/dist/arch/g15stats-systemd/PKGBUILD new file mode 100644 index 0000000..c0648d6 --- /dev/null +++ b/dist/arch/g15stats-systemd/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Daniel Menelkir +pkgname=g15stats-systemd +pkgver=20210605 +pkgrel=1 +pkgdesc="g15stats init script for systemd" +arch=('any') +url="https://gitlab.com/menelkir/g15stats" +license=('GPL2') +depends=('g15stats' '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" +} diff --git a/dist/arch/g15stats/.SRCINFO b/dist/arch/g15stats/.SRCINFO new file mode 100644 index 0000000..117a528 --- /dev/null +++ b/dist/arch/g15stats/.SRCINFO @@ -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 + diff --git a/dist/arch/g15stats/PKGBUILD b/dist/arch/g15stats/PKGBUILD new file mode 100644 index 0000000..cf5b1e5 --- /dev/null +++ b/dist/arch/g15stats/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Mathieu OTHACEHE +# Contributor: Mathieu OTHACEHE +# Contributor: Brenton +# Contributor: Daniel Menelkir + +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" +} diff --git a/dist/freebsd/Makefile b/dist/freebsd/Makefile new file mode 100644 index 0000000..6446e02 --- /dev/null +++ b/dist/freebsd/Makefile @@ -0,0 +1,33 @@ +PORTNAME= g15stats +PORTVERSION= 3.0.3 +CATEGORIES= sysutils +MASTER_SITES= https://gitlab.com/menelkir/${PORTNAME}/-/archive/${PORTVERSION}/ + +MAINTAINER= menelkir@itroll.org +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 diff --git a/dist/freebsd/distinfo b/dist/freebsd/distinfo new file mode 100644 index 0000000..0397820 --- /dev/null +++ b/dist/freebsd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621364357 +SHA256 (g15stats-3.0.3.tar.gz) = 000ad7852fcf5b2d9524ea4fb0799654341b4ea23e076848e3b96dcb7d41d250 +SIZE (g15stats-3.0.3.tar.gz) = 363805 diff --git a/dist/freebsd/files/g15stats.in b/dist/freebsd/files/g15stats.in new file mode 100644 index 0000000..3adcbfc --- /dev/null +++ b/dist/freebsd/files/g15stats.in @@ -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" diff --git a/dist/freebsd/pkg-descr b/dist/freebsd/pkg-descr new file mode 100644 index 0000000..f0f260a --- /dev/null +++ b/dist/freebsd/pkg-descr @@ -0,0 +1,3 @@ +Resource Monitor for G15Daemon. + +WWW: https://gitlab.com/menelkir/g15stats diff --git a/dist/gentoo/Manifest b/dist/gentoo/Manifest new file mode 100644 index 0000000..0d3ce3a --- /dev/null +++ b/dist/gentoo/Manifest @@ -0,0 +1 @@ +DIST g15stats-3.0.2.tar.bz2 295556 BLAKE2B d2e96e9d715f7dde5ec6227f5fe6d6d110bfd80d33a831ec1dffda754c4c606fce1134502cb44de691303e2f4f0d7960f806ef37c82002de896a12c90dc0b3b0 SHA512 d0b0aaca5cb551a77ce09e63bf903764cafc060636d0d19baae245e9b397926f15d776aa08076dc71aafaf2c5aa064fea77f589d10fec908c8543217ff3a3d69 diff --git a/dist/gentoo/g15stats-3.0.2.ebuild b/dist/gentoo/g15stats-3.0.2.ebuild new file mode 100644 index 0000000..759b4e3 --- /dev/null +++ b/dist/gentoo/g15stats-3.0.2.ebuild @@ -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" +} diff --git a/dist/gentoo/g15stats-9999.ebuild b/dist/gentoo/g15stats-9999.ebuild new file mode 100644 index 0000000..6cfe1cf --- /dev/null +++ b/dist/gentoo/g15stats-9999.ebuild @@ -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" +} diff --git a/dist/gentoo/metadata.xml b/dist/gentoo/metadata.xml new file mode 100644 index 0000000..454edc6 --- /dev/null +++ b/dist/gentoo/metadata.xml @@ -0,0 +1,14 @@ + + + + + robbat2@gentoo.org + + + polynomial-c@gentoo.org + Lars Wendler + + + g15daemon + + diff --git a/dist/void/files/run b/dist/void/files/run new file mode 100644 index 0000000..a8f5307 --- /dev/null +++ b/dist/void/files/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +sv check g15daemon >/dev/null || exit 1 +exec g15stats diff --git a/dist/void/template b/dist/void/template new file mode 100644 index 0000000..e948569 --- /dev/null +++ b/dist/void/template @@ -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 " +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 +}