View | Details | Raw Unified | Return to bug 252987 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 252987