diff options
-rw-r--r-- | Makefile | 9 | ||||
-rwxr-xr-x | src/AnonymousAccessCommand (renamed from AnonymousAccessCommand) | 0 | ||||
-rwxr-xr-x | src/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.makefile | 2 |
6 files changed, 7 insertions, 4 deletions
@@ -18,11 +18,14 @@ USER_SSH_CONFIG_DIR = ~$(USER)/.ssh | |||
18 | shared: install | 18 | shared: install |
19 | git config core.self-forge true | 19 | git config core.self-forge true |
20 | 20 | ||
21 | SRC = src | ||
22 | SOURCES = $(addprefix $(SRC), AnonymousAccessCommand anonymous-access.conf AuthorizedKeysCommand) | ||
23 | |||
21 | install: | 24 | install: |
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 | ||
28 | README.html: README.md | 31 | README.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.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 | ||
13 | test: install $(shell getent passwd $(testuser) >/dev/null || echo useradd) | 13 | test: 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 | ||
17 | ifeq ($(testuser),) | 17 | ifeq ($(testuser),) |