summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 12:36:42 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 12:36:42 -0400
commit1c35165652fae8410eec8c8bb31ef86ddec8ec6a (patch)
tree2575162cc25c9100576735ce199e2fb7de128b22
parent3781d6ad65e30c6fbfdd6964301f24adcfc95286 (diff)
move files to src/
-rw-r--r--Makefile9
-rwxr-xr-xsrc/AnonymousAccessCommand (renamed from AnonymousAccessCommand)0
-rwxr-xr-xsrc/AuthorizedKeysCommand (renamed from AuthorizedKeysCommand)0
-rw-r--r--src/anonymous-access.conf (renamed from anonymous-access.conf)0
-rw-r--r--src/tests.sh (renamed from tests.sh)0
-rw-r--r--tests.makefile2
6 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b203340..4983669 100644
--- a/Makefile
+++ b/Makefile
@@ -18,11 +18,14 @@ USER_SSH_CONFIG_DIR = ~$(USER)/.ssh
18shared: install 18shared: install
19 git config core.self-forge true 19 git config core.self-forge true
20 20
21SRC = src
22SOURCES = $(addprefix $(SRC), AnonymousAccessCommand anonymous-access.conf AuthorizedKeysCommand)
23
21install: 24install:
22 install -t $(USER_SSH_CONFIG_DIR) AnonymousAccessCommand 25 install -t $(USER_SSH_CONFIG_DIR) $(SRC)/AnonymousAccessCommand
23 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true 26 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true
24 $(ROOT_INSTALL) -m0644 -t "$(SSHD_CONFIG_DIR)" anonymous-access.conf || true 27 $(ROOT_INSTALL) -m0644 -t "$(SSHD_CONFIG_DIR)" $(SRC)/anonymous-access.conf || true
25 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" AuthorizedKeysCommand || true 28 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" $(SRC)/AuthorizedKeysCommand || true
26 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand 29 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand
27 30
28README.html: README.md 31README.html: README.md
diff --git a/AnonymousAccessCommand b/src/AnonymousAccessCommand
index 443d25e..443d25e 100755
--- a/AnonymousAccessCommand
+++ b/src/AnonymousAccessCommand
diff --git a/AuthorizedKeysCommand b/src/AuthorizedKeysCommand
index 6e13063..6e13063 100755
--- a/AuthorizedKeysCommand
+++ b/src/AuthorizedKeysCommand
diff --git a/anonymous-access.conf b/src/anonymous-access.conf
index 5cd6b6a..5cd6b6a 100644
--- a/anonymous-access.conf
+++ b/src/anonymous-access.conf
diff --git a/tests.sh b/src/tests.sh
index 5d221b6..5d221b6 100644
--- a/tests.sh
+++ b/src/tests.sh
diff --git a/tests.makefile b/tests.makefile
index b152f01..81c9312 100644
--- a/tests.makefile
+++ b/tests.makefile
@@ -11,7 +11,7 @@ useradd:
11 $(SU) - $(testuser) -c 'git config --global user.email $(testuser)' 11 $(SU) - $(testuser) -c 'git config --global user.email $(testuser)'
12 12
13test: install $(shell getent passwd $(testuser) >/dev/null || echo useradd) 13test: install $(shell getent passwd $(testuser) >/dev/null || echo useradd)
14 $(ROOT_INSTALL) -t ~$(testuser) tests.sh 14 $(ROOT_INSTALL) -t ~$(testuser) $(SRC)/tests.sh
15 $(SU) - $(testuser) -c ./tests.sh 15 $(SU) - $(testuser) -c ./tests.sh
16 16
17ifeq ($(testuser),) 17ifeq ($(testuser),)