X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/1ee9c4705863e36b1e3fbe9e7525fdcf2b14cb40..672fb6d86c1747f6e03bdb72e6f92fb106d7d4ba:/.ssh/Makefile diff --git a/.ssh/Makefile b/.ssh/Makefile index 0e26cbb..1569b26 100644 --- a/.ssh/Makefile +++ b/.ssh/Makefile @@ -18,9 +18,15 @@ authorized_keys: $(wildcard authorized_keys.d/*) echo; \ done > $@ +ifeq ($(strip $(wildcard config.local)),) +LOCAL_CONFIG=/dev/null +else +LOCAL_CONFIG=config.local +endif + SSH_VERSION = $(shell ssh -V 2>&1) -config: config.in - cp $< $@ +config: $(LOCAL_CONFIG) config.in + cat $^ > $@ case "$(SSH_VERSION)" in \ (OpenSSH_6.[0123]*) \ sed -ri -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \ @@ -58,4 +64,8 @@ config: config.in -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \ $@ \ ;; \ + esac; \ + case "$$HOSTNAME" in \ + (fishbowl) \ + sed -i -re '/^Host fishbowl/,/^[[:space:]]*ProxyCommand/s/ProxyCommand.*/Host localhost/' $@; \ esac