From 37295f52bda468527f2a7cbc3aa1fafabb5e8068 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 25 Mar 2021 10:06:27 +0100 Subject: Remove video group membership check and use file permissions and ownership instead MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f3b9f72..8cbdd23 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,10 @@ install: adjbacklight cp -- adjbacklight "$(DESTDIR)$(PREFIX)/bin" cp -- adjbacklight.1 "$(DESTDIR)$(MANPREFIX)/man1" cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/adjbacklight" - chmod -- 4755 "$(DESTDIR)$(PREFIX)/bin/adjbacklight" + +post-install: + chown -- '0:$(VIDEO_GROUP)' "$(DESTDIR)$(PREFIX)/bin/adjbacklight" + chmod -- 4754 "$(DESTDIR)$(PREFIX)/bin/adjbacklight" uninstall: -rm -- "$(DESTDIR)$(PREFIX)/bin/adjbacklight" @@ -38,4 +41,4 @@ uninstall: clean: -rm -rf -- adjbacklight test *.o .testdir -.PHONY: all check install uninstall clean +.PHONY: all check install post-install uninstall clean -- cgit v1.2.3-70-g09d2