--- /dev/null +++ b/sysutils/g15daemon/Makefile @@ -0,0 +1,26 @@ +PORTNAME= g15daemon +PORTVERSION= 3.0.3 +CATEGORIES= sysutils +MASTER_SITES= https://gitlab.com/menelkir/${PORTNAME}/-/archive/${PORTVERSION}/ + +MAINTAINER= menelkir@itroll.org +COMMENT= Daemon for use the G-Buttons and draw on the G15 LCD + +LICENSE= GPLv2 + +LIB_DEPENDS+= libg15.so:sysutils/libg15 \ + libg15render.so:sysutils/libg15render \ + libinput.so:x11/libinput + +USES= gmake localbase libtool + +USE_LDCONFIG= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${LOCALBASE}/etc + +USE_RC_SUBR= g15daemon + +INSTALL_TARGET= install-strip + +.include --- /dev/null +++ b/sysutils/g15daemon/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1626232163 +SHA256 (g15daemon-3.0.3.tar.gz) = 2bbcc9c3b0c84aea9aece264cdca0e6c9c6f55ebecb4764347adfbabd382c76b +SIZE (g15daemon-3.0.3.tar.gz) = 452738 --- /dev/null +++ b/sysutils/g15daemon/files/g15daemon.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: g15daemon +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# g15daemon_enable (bool): Set to NO by default. +# Set it to YES to enable doormand. + +. /etc/rc.subr + +name=g15daemon +rcvar=g15daemon_enable + +load_rc_config $name + +: ${daemon_enable:="NO"} + +command=%%PREFIX%%/sbin/${name} +pidfile=/var/run/${name}.pid + +run_rc_command "$1" --- /dev/null +++ b/sysutils/g15daemon/files/patch-g15daemon_main.c @@ -0,0 +1,20 @@ +--- g15daemon/main.c.orig 2021-07-14 03:10:08 UTC ++++ g15daemon/main.c +@@ -446,7 +446,7 @@ int main (int argc, char *argv[]) { + setKBBrightness(lcdlist->kb_backlight_state); + #endif + #endif +- uf_conf_open(lcdlist, "/etc/g15daemon.conf"); ++ uf_conf_open(lcdlist, "/usr/local/etc/g15daemon.conf"); + global_cfg=g15daemon_cfg_load_section(lcdlist,"Global"); + if(!cycle_cmdline_override){ + cycle_key = 1==g15daemon_cfg_read_bool(global_cfg,"Use MR as Cycle Key",0)?G15_KEY_MR:G15_KEY_L1; +@@ -527,7 +527,7 @@ int main (int argc, char *argv[]) { + setegid(0); + closelog(); + g15daemon_quit_refresh(); +- uf_conf_write(lcdlist,"/etc/g15daemon.conf"); ++ uf_conf_write(lcdlist,"/usr/local/etc/g15daemon.conf"); + uf_conf_free(lcdlist); + unlink("/var/run/g15daemon.pid"); + } --- /dev/null +++ b/sysutils/g15daemon/pkg-descr @@ -0,0 +1,3 @@ +Daemon to use the G-Buttons and draw on the G15 LCD + +WWW: https://gitlab.com/menelkir/g15daemon --- /dev/null +++ b/sysutils/g15daemon/pkg-plist @@ -0,0 +1,17 @@ +etc/rc.d/g15daemon +include/g15daemon.h +include/g15daemon_client.h +lib/g15daemon/3.0/plugins/g15plugin_clock.a +lib/g15daemon/3.0/plugins/g15plugin_clock.so +lib/g15daemon/3.0/plugins/g15plugin_tcpserver.a +lib/g15daemon/3.0/plugins/g15plugin_tcpserver.so +lib/g15daemon/3.0/plugins/g15plugin_uinput.a +lib/g15daemon/3.0/plugins/g15plugin_uinput.so +lib/libg15daemon_client.a +lib/libg15daemon_client.so +lib/libg15daemon_client.so.3 +lib/libg15daemon_client.so.3.0.0 +man/man1/g15daemon.1.gz +man/man3/g15daemon_client_devel.3.gz +sbin/g15daemon +%%DATADIR%%/splash/g15logo3.wbmp