From owner-svn-ports-head@freebsd.org Wed Mar 14 16:07:05 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BC1FF5B167; Wed, 14 Mar 2018 16:07:05 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD88487D8C; Wed, 14 Mar 2018 16:07:04 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A416B1E2D; Wed, 14 Mar 2018 16:07:04 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2EG74kZ025873; Wed, 14 Mar 2018 16:07:04 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2EG73Lw025865; Wed, 14 Mar 2018 16:07:03 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201803141607.w2EG73Lw025865@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Wed, 14 Mar 2018 16:07:03 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: jhale X-SVN-Commit-Paths: in head/sysutils: . msiklm msiklm/files X-SVN-Commit-Revision: 464508 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 16:07:05 -0000 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 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 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 " ". +# 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 +# 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