Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2018 16:07:03 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464508 - in head/sysutils: . msiklm msiklm/files
Message-ID:  <201803141607.w2EG73Lw025865@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Wed Mar 14 16:07:03 2018
New Revision: 464508
URL: https://svnweb.freebsd.org/changeset/ports/464508

Log:
  New port: sysutils/msiklm
  
  MSI Keyboard Light Manager (MSIKLM) is an easy-to-use command-line
  tool that allows users to configure the backlight of SteelSeries
  keyboards found in MSI gaming notebooks. It offers similar
  functionality to the SteelSeries Engine for Windows.
  
  WWW: https://github.com/Gibtnix/MSIKLM
  
  Run tested on an MSI GE62VR 7RF Apache Pro

Added:
  head/sysutils/msiklm/
  head/sysutils/msiklm/Makefile   (contents, props changed)
  head/sysutils/msiklm/distinfo   (contents, props changed)
  head/sysutils/msiklm/files/
  head/sysutils/msiklm/files/Makefile.bsd   (contents, props changed)
  head/sysutils/msiklm/files/msiklm.conf.sample.in   (contents, props changed)
  head/sysutils/msiklm/files/pkg-message.in   (contents, props changed)
  head/sysutils/msiklm/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Wed Mar 14 15:53:39 2018	(r464507)
+++ head/sysutils/Makefile	Wed Mar 14 16:07:03 2018	(r464508)
@@ -686,6 +686,7 @@
     SUBDIR += mountsmb2
     SUBDIR += mpiexec
     SUBDIR += mptd
+    SUBDIR += msiklm
     SUBDIR += msktutil
     SUBDIR += msyslog
     SUBDIR += mtpfs

Added: head/sysutils/msiklm/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/Makefile	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME=	msiklm
+DISTVERSION=	g20180227
+CATEGORIES=	sysutils
+
+MAINTAINER=	jhale@FreeBSD.org
+COMMENT=	MSI keyboard light manager
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS=		amd64 i386
+ONLY_FOR_ARCHS_REASON=	This hardware is only found on x86 systems
+
+LIB_DEPENDS=	libhidapi.so:comms/hidapi
+
+USES=		dos2unix localbase:ldflags uidfix
+DOS2UNIX_FILES=	README.md
+USE_GITHUB=	yes
+GH_ACCOUNT=	Gibtnix
+GH_PROJECT=	MSIKLM
+GH_TAGNAME=	46dd076
+
+MAKEFILE=	${FILESDIR}/Makefile.bsd
+PLIST_FILES=	bin/msiklm
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=		DEVD DOCS
+OPTIONS_DEFAULT=	DEVD
+
+DEVD_PLIST_FILES=	etc/devd/msiklm.conf.sample
+DEVD_SUB_FILES=		msiklm.conf.sample pkg-message
+
+post-install-DEVD-on:
+	${INSTALL_DATA} ${WRKDIR}/msiklm.conf.sample ${STAGEDIR}${PREFIX}/etc/devd
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/sysutils/msiklm/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/distinfo	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1520932266
+SHA256 (Gibtnix-MSIKLM-g20180227-46dd076_GH0.tar.gz) = 371d889a9f0c2d81d8bf5a9bb48a50215d46e129c4424bacba570acb559e2d33
+SIZE (Gibtnix-MSIKLM-g20180227-46dd076_GH0.tar.gz) = 22164

Added: head/sysutils/msiklm/files/Makefile.bsd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/files/Makefile.bsd	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+BINDIR=		${PREFIX}/bin
+PROG=		msiklm
+SRCS=		src/main.c src/msiklm.c 
+CFLAGS+=	-Wall -W -D_REENTRANT
+LDADD=		-lhidapi
+# Change to MK_MAN=no after 10.3 support is dropped
+NO_MAN=		yes
+
+.include <bsd.prog.mk>

Added: head/sysutils/msiklm/files/msiklm.conf.sample.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/files/msiklm.conf.sample.in	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,33 @@
+# $FreeBSD$
+#
+# This entry runs the 'msiklm' utility upon device attach to set
+# a default keyboard backlight theme.
+
+# You may adjust ARGS to suit your preference.
+# Generally, the ARGS syntax is "<colors> <brightness> <mode>".
+# Some examples are listed below, but consult 'msiklm help' and
+# %%DOCSDIR%%/README.md
+# for more detailed information.
+
+# Confirm the ARGS work as expected by running (as superuser):
+#   msiklm <ARGS>
+# before placing in the options substatement below.
+
+# Examples:
+#   set ARGS "red,white,blue high wave";
+#   set ARGS "green,blue,red medium breathe";
+#   set ARGS "orange low";
+#   set ARGS "off";
+
+options {
+	set ARGS "red,blue,green high normal";
+};
+
+notify 100 {
+	match "system"		"USB";
+	match "subsystem"	"DEVICE";
+	match "type"		"ATTACH";
+	match "vendor"		"0x1770";
+	match "product"		"0xff00";
+	action "%%PREFIX%%/bin/msiklm $ARGS";
+};

Added: head/sysutils/msiklm/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/files/pkg-message.in	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,11 @@
+-----------------------------------------------------------------------
+
+ A sample devd(8) configuration file has been installed as:
+   %%PREFIX%%/etc/devd/msiklm.conf.sample
+
+ You may want to copy this file to:
+   %%PREFIX%%/etc/devd/msiklm.conf
+ and configure it to your liking if you want msiklm to automatically
+ set your keyboard backlight to a default upon system boot/resume.
+
+-----------------------------------------------------------------------

Added: head/sysutils/msiklm/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/msiklm/pkg-descr	Wed Mar 14 16:07:03 2018	(r464508)
@@ -0,0 +1,6 @@
+MSI Keyboard Light Manager (MSIKLM) is an easy-to-use command-line
+tool that allows users to configure the backlight of SteelSeries
+keyboards found in MSI gaming notebooks. It offers similar
+functionality to the SteelSeries Engine for Windows.
+
+WWW: https://github.com/Gibtnix/MSIKLM



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803141607.w2EG73Lw025865>