Skip to content
Snippets Groups Projects
Commit 124ad009 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Add a Makefile for the git-auth wrapper


Avoid manual editing of the wrapper script when a non-standard path is
used.

Signed-off-by: default avatarLukas Fleischer <lfleischer@archlinux.org>
parent 10ecd398
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,7 @@ Setup on Arch Linux
7) Install the git-auth wrapper script:
# cd /srv/http/aurweb/git-interface/
# cp git-auth.sh /usr/local/bin/aur-git-auth
# chmod 755 /usr/local/bin/aur-git-auth
# make && make install
8) Configure sshd(8) for the AUR. Add the following lines at the end of your
sshd_config(5) and restart the sshd. Note that OpenSSH 6.9 or newer is
......
GIT_INTERFACE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include config.mk
git-auth.sh:
sed 's#%GIT_INTERFACE_DIR%#$(GIT_INTERFACE_DIR)#' <git-auth.sh.in >git-auth.sh
chmod +x git-auth.sh
install: git-auth.sh
install -Dm0755 git-auth.sh "$(DESTDIR)$(PREFIX)/bin/aur-git-auth"
uninstall:
rm -f "$(DESTDIR)$(PREFIX)/bin/aur-git-auth"
clean:
rm -f git-auth.sh
.PHONY: install uninstall clean
PREFIX = /usr/local
#!/bin/sh
/srv/http/aurweb/git-interface/git-auth.py "$1" "$2"
#!/bin/sh
%GIT_INTERFACE_DIR%/git-auth.py "$1" "$2"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment