mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
add metapackage
This commit is contained in:
parent
7abfa261c5
commit
faef091959
2
.github/workflows/setup.sh
vendored
2
.github/workflows/setup.sh
vendored
@ -31,7 +31,7 @@ mv "dist/ahriman-$PKGVER.tar.gz" package/archlinux
|
|||||||
chmod +777 package/archlinux # because fuck you that's why
|
chmod +777 package/archlinux # because fuck you that's why
|
||||||
cd package/archlinux
|
cd package/archlinux
|
||||||
sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm
|
sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm
|
||||||
sudo -u nobody -- makepkg --packagelist | grep "ahriman-$PKGVER" | pacman -U --noconfirm --nodeps -
|
sudo -u nobody -- makepkg --packagelist | grep "ahriman-core-$PKGVER" | pacman -U --noconfirm --nodeps -
|
||||||
if [[ -z $MINIMAL_INSTALL ]]; then
|
if [[ -z $MINIMAL_INSTALL ]]; then
|
||||||
sudo -u nobody -- makepkg --packagelist | grep "ahriman-triggers-$PKGVER" | pacman -U --noconfirm --nodeps -
|
sudo -u nobody -- makepkg --packagelist | grep "ahriman-triggers-$PKGVER" | pacman -U --noconfirm --nodeps -
|
||||||
sudo -u nobody -- makepkg --packagelist | grep "ahriman-web-$PKGVER" | pacman -U --noconfirm --nodeps -
|
sudo -u nobody -- makepkg --packagelist | grep "ahriman-web-$PKGVER" | pacman -U --noconfirm --nodeps -
|
||||||
|
@ -13,7 +13,7 @@ TL;DR
|
|||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
yay -S ahriman
|
yay -S ahriman-core
|
||||||
ahriman -a x86_64 -r aur service-setup --packager "ahriman bot <ahriman@example.com>"
|
ahriman -a x86_64 -r aur service-setup --packager "ahriman bot <ahriman@example.com>"
|
||||||
systemctl enable --now ahriman@x86_64-aur.timer
|
systemctl enable --now ahriman@x86_64-aur.timer
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ Initial setup
|
|||||||
=============
|
=============
|
||||||
|
|
||||||
#.
|
#.
|
||||||
Install package as usual.
|
Install package(s) as usual. At least, ``ahriman-core`` package is required; other features can be installed separately. Alternatively, it is possible to install meta-package, which includes everything.
|
||||||
#.
|
#.
|
||||||
Change settings if required, see :doc:`configuration reference <configuration>` for more details.
|
Change settings if required, see :doc:`configuration reference <configuration>` for more details.
|
||||||
#.
|
#.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Evgeniy Alekseev
|
# Maintainer: Evgeniy Alekseev
|
||||||
|
|
||||||
pkgbase='ahriman'
|
pkgbase='ahriman'
|
||||||
pkgname=('ahriman' 'ahriman-triggers' 'ahriman-web')
|
pkgname=('ahriman' 'ahriman-core' 'ahriman-triggers' 'ahriman-web')
|
||||||
pkgver=2.15.2
|
pkgver=2.15.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ArcH linux ReposItory MANager"
|
pkgdesc="ArcH linux ReposItory MANager"
|
||||||
@ -22,6 +22,12 @@ build() {
|
|||||||
|
|
||||||
package_ahriman() {
|
package_ahriman() {
|
||||||
pkgname='ahriman'
|
pkgname='ahriman'
|
||||||
|
pkgdesc="ArcH linux ReposItory MANager (meta package)"
|
||||||
|
depends=("$pkgbase-core=$pkgver" "$pkgbase-triggers=$pkgver" "$pkgbase-web=$pkgver")
|
||||||
|
}
|
||||||
|
|
||||||
|
package_ahriman-core() {
|
||||||
|
pkgname='ahriman-core'
|
||||||
optdepends=('ahriman-triggers: additional extensions for the application'
|
optdepends=('ahriman-triggers: additional extensions for the application'
|
||||||
'ahriman-web: web server'
|
'ahriman-web: web server'
|
||||||
'python-boto3: sync to s3'
|
'python-boto3: sync to s3'
|
||||||
@ -31,7 +37,7 @@ package_ahriman() {
|
|||||||
'python-jinja: html report generation'
|
'python-jinja: html report generation'
|
||||||
'python-systemd: journal support'
|
'python-systemd: journal support'
|
||||||
'rsync: sync by using rsync')
|
'rsync: sync by using rsync')
|
||||||
install="$pkgname.install"
|
install="$pkgbase.install"
|
||||||
backup=('etc/ahriman.ini'
|
backup=('etc/ahriman.ini'
|
||||||
'etc/ahriman.ini.d/logging.ini')
|
'etc/ahriman.ini.d/logging.ini')
|
||||||
|
|
||||||
@ -51,7 +57,7 @@ package_ahriman() {
|
|||||||
package_ahriman-triggers() {
|
package_ahriman-triggers() {
|
||||||
pkgname='ahriman-triggers'
|
pkgname='ahriman-triggers'
|
||||||
pkgdesc="ArcH linux ReposItory MANager, additional extensions"
|
pkgdesc="ArcH linux ReposItory MANager, additional extensions"
|
||||||
depends=("$pkgbase=$pkgver")
|
depends=("$pkgbase-core=$pkgver")
|
||||||
backup=('etc/ahriman.ini.d/00-triggers.ini')
|
backup=('etc/ahriman.ini.d/00-triggers.ini')
|
||||||
|
|
||||||
cd "$pkgbase-$pkgver"
|
cd "$pkgbase-$pkgver"
|
||||||
@ -65,7 +71,7 @@ package_ahriman-triggers() {
|
|||||||
package_ahriman-web() {
|
package_ahriman-web() {
|
||||||
pkgname='ahriman-web'
|
pkgname='ahriman-web'
|
||||||
pkgdesc="ArcH linux ReposItory MANager, web server"
|
pkgdesc="ArcH linux ReposItory MANager, web server"
|
||||||
depends=("$pkgbase=$pkgver" 'python-aiohttp-apispec>=3.0.0' 'python-aiohttp-cors' 'python-aiohttp-jinja2')
|
depends=("$pkgbase-core=$pkgver" 'python-aiohttp-apispec>=3.0.0' 'python-aiohttp-cors' 'python-aiohttp-jinja2')
|
||||||
optdepends=('python-aioauth-client: OAuth2 authorization support'
|
optdepends=('python-aioauth-client: OAuth2 authorization support'
|
||||||
'python-aiohttp-security: authorization support'
|
'python-aiohttp-security: authorization support'
|
||||||
'python-aiohttp-session: authorization support'
|
'python-aiohttp-session: authorization support'
|
||||||
|
@ -2,6 +2,7 @@ post_upgrade() {
|
|||||||
local breakpoints=(
|
local breakpoints=(
|
||||||
2.9.0-1
|
2.9.0-1
|
||||||
2.12.0-1
|
2.12.0-1
|
||||||
|
2.16.0-1
|
||||||
)
|
)
|
||||||
|
|
||||||
for v in "${breakpoints[@]}"; do
|
for v in "${breakpoints[@]}"; do
|
||||||
|
@ -28,7 +28,7 @@ from pathlib import Path
|
|||||||
prefix = Path(sys.prefix).relative_to("/")
|
prefix = Path(sys.prefix).relative_to("/")
|
||||||
site_packages = Path(site.getsitepackages()[0]).relative_to("/")
|
site_packages = Path(site.getsitepackages()[0]).relative_to("/")
|
||||||
SUBPACKAGES = {
|
SUBPACKAGES = {
|
||||||
"ahriman": [
|
"ahriman-core": [
|
||||||
prefix / "bin",
|
prefix / "bin",
|
||||||
prefix / "lib" / "systemd",
|
prefix / "lib" / "systemd",
|
||||||
prefix / "share",
|
prefix / "share",
|
||||||
|
Loading…
Reference in New Issue
Block a user