Debian Codegraph @

Makefile

raw symbols SCIP
1 PREFIX ?= /etc/openvpn/scripts
2
3 SRC = update-systemd-resolved
4 DEST = $(DESTDIR)$(PREFIX)/$(SRC)
5
6 .PHONY: all install info
7
8 all: install info
9
10 install:
11 @install -Dm750 $(SRC) $(DEST)
12 @install -Dm644 $(SRC).conf $(DEST).conf
13
14 info:
15 @printf 'Successfully installed %s to %s.\n' $(SRC) $(DEST)
16 @echo
17 @echo 'Now would be a good time to update /etc/nsswitch.conf:'
18 @echo
19 @echo ' # Use systemd-resolved first, then fall back to /etc/resolv.conf'
20 @echo ' hosts: files resolve dns myhostname'
21 @echo ' # Use /etc/resolv.conf first, then fall back to systemd-resolved'
22 @echo ' hosts: files dns resolve myhostname'
23 @echo
24 @echo 'You should also update your OpenVPN configuration:'
25 @echo
26 @printf ' setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n'
27 @echo ' script-security 2'
28 @printf ' up %s\n' $(DEST)
29 @echo ' up-restart'
30 @printf ' down %s\n' $(DEST)
31 @echo ' down-pre'
32 @echo
33 @printf 'or pass --config %s.conf\n' $(DEST)
34 @echo 'in addition to any other --config arguments to your openvpn command.'
35 test:
36 @./run-tests