4 1) Clone the AUR project:
7 $ git clone git://projects.archlinux.org/aurweb.git
9 2) Setup a web server with PHP and MySQL. Configure the web server to redirect
10 all URLs to /index.php/foo/bar/. The following block can be used with nginx:
13 rewrite ^/(.*)$ /index.php/$1 last;
16 3) Copy conf/config.proto to conf/config and adjust the configuration.
18 4) Create a new MySQL database and a user and import the AUR SQL schema:
20 $ mysql -uaur -p AUR </srv/http/aurweb/schema/aur-schema.sql
22 5) Generate templates for new Git repositories:
24 $ /srv/http/aurweb/scripts/git-integration/gen-templates.py
28 # useradd -U -d /srv/http/aurweb -c 'AUR user' aur
30 7) Install the git-auth wrapper script:
32 # cd /srv/http/aurweb/scripts/git-integration/
33 # cp git-auth.sh /usr/local/bin/aur-git-auth
34 # chmod 755 /usr/local/bin/aur-git-auth
36 8) Configure sshd(8) for the AUR. Add the following lines at the end of your
37 sshd_config(5) and restart the sshd. Note that OpenSSH 6.9 or newer is
41 PasswordAuthentication no
42 AuthorizedKeysCommand /usr/local/bin/aur-git-auth "%t" "%k"
43 AuthorizedKeysCommandUser aur