diff --git a/ahriman/.SRCINFO b/ahriman/.SRCINFO new file mode 100644 index 0000000..c8ec98b --- /dev/null +++ b/ahriman/.SRCINFO @@ -0,0 +1,42 @@ +pkgbase = ahriman + pkgdesc = ArcH linux ReposItory MANager + pkgver = 2.2.2 + pkgrel = 1 + url = https://github.com/arcan1s/ahriman + arch = any + license = GPL3 + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = devtools + depends = git + depends = pyalpm + depends = python-inflection + depends = python-passlib + depends = python-requests + depends = python-setuptools + depends = python-srcinfo + optdepends = breezy: -bzr packages support + optdepends = darcs: -darcs packages support + optdepends = mercurial: -hg packages support + optdepends = python-aioauth-client: web server with OAuth2 authorization + optdepends = python-aiohttp: web server + optdepends = python-aiohttp-debugtoolbar: web server with enabled debug panel + optdepends = python-aiohttp-jinja2: web server + optdepends = python-aiohttp-security: web server with authorization + optdepends = python-aiohttp-session: web server with authorization + optdepends = python-boto3: sync to s3 + optdepends = python-cryptography: web server with authorization + optdepends = python-jinja: html report generation + optdepends = rsync: sync by using rsync + optdepends = subversion: -svn packages support + backup = etc/ahriman.ini + backup = etc/ahriman.ini.d/logging.ini + source = https://github.com/arcan1s/ahriman/releases/download/2.2.2/ahriman-2.2.2-src.tar.xz + source = ahriman.sysusers + source = ahriman.tmpfiles + sha512sums = 64f0c67fa4085b846d8a49db8d3c29f14d18bceb921ae420ff958889a7dd00f4759c28ff2c283283bd973997bea90c29dbd6312cd9b032aacb506d5874e8864f + sha512sums = 53d37efec812afebf86281716259f9ea78a307b83897166c72777251c3eebcb587ecee375d907514781fb2a5c808cbb24ef9f3f244f12740155d0603bf213131 + sha512sums = 62b2eccc352d33853ef243c9cddd63663014aa97b87242f1b5bc5099a7dbd69ff3821f24ffc58e1b7f2387bd4e9e9712cc4c67f661b1724ad99cdf09b3717794 + +pkgname = ahriman diff --git a/ahriman/PKGBUILD b/ahriman/PKGBUILD new file mode 100644 index 0000000..1b7f511 --- /dev/null +++ b/ahriman/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Evgeniy Alekseev + +pkgname='ahriman' +pkgver=2.2.2 +pkgrel=1 +pkgdesc="ArcH linux ReposItory MANager" +arch=('any') +url="https://github.com/arcan1s/ahriman" +license=('GPL3') +depends=('devtools' 'git' 'pyalpm' 'python-inflection' 'python-passlib' 'python-requests' 'python-setuptools' 'python-srcinfo') +makedepends=('python-build' 'python-installer' 'python-wheel') +optdepends=('breezy: -bzr packages support' + 'darcs: -darcs packages support' + 'mercurial: -hg packages support' + 'python-aioauth-client: web server with OAuth2 authorization' + 'python-aiohttp: web server' + 'python-aiohttp-debugtoolbar: web server with enabled debug panel' + 'python-aiohttp-jinja2: web server' + 'python-aiohttp-security: web server with authorization' + 'python-aiohttp-session: web server with authorization' + 'python-boto3: sync to s3' + 'python-cryptography: web server with authorization' + 'python-jinja: html report generation' + 'rsync: sync by using rsync' + 'subversion: -svn packages support') +source=("https://github.com/arcan1s/ahriman/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz" + 'ahriman.sysusers' + 'ahriman.tmpfiles') +backup=('etc/ahriman.ini' + 'etc/ahriman.ini.d/logging.ini') + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" "dist/$pkgname-$pkgver-py3-none-any.whl" + + # python-installer actually thinks that you cannot just copy files to root + # thus we need to copy them manually + install -Dm644 "$pkgdir/usr/share/$pkgname/settings/ahriman.ini" "$pkgdir/etc/ahriman.ini" + install -Dm644 "$pkgdir/usr/share/$pkgname/settings/ahriman.ini.d/logging.ini" "$pkgdir/etc/ahriman.ini.d/logging.ini" + + install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" + install -Dm644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" +} + +sha512sums=('64f0c67fa4085b846d8a49db8d3c29f14d18bceb921ae420ff958889a7dd00f4759c28ff2c283283bd973997bea90c29dbd6312cd9b032aacb506d5874e8864f' + '53d37efec812afebf86281716259f9ea78a307b83897166c72777251c3eebcb587ecee375d907514781fb2a5c808cbb24ef9f3f244f12740155d0603bf213131' + '62b2eccc352d33853ef243c9cddd63663014aa97b87242f1b5bc5099a7dbd69ff3821f24ffc58e1b7f2387bd4e9e9712cc4c67f661b1724ad99cdf09b3717794') diff --git a/ahriman/ahriman.sysusers b/ahriman/ahriman.sysusers new file mode 100644 index 0000000..6fd64e0 --- /dev/null +++ b/ahriman/ahriman.sysusers @@ -0,0 +1 @@ +u ahriman 643 "ArcH Linux ReposItory MANager" /var/lib/ahriman \ No newline at end of file diff --git a/ahriman/ahriman.tmpfiles b/ahriman/ahriman.tmpfiles new file mode 100644 index 0000000..8ecb3e2 --- /dev/null +++ b/ahriman/ahriman.tmpfiles @@ -0,0 +1,2 @@ +d /var/lib/ahriman 0755 ahriman ahriman +d /var/log/ahriman 0755 ahriman ahriman \ No newline at end of file