summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2015-01-08 19:28:34 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2015-01-11 18:44:01 +0100
commit4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2 (patch)
tree54904534cca89bb06074799fdb16776534f6201d /INSTALL
parentcb661cd971b7a219c33e24875d23afafc6a48334 (diff)
downloadaur-4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2.tar.gz
aur-4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2.tar.xz
Use custom templates for Git repositories
Do not waste disk space by copying dozens of unneeded sample hooks. Use a custom template directory that only includes the git-update hook. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL12
1 files changed, 8 insertions, 4 deletions
diff --git a/INSTALL b/INSTALL
index 2368db10..7b90ffd2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -19,7 +19,11 @@ Setup on Arch Linux
$ mysql -uaur -p AUR </srv/http/aur/schema/aur-schema.sql
-5) Clone the OpenSSH project, apply the AUR sshd patch and run `make`:
+5) Generate templates for new Git repositories:
+
+ $ /srv/http/aur/scripts/git-integration/gen-templates.py
+
+6) Clone the OpenSSH project, apply the AUR sshd patch and run `make`:
$ cd /srv/http/aur/
$ git clone git://anongit.mindrot.org/openssh.git
@@ -30,7 +34,7 @@ Setup on Arch Linux
$ ./configure
$ make
-6) Create and edit the sshd configuration:
+7) Create and edit the sshd configuration:
$ cd /srv/http/aur/
$ umask 077
@@ -38,12 +42,12 @@ Setup on Arch Linux
$ ssh-keygen -f .ssh/ssh_host_rsa_key -N '' -t rsa
$ cp scripts/git-integration/sshd_config .ssh/
-7) Create a new user and change ownership of the .ssh directory:
+8) Create a new user and change ownership of the .ssh directory:
# useradd -U -d /srv/http/aur -c 'AUR user' aur
# chown aur:aur /srv/http/aur/.ssh/
-8) Add, enable and start systemd unit files for the new sshd:
+9) Add, enable and start systemd unit files for the new sshd:
# cp /srv/http/aur/conf/aur-sshd.socket /etc/systemd/system/
# cp /srv/http/aur/conf/aur-sshd@.service /etc/systemd/system/