mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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
This commit is contained in:
parent
9a5374aa9f
commit
ced1820199
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464508
7 changed files with 107 additions and 0 deletions
|
@ -686,6 +686,7 @@
|
||||||
SUBDIR += mountsmb2
|
SUBDIR += mountsmb2
|
||||||
SUBDIR += mpiexec
|
SUBDIR += mpiexec
|
||||||
SUBDIR += mptd
|
SUBDIR += mptd
|
||||||
|
SUBDIR += msiklm
|
||||||
SUBDIR += msktutil
|
SUBDIR += msktutil
|
||||||
SUBDIR += msyslog
|
SUBDIR += msyslog
|
||||||
SUBDIR += mtpfs
|
SUBDIR += mtpfs
|
||||||
|
|
42
sysutils/msiklm/Makefile
Normal file
42
sysutils/msiklm/Makefile
Normal file
|
@ -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>
|
3
sysutils/msiklm/distinfo
Normal file
3
sysutils/msiklm/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1520932266
|
||||||
|
SHA256 (Gibtnix-MSIKLM-g20180227-46dd076_GH0.tar.gz) = 371d889a9f0c2d81d8bf5a9bb48a50215d46e129c4424bacba570acb559e2d33
|
||||||
|
SIZE (Gibtnix-MSIKLM-g20180227-46dd076_GH0.tar.gz) = 22164
|
11
sysutils/msiklm/files/Makefile.bsd
Normal file
11
sysutils/msiklm/files/Makefile.bsd
Normal file
|
@ -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>
|
33
sysutils/msiklm/files/msiklm.conf.sample.in
Normal file
33
sysutils/msiklm/files/msiklm.conf.sample.in
Normal file
|
@ -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";
|
||||||
|
};
|
11
sysutils/msiklm/files/pkg-message.in
Normal file
11
sysutils/msiklm/files/pkg-message.in
Normal file
|
@ -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.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------
|
6
sysutils/msiklm/pkg-descr
Normal file
6
sysutils/msiklm/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue