FreeBSD Bugzilla – Attachment 227155 Details for
Bug 252987
[new port] sysutils/g15daemon: daemon for Logitech G15 Keyboards
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v9
g15daemon-v9.diff (text/plain), 3.85 KB, created by
Daniel Menelkir
on 2021-08-13 08:40:03 UTC
(
hide
)
Description:
v9
Filename:
MIME Type:
Creator:
Daniel Menelkir
Created:
2021-08-13 08:40:03 UTC
Size:
3.85 KB
patch
obsolete
>diff --git a/sysutils/g15daemon/Makefile b/sysutils/g15daemon/Makefile >new file mode 100644 >index 000000000000..c192558e1d60 >--- /dev/null >+++ b/sysutils/g15daemon/Makefile >@@ -0,0 +1,26 @@ >+PORTNAME= g15daemon >+PORTVERSION= 3.0.4 >+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 <bsd.port.mk> >diff --git a/sysutils/g15daemon/distinfo b/sysutils/g15daemon/distinfo >new file mode 100644 >index 000000000000..c5e8f7695304 >--- /dev/null >+++ b/sysutils/g15daemon/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1628795795 >+SHA256 (g15daemon-3.0.4.tar.gz) = 04acbfdc833e5af535ac2e15aad9aba2be381de09191736687b153cbd9c94fe7 >+SIZE (g15daemon-3.0.4.tar.gz) = 453663 >diff --git a/sysutils/g15daemon/files/g15daemon.in b/sysutils/g15daemon/files/g15daemon.in >new file mode 100644 >index 000000000000..7f9ab2698932 >--- /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" >diff --git a/sysutils/g15daemon/files/patch-g15daemon_main.c b/sysutils/g15daemon/files/patch-g15daemon_main.c >new file mode 100644 >index 000000000000..a4cb638ee53b >--- /dev/null >+++ b/sysutils/g15daemon/files/patch-g15daemon_main.c >@@ -0,0 +1,20 @@ >+--- g15daemon/main.c.orig 2021-07-18 05:12:40 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"); >+ } >diff --git a/sysutils/g15daemon/pkg-descr b/sysutils/g15daemon/pkg-descr >new file mode 100644 >index 000000000000..f8fd19f335e7 >--- /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 >diff --git a/sysutils/g15daemon/pkg-plist b/sysutils/g15daemon/pkg-plist >new file mode 100644 >index 000000000000..7c1e4f1a2174 >--- /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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252987
:
221891
|
221892
|
221893
|
221915
|
223239
|
224544
|
225327
|
226470
|
227155
|
227157
|
227169