summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-01 23:36:14 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-02 10:34:34 +0200
commit10ecd3982decc31bda251ec73d00d6a903a75f9f (patch)
treeacd7b8fb78ce116daae4efbfdb11582cbc35e51a
parent451e60d91d48d69ba6ae139794c5168804d59136 (diff)
downloadaur-10ecd3982decc31bda251ec73d00d6a903a75f9f.tar.gz
aur-10ecd3982decc31bda251ec73d00d6a903a75f9f.tar.xz
Restructure scripts
* Move scripts/git-integration/ to git-interface/. * Move scripts/aurblup/aurblup.py to scripts/aurblup.py. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--INSTALL4
-rw-r--r--conf/config.proto8
-rw-r--r--git-interface/aurinfo.py (renamed from scripts/git-integration/aurinfo.py)0
-rwxr-xr-xgit-interface/git-auth.py (renamed from scripts/git-integration/git-auth.py)2
-rwxr-xr-xgit-interface/git-auth.sh3
-rwxr-xr-xgit-interface/git-serve.py (renamed from scripts/git-integration/git-serve.py)2
-rwxr-xr-xgit-interface/git-update.py (renamed from scripts/git-integration/git-update.py)2
-rwxr-xr-xscripts/aurblup.py (renamed from scripts/aurblup/aurblup.py)0
-rwxr-xr-xscripts/git-integration/git-auth.sh3
9 files changed, 12 insertions, 12 deletions
diff --git a/INSTALL b/INSTALL
index 026d4b9a..3aad5156 100644
--- a/INSTALL
+++ b/INSTALL
@@ -28,12 +28,12 @@ Setup on Arch Linux
# mkdir /srv/http/aurweb/aur.git/
# cd /srv/http/aurweb/aur.git/
# git init --bare
- # ln -s ../../scripts/git-integration/git-update.py hooks/update
+ # ln -s ../../git-interface/git-update.py hooks/update
# chown -R aur .
7) Install the git-auth wrapper script:
- # cd /srv/http/aurweb/scripts/git-integration/
+ # cd /srv/http/aurweb/git-interface/
# cp git-auth.sh /usr/local/bin/aur-git-auth
# chmod 755 /usr/local/bin/aur-git-auth
diff --git a/conf/config.proto b/conf/config.proto
index 90b5bd5b..7c56a2b4 100644
--- a/conf/config.proto
+++ b/conf/config.proto
@@ -30,18 +30,18 @@ auto_delete_age = 86400
[auth]
valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519
username-regex = [a-zA-Z0-9]+[.\-_]?[a-zA-Z0-9]+$
-git-serve-cmd = /srv/http/aurweb/scripts/git-integration/git-serve.py
+git-serve-cmd = /srv/http/aurweb/git-interface/git-serve.py
ssh-options = no-port-forwarding,no-X11-forwarding,no-pty
[serve]
repo-path = /srv/http/aurweb/aur.git/
repo-regex = [a-z0-9][a-z0-9.+_-]*$
-template-path = /srv/http/aurweb/scripts/git-integration/templates/
-git-update-hook = /srv/http/aurweb/scripts/git-integration/git-update.py
+template-path = /srv/http/aurweb/git-interface/templates/
+git-update-hook = /srv/http/aurweb/git-interface/git-update.py
git-shell-cmd = /usr/bin/git-shell
ssh-cmdline = ssh aur@aur.archlinux.org
[aurblup]
-db-path = /srv/http/aurweb/scripts/aurblup/
+db-path = /srv/http/aurweb/aurblup/
sync-dbs = core extra community multilib testing community-testing
servers = ftp://mirrors.kernel.org/archlinux/%s/os/x86_64
diff --git a/scripts/git-integration/aurinfo.py b/git-interface/aurinfo.py
index d9b93729..d9b93729 100644
--- a/scripts/git-integration/aurinfo.py
+++ b/git-interface/aurinfo.py
diff --git a/scripts/git-integration/git-auth.py b/git-interface/git-auth.py
index 09dadecf..c9e1f015 100755
--- a/scripts/git-integration/git-auth.py
+++ b/git-interface/git-auth.py
@@ -7,7 +7,7 @@ import re
import sys
config = configparser.RawConfigParser()
-config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config")
+config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name')
diff --git a/git-interface/git-auth.sh b/git-interface/git-auth.sh
new file mode 100755
index 00000000..a5caeec4
--- /dev/null
+++ b/git-interface/git-auth.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/srv/http/aurweb/git-interface/git-auth.py "$1" "$2"
diff --git a/scripts/git-integration/git-serve.py b/git-interface/git-serve.py
index 81222e8a..eebb087c 100755
--- a/scripts/git-integration/git-serve.py
+++ b/git-interface/git-serve.py
@@ -9,7 +9,7 @@ import shlex
import sys
config = configparser.RawConfigParser()
-config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config")
+config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name')
diff --git a/scripts/git-integration/git-update.py b/git-interface/git-update.py
index c7d64dff..b7eaa14d 100755
--- a/scripts/git-integration/git-update.py
+++ b/git-interface/git-update.py
@@ -11,7 +11,7 @@ import sys
import aurinfo
config = configparser.RawConfigParser()
-config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config")
+config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name')
diff --git a/scripts/aurblup/aurblup.py b/scripts/aurblup.py
index e678fee9..e678fee9 100755
--- a/scripts/aurblup/aurblup.py
+++ b/scripts/aurblup.py
diff --git a/scripts/git-integration/git-auth.sh b/scripts/git-integration/git-auth.sh
deleted file mode 100755
index c6a54012..00000000
--- a/scripts/git-integration/git-auth.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-/srv/http/aurweb/scripts/git-integration/git-auth.py "$1" "$2"