From 2ba45c8e9a4e6fb3b60322f9bfc70f27a6e3751b Mon Sep 17 00:00:00 2001 From: Daniel Menelkir Date: Wed, 5 May 2021 18:54:25 -0300 Subject: [PATCH] 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 --- contrib/init/g15stats.in | 26 ++++++++++++++++++++++++ dists/g15stats/Makefile | 35 ++++++++++++++++++++++++++++++++ dists/g15stats/distinfo | 3 +++ dists/g15stats/files/g15stats.in | 26 ++++++++++++++++++++++++ dists/g15stats/pkg-descr | 3 +++ dists/g15stats/pkg-plist | 2 ++ 6 files changed, 95 insertions(+) create mode 100644 contrib/init/g15stats.in create mode 100644 dists/g15stats/Makefile create mode 100644 dists/g15stats/distinfo create mode 100644 dists/g15stats/files/g15stats.in create mode 100644 dists/g15stats/pkg-descr create mode 100644 dists/g15stats/pkg-plist diff --git a/contrib/init/g15stats.in b/contrib/init/g15stats.in new file mode 100644 index 0000000..3adcbfc --- /dev/null +++ b/contrib/init/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/dists/g15stats/Makefile b/dists/g15stats/Makefile new file mode 100644 index 0000000..5b4b743 --- /dev/null +++ b/dists/g15stats/Makefile @@ -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 diff --git a/dists/g15stats/distinfo b/dists/g15stats/distinfo new file mode 100644 index 0000000..bb6334a --- /dev/null +++ b/dists/g15stats/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1615334892 +SHA256 (g15stats-1.9.8.tar.gz) = 803d51e1a365131e16be471ba1635d8626a0afefd937645a2d00ee222279bdb4 +SIZE (g15stats-1.9.8.tar.gz) = 360971 diff --git a/dists/g15stats/files/g15stats.in b/dists/g15stats/files/g15stats.in new file mode 100644 index 0000000..3adcbfc --- /dev/null +++ b/dists/g15stats/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/dists/g15stats/pkg-descr b/dists/g15stats/pkg-descr new file mode 100644 index 0000000..f0f260a --- /dev/null +++ b/dists/g15stats/pkg-descr @@ -0,0 +1,3 @@ +Resource Monitor for G15Daemon. + +WWW: https://gitlab.com/menelkir/g15stats diff --git a/dists/g15stats/pkg-plist b/dists/g15stats/pkg-plist new file mode 100644 index 0000000..7d6551c --- /dev/null +++ b/dists/g15stats/pkg-plist @@ -0,0 +1,2 @@ +bin/g15stats +etc/rc.d/g15stats