Updated distro files

This commit is contained in:
Daniel Menelkir committed 2021-06-08 20:27:27 -03:00
1 parent ee4adb969b
commit 7ad83e1529
18 files changed
+341

No files matched your search

+15
View File
@@ -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
+21
View File
@@ -0,0 +1,21 @@
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
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"
}
+13
View File
@@ -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
+17
View File
@@ -0,0 +1,17 @@
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
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"
}
+13
View File
@@ -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
+16
View File
@@ -0,0 +1,16 @@
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
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"
}
+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
+33
View File
@@ -0,0 +1,33 @@
# Maintainer: Mathieu OTHACEHE <m.othacehe@gmail.com>
# Contributor: Mathieu OTHACEHE <m.othacehe@gmail.com>
# Contributor: Brenton <brenton@taylorbyte.com>
# Contributor: Daniel Menelkir <menelkir at itroll dot org>
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= 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 <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 <menelkir@itroll.org>"
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
}