Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cef3398d88 | ||
|
|
9f0f01ed9e | ||
|
|
b12478b3b8 | ||
|
|
1c3f49f905 | ||
|
|
2ba45c8e9a | ||
|
|
bd01f2ab24 | ||
|
|
3297bfbdf1 |
No files matched your search
Vendored
+17
-10
@@ -1,8 +1,8 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Attempt to guess a canonical system name.
|
# 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
|
# 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
|
# under the terms of the GNU General Public License as published by
|
||||||
@@ -50,7 +50,7 @@ version="\
|
|||||||
GNU config.guess ($timestamp)
|
GNU config.guess ($timestamp)
|
||||||
|
|
||||||
Originally written by Per Bothner.
|
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
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
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
|
# Note: NetBSD doesn't particularly care about the vendor
|
||||||
# portion of the name. We always set it to "unknown".
|
# portion of the name. We always set it to "unknown".
|
||||||
sysctl="sysctl -n hw.machine_arch"
|
|
||||||
UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \
|
UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \
|
||||||
"/sbin/$sysctl" 2>/dev/null || \
|
/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
|
||||||
"/usr/sbin/$sysctl" 2>/dev/null || \
|
/usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
|
||||||
echo unknown))
|
echo unknown))
|
||||||
case "$UNAME_MACHINE_ARCH" in
|
case "$UNAME_MACHINE_ARCH" in
|
||||||
aarch64eb) machine=aarch64_be-unknown ;;
|
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.//')
|
UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//')
|
||||||
echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
|
echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
|
||||||
exit ;;
|
exit ;;
|
||||||
|
*:SecBSD:*:*)
|
||||||
|
UNAME_MACHINE_ARCH=$(arch | sed 's/SecBSD.//')
|
||||||
|
echo "$UNAME_MACHINE_ARCH"-unknown-secbsd"$UNAME_RELEASE"
|
||||||
|
exit ;;
|
||||||
*:LibertyBSD:*:*)
|
*:LibertyBSD:*:*)
|
||||||
UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
|
UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
|
||||||
echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
|
echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
|
||||||
@@ -950,7 +953,7 @@ EOF
|
|||||||
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
|
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
|
||||||
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
arc:Linux:*:* | arceb:Linux:*:*)
|
arc:Linux:*:* | arceb:Linux:*:* | arc64:Linux:*:*)
|
||||||
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
arm*:Linux:*:*)
|
arm*:Linux:*:*)
|
||||||
@@ -996,6 +999,9 @@ EOF
|
|||||||
k1om:Linux:*:*)
|
k1om:Linux:*:*)
|
||||||
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
|
loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
|
||||||
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
|
exit ;;
|
||||||
m32r*:Linux:*:*)
|
m32r*:Linux:*:*)
|
||||||
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
@@ -1084,7 +1090,7 @@ EOF
|
|||||||
ppcle:Linux:*:*)
|
ppcle:Linux:*:*)
|
||||||
echo powerpcle-unknown-linux-"$LIBC"
|
echo powerpcle-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
riscv32:Linux:*:* | riscv64:Linux:*:*)
|
riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
|
||||||
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
||||||
exit ;;
|
exit ;;
|
||||||
s390:Linux:*:* | s390x:Linux:*:*)
|
s390:Linux:*:* | s390x:Linux:*:*)
|
||||||
@@ -1480,8 +1486,8 @@ EOF
|
|||||||
i*86:rdos:*:*)
|
i*86:rdos:*:*)
|
||||||
echo "$UNAME_MACHINE"-pc-rdos
|
echo "$UNAME_MACHINE"-pc-rdos
|
||||||
exit ;;
|
exit ;;
|
||||||
i*86:AROS:*:*)
|
*:AROS:*:*)
|
||||||
echo "$UNAME_MACHINE"-pc-aros
|
echo "$UNAME_MACHINE"-unknown-aros
|
||||||
exit ;;
|
exit ;;
|
||||||
x86_64:VMkernel:*:*)
|
x86_64:VMkernel:*:*)
|
||||||
echo "$UNAME_MACHINE"-unknown-esx
|
echo "$UNAME_MACHINE"-unknown-esx
|
||||||
@@ -1696,3 +1702,4 @@ exit 1
|
|||||||
# time-stamp-format: "%:y-%02m-%02d"
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
# time-stamp-end: "'"
|
# time-stamp-end: "'"
|
||||||
# End:
|
# End:
|
||||||
|
|
||||||
Vendored
+21
-10
@@ -1,8 +1,8 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# 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
|
# 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
|
# 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="\
|
version="\
|
||||||
GNU config.sub ($timestamp)
|
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
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
@@ -1165,7 +1165,7 @@ case $cpu-$vendor in
|
|||||||
| alphapca5[67] | alpha64pca5[67] \
|
| alphapca5[67] | alpha64pca5[67] \
|
||||||
| am33_2.0 \
|
| am33_2.0 \
|
||||||
| amdgcn \
|
| amdgcn \
|
||||||
| arc | arceb \
|
| arc | arceb | arc64 \
|
||||||
| arm | arm[lb]e | arme[lb] | armv* \
|
| arm | arm[lb]e | arme[lb] | armv* \
|
||||||
| avr | avr32 \
|
| avr | avr32 \
|
||||||
| asmjs \
|
| asmjs \
|
||||||
@@ -1185,6 +1185,7 @@ case $cpu-$vendor in
|
|||||||
| k1om \
|
| k1om \
|
||||||
| le32 | le64 \
|
| le32 | le64 \
|
||||||
| lm32 \
|
| lm32 \
|
||||||
|
| loongarch32 | loongarch64 | loongarchx32 \
|
||||||
| m32c | m32r | m32rle \
|
| m32c | m32r | m32rle \
|
||||||
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
|
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
|
||||||
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
|
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
|
||||||
@@ -1203,9 +1204,13 @@ case $cpu-$vendor in
|
|||||||
| mips64vr5900 | mips64vr5900el \
|
| mips64vr5900 | mips64vr5900el \
|
||||||
| mipsisa32 | mipsisa32el \
|
| mipsisa32 | mipsisa32el \
|
||||||
| mipsisa32r2 | mipsisa32r2el \
|
| mipsisa32r2 | mipsisa32r2el \
|
||||||
|
| mipsisa32r3 | mipsisa32r3el \
|
||||||
|
| mipsisa32r5 | mipsisa32r5el \
|
||||||
| mipsisa32r6 | mipsisa32r6el \
|
| mipsisa32r6 | mipsisa32r6el \
|
||||||
| mipsisa64 | mipsisa64el \
|
| mipsisa64 | mipsisa64el \
|
||||||
| mipsisa64r2 | mipsisa64r2el \
|
| mipsisa64r2 | mipsisa64r2el \
|
||||||
|
| mipsisa64r3 | mipsisa64r3el \
|
||||||
|
| mipsisa64r5 | mipsisa64r5el \
|
||||||
| mipsisa64r6 | mipsisa64r6el \
|
| mipsisa64r6 | mipsisa64r6el \
|
||||||
| mipsisa64sb1 | mipsisa64sb1el \
|
| mipsisa64sb1 | mipsisa64sb1el \
|
||||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||||
@@ -1229,7 +1234,7 @@ case $cpu-$vendor in
|
|||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
|
||||||
| pru \
|
| pru \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
| riscv | riscv32 | riscv64 \
|
| riscv | riscv32 | riscv32be | riscv64 | riscv64be \
|
||||||
| rl78 | romp | rs6000 | rx \
|
| rl78 | romp | rs6000 | rx \
|
||||||
| s390 | s390x \
|
| s390 | s390x \
|
||||||
| score \
|
| score \
|
||||||
@@ -1682,11 +1687,14 @@ fi
|
|||||||
|
|
||||||
# Now, validate our (potentially fixed-up) OS.
|
# Now, validate our (potentially fixed-up) OS.
|
||||||
case $os in
|
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*)
|
musl* | newlib* | uclibc*)
|
||||||
;;
|
;;
|
||||||
# Likewise for "kernel-libc"
|
# Likewise for "kernel-abi"
|
||||||
eabi | eabihf | gnueabi | gnueabihf)
|
eabi* | gnueabi*)
|
||||||
|
;;
|
||||||
|
# VxWorks passes extra cpu info in the 4th filed.
|
||||||
|
simlinux | simwindows | spe)
|
||||||
;;
|
;;
|
||||||
# Now accept the basic system types.
|
# Now accept the basic system types.
|
||||||
# The portable systems comes first.
|
# The portable systems comes first.
|
||||||
@@ -1703,12 +1711,12 @@ case $os in
|
|||||||
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
|
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
|
||||||
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
|
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
|
||||||
| mirbsd* | netbsd* | dicos* | openedition* | ose* \
|
| mirbsd* | netbsd* | dicos* | openedition* | ose* \
|
||||||
| bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
|
| bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
|
||||||
| ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
|
| ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
|
||||||
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
|
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
|
||||||
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
|
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
|
||||||
| udi* | lites* | ieee* | go32* | aux* | hcos* \
|
| udi* | lites* | ieee* | go32* | aux* | hcos* \
|
||||||
| chorusrdb* | cegcc* | glidix* \
|
| chorusrdb* | cegcc* | glidix* | serenity* \
|
||||||
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
|
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
|
||||||
| midipix* | mingw32* | mingw64* | mint* \
|
| midipix* | mingw32* | mingw64* | mint* \
|
||||||
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
|
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
|
||||||
@@ -1750,6 +1758,8 @@ case $kernel-$os in
|
|||||||
;;
|
;;
|
||||||
kfreebsd*-gnu* | kopensolaris*-gnu*)
|
kfreebsd*-gnu* | kopensolaris*-gnu*)
|
||||||
;;
|
;;
|
||||||
|
vxworks-simlinux | vxworks-simwindows | vxworks-spe)
|
||||||
|
;;
|
||||||
nto-qnx*)
|
nto-qnx*)
|
||||||
;;
|
;;
|
||||||
os2-emx)
|
os2-emx)
|
||||||
@@ -1852,3 +1862,4 @@ exit
|
|||||||
# time-stamp-format: "%:y-%02m-%02d"
|
# time-stamp-format: "%:y-%02m-%02d"
|
||||||
# time-stamp-end: "'"
|
# time-stamp-end: "'"
|
||||||
# End:
|
# End:
|
||||||
|
|
||||||
@@ -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 )
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
IFACE="eth0"
|
IFACE="eth0"
|
||||||
|
|
||||||
# Please see g15stats --help for meanings
|
# Please see g15stats --help for meanings
|
||||||
#TEMP_INPUT=1
|
TEMP_INPUT=1
|
||||||
#GLOBAL_TEMP_INPUT=1
|
GLOBAL_TEMP_INPUT=1
|
||||||
#FAN_INPUT=1
|
FAN_INPUT=1
|
||||||
|
|
||||||
# please see g15stats --help for all options
|
# please see g15stats --help for all options
|
||||||
# As of 1.9.7, the options where:
|
# As of 1.9.7, the options where:
|
||||||
|
|||||||
@@ -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"
|
||||||
@@ -6,7 +6,7 @@ PIDFILE=/var/run/${SVCNAME}.pid
|
|||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need g15daemon
|
need g15daemon
|
||||||
after xdm
|
after display-manager
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ Restart=on-failure
|
|||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
pkgbase = g15stats-openrc
|
||||||
|
pkgdesc = g15stats init script for OpenRC
|
||||||
|
pkgver = 20210210
|
||||||
|
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 https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.confd
|
||||||
|
sha256sums = e155c92fc3639a2785df1020053cf2881eb53490402dbe8053761302641c7ed2 57d18f10ededd1003c59e86c2a1721165a0aa6c731bc8880710bb2e8e182bd52
|
||||||
|
|
||||||
|
pkgname = g15stats-openrc
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
|
||||||
|
pkgname=g15stats-openrc
|
||||||
|
pkgver=20210210
|
||||||
|
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=('e155c92fc3639a2785df1020053cf2881eb53490402dbe8053761302641c7ed2
|
||||||
|
57d18f10ededd1003c59e86c2a1721165a0aa6c731bc8880710bb2e8e182bd52
|
||||||
|
')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
date +%Y%m%d
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -dm755 "$pkgdir/etc/init.d"
|
||||||
|
install -dm755 "$pkgdir/etc/conf.d"
|
||||||
|
install -Dm755 "$srcdir/$_service.initd" "$pkgdir/etc/init.d/$_service"
|
||||||
|
install -Dm644 "$srcdir/$_service.confd" "$pkgdir/etc/conf.d/$_service"
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
pkgbase = g15stats-runit
|
||||||
|
pkgdesc = g15stats init script for runit
|
||||||
|
pkgver = 20210405
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://gitlab.com/menelkir/g15stats
|
||||||
|
arch = any
|
||||||
|
license = GPL2
|
||||||
|
depends = g15daemon
|
||||||
|
depends = runit
|
||||||
|
source = https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.run
|
||||||
|
sha256sums = 4860d43f7104eddf3b9440295171a2c9b4d31b3398789a5adfb684d38c8e6351
|
||||||
|
|
||||||
|
pkgname = g15stats-runit
|
||||||
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
|
||||||
|
pkgname=g15stats-runit
|
||||||
|
pkgver=20210405
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="g15stats init script for runit"
|
||||||
|
arch=('any')
|
||||||
|
url="https://gitlab.com/menelkir/g15stats"
|
||||||
|
license=('GPL2')
|
||||||
|
depends=('g15daemon' 'runit')
|
||||||
|
_filename='g15stats.run'
|
||||||
|
source=("https://gitlab.com/menelkir/g15stats/-/raw/master/contrib/init/g15stats.run")
|
||||||
|
sha256sums=('4860d43f7104eddf3b9440295171a2c9b4d31b3398789a5adfb684d38c8e6351')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
date +%Y%m%d
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$srcdir/g15stats.run" "$pkgdir/etc/runit/sv/g15stats/run"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
pkgbase = g15stats-systemd
|
||||||
|
pkgdesc = g15stats init script for systemd
|
||||||
|
pkgver = 20210420
|
||||||
|
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
|
||||||
|
sha512sums = c74bc8965dd6152088d3c558b0f27580b8c038d3a51e1e5ac8dab4a64d25affa3ee512ecc6075e4852976921407d603f75045773153b502bc58857c133e945d6
|
||||||
|
|
||||||
|
pkgname = g15stats-systemd
|
||||||
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Maintainer: Daniel Menelkir <menelkir at itroll dot org>
|
||||||
|
pkgname=g15stats-systemd
|
||||||
|
pkgver=20210420
|
||||||
|
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")
|
||||||
|
sha512sums=('c74bc8965dd6152088d3c558b0f27580b8c038d3a51e1e5ac8dab4a64d25affa3ee512ecc6075e4852976921407d603f75045773153b502bc58857c133e945d6')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
date +%Y%m%d
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -D -m 644 "g15stats.service" "${pkgdir}/usr/lib/systemd/system/g15stats.service"
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
pkgbase = g15stats
|
||||||
|
pkgdesc = A CPU/Mem/Swap/Network monitoring client for G15Daemon.
|
||||||
|
pkgver = 3.0.1
|
||||||
|
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.1/g15stats-3.0.1.tar.bz2
|
||||||
|
sha512sums = ace44632f3beab3a1debb47d319c510723cbf2dc95f0cd732ae2cd9fbf94075515485a612f6273cb188cac1a525bde1cc667e25b0622ef0e57564298fa1555ea
|
||||||
|
|
||||||
|
pkgname = g15stats
|
||||||
|
|
||||||
@@ -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.1
|
||||||
|
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=('ace44632f3beab3a1debb47d319c510723cbf2dc95f0cd732ae2cd9fbf94075515485a612f6273cb188cac1a525bde1cc667e25b0622ef0e57564298fa1555ea')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "You need to install an init script depending on what you're using it."
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= g15stats
|
||||||
|
PORTVERSION= 1.9.8
|
||||||
|
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>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
TIMESTAMP = 1615334892
|
||||||
|
SHA256 (g15stats-1.9.8.tar.gz) = 803d51e1a365131e16be471ba1635d8626a0afefd937645a2d00ee222279bdb4
|
||||||
|
SIZE (g15stats-1.9.8.tar.gz) = 360971
|
||||||
@@ -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"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Resource Monitor for G15Daemon.
|
||||||
|
|
||||||
|
WWW: https://gitlab.com/menelkir/g15stats
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
bin/g15stats
|
||||||
|
etc/rc.d/g15stats
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
DIST g15stats-3.0.2.tar.bz2 295556 BLAKE2B d2e96e9d715f7dde5ec6227f5fe6d6d110bfd80d33a831ec1dffda754c4c606fce1134502cb44de691303e2f4f0d7960f806ef37c82002de896a12c90dc0b3b0 SHA512 d0b0aaca5cb551a77ce09e63bf903764cafc060636d0d19baae245e9b397926f15d776aa08076dc71aafaf2c5aa064fea77f589d10fec908c8543217ff3a3d69
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
Reference in new issue
Block a user