mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 03:58:30 +00:00
Change prefix to PREFIX so users can modify its value by, e.g., make PREFIX=/usr/local install
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
8
Makefile
8
Makefile
@@ -151,13 +151,13 @@ version.h: version~
|
||||
@echo '#endif // VERSION_H' >> "$@"
|
||||
@echo "Making FTL version on branch $(GIT_BRANCH) - $(GIT_VERSION) ($(GIT_DATE))"
|
||||
|
||||
prefix=/usr
|
||||
PREFIX=/usr
|
||||
SETCAP = $(shell which setcap)
|
||||
|
||||
# install target just installs the executable
|
||||
# other requirements (correct ownership of files, etc.) is managed by
|
||||
# the service script on sudo service pihole-FTL (re)start
|
||||
install: pihole-FTL
|
||||
mkdir -p $(DESTDIR)$(prefix)/bin
|
||||
install -m 0755 pihole-FTL $(DESTDIR)$(prefix)/bin
|
||||
$(SETCAP) CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+eip $(DESTDIR)$(prefix)/bin/pihole-FTL
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
install -m 0755 pihole-FTL $(DESTDIR)$(PREFIX)/bin
|
||||
$(SETCAP) CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+eip $(DESTDIR)$(PREFIX)/bin/pihole-FTL
|
||||
|
||||
Reference in New Issue
Block a user