diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-25 10:06:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-25 10:06:44 +0100 |
commit | 37295f52bda468527f2a7cbc3aa1fafabb5e8068 (patch) | |
tree | cc03eb3dca784e7aa3f882694d310f92571fafc3 /Makefile | |
parent | m makefile (diff) | |
download | adjbacklight-37295f52bda468527f2a7cbc3aa1fafabb5e8068.tar.gz adjbacklight-37295f52bda468527f2a7cbc3aa1fafabb5e8068.tar.bz2 adjbacklight-37295f52bda468527f2a7cbc3aa1fafabb5e8068.tar.xz |
Remove video group membership check and use file permissions and ownership instead
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |