feat: archive git repository (experimental)

See doc/git-archive.md for general Git archive specifications
See doc/repos/metadata-repo.md for info and direction related to the new Git metadata archive
This commit is contained in:
Kevin Morris 2022-09-24 16:51:25 +00:00
parent ec3152014b
commit 30e72d2db5
34 changed files with 1104 additions and 50 deletions

View file

@ -131,6 +131,18 @@ packagesmetaextfile = /srv/http/aurweb/web/html/packages-meta-ext-v1.json.gz
pkgbasefile = /srv/http/aurweb/web/html/pkgbase.gz
userfile = /srv/http/aurweb/web/html/users.gz
[git-archive]
author = git_archive.py
author-email = no-reply@archlinux.org
; One week worth of seconds (86400 * 7)
popularity-interval = 604800
metadata-repo = /srv/http/aurweb/metadata.git
users-repo = /srv/http/aurweb/users.git
pkgbases-repo = /srv/http/aurweb/pkgbases.git
pkgnames-repo = /srv/http/aurweb/pkgnames.git
[devel]
; commit_url is a format string used to produce a link to a commit hash.
commit_url = https://gitlab.archlinux.org/archlinux/aurweb/-/commits/%s

View file

@ -76,5 +76,11 @@ packagesmetaextfile = /var/lib/aurweb/archives/packages-meta-ext-v1.json.gz
pkgbasefile = /var/lib/aurweb/archives/pkgbase.gz
userfile = /var/lib/aurweb/archives/users.gz
[git-archive]
metadata-repo = metadata.git
users-repo = users.git
pkgbases-repo = pkgbases.git
pkgnames-repo = pkgnames.git
[aurblup]
db-path = YOUR_AUR_ROOT/aurblup/