diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-10-26 09:29:50 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-10-26 09:29:55 -0400 |
commit | 099d70f87208afc6bc0baf098c266c0d705f2453 (patch) | |
tree | c920faf0df43a51d882ab7e31873535b998924de /OpenSSH_Anonymous_Access/Makefile | |
parent | d702643534828f72036d19f75c57ca48a4edc07b (diff) |
split OpenSSH_Anonymous_Access from EndoForge
EndoForge now installs OpenSSH_Anonymous_Access as a dependency.
Diffstat (limited to 'OpenSSH_Anonymous_Access/Makefile')
-rw-r--r-- | OpenSSH_Anonymous_Access/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSSH_Anonymous_Access/Makefile b/OpenSSH_Anonymous_Access/Makefile new file mode 100644 index 0000000..d93c271 --- /dev/null +++ b/OpenSSH_Anonymous_Access/Makefile | |||
@@ -0,0 +1,23 @@ | |||
1 | SRC = . | ||
2 | |||
3 | SELF_NAME = OpenSSH_Anonymous_Access | ||
4 | |||
5 | SSHD_CONFIG_DIR = /etc/ssh/sshd_config.d | ||
6 | SSH_LIBEXEC_DIR = /usr/lib/ssh | ||
7 | |||
8 | .PHONY: install install-files install-link | ||
9 | |||
10 | install: install-files install-link | ||
11 | systemctl reload sshd | ||
12 | |||
13 | install-files: | ||
14 | install -d "$(SSHD_CONFIG_DIR)" "$(SSH_LIBEXEC_DIR)" | ||
15 | |||
16 | install -m0644 -t "$(SSHD_CONFIG_DIR)" "$(SRC)/anonymous-access.conf" | ||
17 | install -t "$(SSH_LIBEXEC_DIR)" "$(SRC)/$(SELF_NAME)" | ||
18 | |||
19 | # The location of this link is hard-coded here and in the | ||
20 | # OpenSSH_Anonymous_Access script. | ||
21 | install-link: | ||
22 | [ -e /etc/ssh/AuthorizedKeysCommand ] || ln -s -t /etc/ssh "$(SSH_LIBEXEC_DIR)/$(SELF_NAME)" | ||
23 | |||