git: a9bf6e057152 - main - sysutils/g15daemon: New port: Daemon for Logitech G15 Keyboards
Guangyuan Yang
ygy at FreeBSD.org
Sat Aug 14 00:25:25 UTC 2021
The branch main has been updated by ygy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a9bf6e05715247ac5bd90405b90bfebd6af35c29
commit a9bf6e05715247ac5bd90405b90bfebd6af35c29
Author: Daniel Menelkir <menelkir at itroll.org>
AuthorDate: 2021-08-14 00:25:15 +0000
Commit: Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-08-14 00:25:15 +0000
sysutils/g15daemon: New port: Daemon for Logitech G15 Keyboards
PR: 252987
---
sysutils/Makefile | 1 +
sysutils/g15daemon/Makefile | 31 +++++++++++++++++++++++++++++++
sysutils/g15daemon/distinfo | 3 +++
sysutils/g15daemon/files/g15daemon.in | 27 +++++++++++++++++++++++++++
sysutils/g15daemon/pkg-descr | 7 +++++++
sysutils/g15daemon/pkg-plist | 16 ++++++++++++++++
6 files changed, 85 insertions(+)
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 6877dfa0c2bd..a9d8a8e18cf3 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -432,6 +432,7 @@
SUBDIR += fusefs-zip
SUBDIR += fvcool
SUBDIR += fwup
+ SUBDIR += g15daemon
SUBDIR += gaffitter
SUBDIR += ganglia-monitor-core
SUBDIR += ganglia-webfrontend
diff --git a/sysutils/g15daemon/Makefile b/sysutils/g15daemon/Makefile
new file mode 100644
index 000000000000..4a98d71b92f8
--- /dev/null
+++ b/sysutils/g15daemon/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= g15daemon
+PORTVERSION= 3.0.4
+CATEGORIES= sysutils
+MASTER_SITES= https://gitlab.com/menelkir/${PORTNAME}/-/archive/${PORTVERSION}/
+
+MAINTAINER= menelkir at itroll.org
+COMMENT= Daemon for Logitech G15 Keyboards
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+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
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
+ ${WRKSRC}/g15daemon/main.c
+
+.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/pkg-descr b/sysutils/g15daemon/pkg-descr
new file mode 100644
index 000000000000..415d6bc21480
--- /dev/null
+++ b/sysutils/g15daemon/pkg-descr
@@ -0,0 +1,7 @@
+G15daemon takes control of the G15 keyboard, allowing the use of all keys
+through the uinput device driver. It also controls the use of the
+keyboard's LCD display, allows multiple, simultaneous client applications
+to connect, and gives the user the ability to switch between client apps
+at the press of a button.
+
+WWW: https://gitlab.com/menelkir/g15daemon
diff --git a/sysutils/g15daemon/pkg-plist b/sysutils/g15daemon/pkg-plist
new file mode 100644
index 000000000000..7107a00b4180
--- /dev/null
+++ b/sysutils/g15daemon/pkg-plist
@@ -0,0 +1,16 @@
+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
More information about the dev-commits-ports-all
mailing list