blob: 8c77e7ec73359463bcd7d5e193dc151eb840538a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PORTNAME= msiklm
DISTVERSION= g20200426
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= 9faa58
MAKEFILE= ${FILESDIR}/Makefile.bsd
PORTDOCS= README.md
OPTIONS_DEFINE= DEVD DOCS SUID
OPTIONS_DEFAULT= DEVD SUID
DEVD_PLIST_FILES= etc/devd/msiklm.conf.sample
DEVD_SUB_FILES= msiklm.conf.sample pkg-message
SUID_DESC= Install msiklm with the setuid bit set
SUID_PLIST_FILES= "@(,,4555) bin/msiklm"
SUID_PLIST_FILES_OFF= bin/msiklm
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>
|