mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
passlib uses deprecated crypt module which is deprecated and scheduled for removal in 3.13. Unfortunately, this module seems to be unmaintained, so this commit replaces passlib with bcrypt, unfortunately breaking current passwords
59 lines
2.7 KiB
Bash
59 lines
2.7 KiB
Bash
# Maintainer: Evgeniy Alekseev
|
|
|
|
pkgname='ahriman'
|
|
pkgver=2.15.2
|
|
pkgrel=1
|
|
pkgdesc="ArcH linux ReposItory MANager"
|
|
arch=('any')
|
|
url="https://github.com/arcan1s/ahriman"
|
|
license=('GPL3')
|
|
depends=('devtools>=1:1.0.0' 'git' 'pyalpm' 'python-bcrypt' 'python-inflection' 'python-pyelftools' 'python-requests')
|
|
makedepends=('python-build' 'python-flit' 'python-installer' 'python-wheel')
|
|
optdepends=('python-aioauth-client: web server with OAuth2 authorization'
|
|
'python-aiohttp: web server'
|
|
'python-aiohttp-apispec>=3.0.0: web server'
|
|
'python-aiohttp-cors: web server'
|
|
'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-cerberus: configuration validator'
|
|
'python-cryptography: web server with authorization'
|
|
'python-matplotlib: usage statistics chart'
|
|
'python-requests-unixsocket2: client report to web server by unix socket'
|
|
'python-jinja: html report generation'
|
|
'python-systemd: journal support'
|
|
'rsync: sync by using rsync')
|
|
source=("https://github.com/arcan1s/ahriman/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
'ahriman.sysusers'
|
|
'ahriman.tmpfiles')
|
|
install="$pkgname.install"
|
|
backup=('etc/ahriman.ini'
|
|
'etc/ahriman.ini.d/logging.ini')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
python -m installer --destdir="$pkgdir" "dist/$pkgname-$pkgver-py3-none-any.whl"
|
|
|
|
# thanks too PEP517, which we all wanted, you need to install data files manually nowadays
|
|
pushd package && find . \( -type f -or -type l \) -exec install -Dm644 "{}" "$pkgdir/usr/{}" \; && popd
|
|
|
|
# keep usr/share configs as reference and copy them to /etc
|
|
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=('19841842641520b573cdde6cb80a7cfcd69756d323fdfeebc2eee2d264a1325ead4ab2f8383bb369f7896bfc1de59d7358f133f4afeb90a9b9f0695f482a58d0'
|
|
'53d37efec812afebf86281716259f9ea78a307b83897166c72777251c3eebcb587ecee375d907514781fb2a5c808cbb24ef9f3f244f12740155d0603bf213131'
|
|
'62b2eccc352d33853ef243c9cddd63663014aa97b87242f1b5bc5099a7dbd69ff3821f24ffc58e1b7f2387bd4e9e9712cc4c67f661b1724ad99cdf09b3717794')
|