diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-29 09:35:32 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-29 09:36:06 -0400 |
commit | d75bb27e2e30fbb2fd39de07791e2678ad3a354a (patch) | |
tree | 3c2442da49aee862560b4c33901c36de5eda41ec | |
parent | 12ab303b1dd399e26874370b698901edfae000ee (diff) |
renames & directory location changes
-rw-r--r-- | Makefile | 14 | ||||
-rwxr-xr-x | src/cryptonomic-dyndns-command (renamed from src/dyndns-command.sh) | 0 |
2 files changed, 10 insertions, 4 deletions
@@ -10,7 +10,14 @@ DD_GROUP = dyndns | |||
10 | 10 | ||
11 | .PHONY: install all | 11 | .PHONY: install all |
12 | 12 | ||
13 | install: equivs-stamp | 13 | prefix = /usr/local |
14 | exec_prefix = $(prefix) | ||
15 | bindir = $(exec_prefix)/bin | ||
16 | |||
17 | scripts = samizdat-ssh-command cryptonomic-dyndns-command | ||
18 | executables = $(addprefix src/, $(scripts)) | ||
19 | |||
20 | install: equivs-stamp $(executables) | ||
14 | ifneq ($(shell id -u),0) | 21 | ifneq ($(shell id -u),0) |
15 | sudo $(MAKE) MAKEFLAGS=$(MAKEFLAGS) $@ | 22 | sudo $(MAKE) MAKEFLAGS=$(MAKEFLAGS) $@ |
16 | else | 23 | else |
@@ -20,12 +27,11 @@ else | |||
20 | @chmod -v g+rwx /etc/powerdns | 27 | @chmod -v g+rwx /etc/powerdns |
21 | @chmod -v g+rw /etc/powerdns/powerdns.sqlite3 | 28 | @chmod -v g+rw /etc/powerdns/powerdns.sqlite3 |
22 | $(MAKE) ~$(DD_USER)/.ssh/authorized_keys | 29 | $(MAKE) ~$(DD_USER)/.ssh/authorized_keys |
23 | install src/samizdat-ssh-command /usr/local/bin/ | 30 | install $(executables) $(bindir)/ |
24 | install src/dyndns-command.sh ~$(DD_USER)/samizdat-default-command | ||
25 | endif | 31 | endif |
26 | 32 | ||
27 | define dyndns_authorized_keys_contents | 33 | define dyndns_authorized_keys_contents |
28 | command="/usr/local/bin/samizdat-ssh-command /etc/powerdns/dyndns-command.sh",no-port-forwarding * Samizdat - YES WE CAN | 34 | command="$(bindir)/samizdat-ssh-command /etc/powerdns/dyndns-command.sh",no-port-forwarding * Samizdat - YES WE CAN |
29 | endef | 35 | endef |
30 | 36 | ||
31 | ~$(DD_USER)/.ssh/authorized_keys: | 37 | ~$(DD_USER)/.ssh/authorized_keys: |
diff --git a/src/dyndns-command.sh b/src/cryptonomic-dyndns-command index 375d50b..375d50b 100755 --- a/src/dyndns-command.sh +++ b/src/cryptonomic-dyndns-command | |||