aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-25 10:06:27 +0100
committerMattias Andrée <maandree@kth.se>2021-03-25 10:06:44 +0100
commit37295f52bda468527f2a7cbc3aa1fafabb5e8068 (patch)
treecc03eb3dca784e7aa3f882694d310f92571fafc3 /Makefile
parentm makefile (diff)
downloadadjbacklight-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--Makefile7
1 files changed, 5 insertions, 2 deletions
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