intel-backlight: Use SETUID_ROOT_PERMS so normal user can set backlight
This is the recommended way to install the program and is also the default behaviour in FreeBSD ports. Bump PKGREVISION.
This commit is contained in:
parent
b40aa7d7c9
commit
98235d778f
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2020/12/10 06:13:15 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2021/04/04 10:52:40 tnn Exp $
|
||||
|
||||
DISTNAME= intel_backlight_fbsd-20200418
|
||||
PKGREVISION= 1
|
||||
PKGNAME= ${DISTNAME:S/^intel_backlight_fbsd/intel-backlight/1}
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=FreeBSDDesktop/}
|
||||
|
@ -24,6 +25,8 @@ NOT_FOR_PLATFORM+= Darwin-*-*
|
|||
INSTALLATION_DIRS+= sbin
|
||||
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
|
||||
|
||||
SPECIAL_PERMS+= sbin/intel_backlight ${SETUID_ROOT_PERMS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/intel_backlight \
|
||||
${DESTDIR}${PREFIX}/sbin/intel_backlight
|
||||
|
|
Loading…
Reference in a new issue