forked from jonathanio/update-systemd-resolved
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 811 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PREFIX ?= /etc/openvpn/scripts
SRC = update-systemd-resolved
DEST = $(DESTDIR)$(PREFIX)/$(SRC)
.PHONY: all install info
all: install info
install:
@install -Dm750 $(SRC) $(DEST)
info:
@printf 'Successfully installed %s to %s.\n' $(SRC) $(DEST)
@echo
@echo 'Now would be a good time to update /etc/nsswitch.conf:'
@echo ' # Use systemd-resolved first, then fall back to /etc/resolv.conf'
@echo ' hosts: files resolve dns myhostname'
@echo ' # Use /etc/resolv.conf first, then fall back to systemd-resolved'
@echo ' hosts: files dns resolve myhostname'
@echo
@echo 'You should also update your OpenVPN configuration:'
@printf ' setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n script-security 2\n up %s\n down %s\n down-pre' $(DEST) $(DEST)
test:
@./run-tests