Move system files to branch pkgbuild

This commit is contained in:
Edgar P. Burkhart 2022-05-21 16:11:00 +02:00
parent 36314f8456
commit 50b21d62ab
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
5 changed files with 0 additions and 58 deletions

View File

@ -1,28 +0,0 @@
pkgname=nummi
pkgver=0.1.0
pkgrel=4
pkgdesc="Web-based accounting interface"
arch=("any")
url="https://git.edgarpierre.fr/edpibu/nummi"
license=("AGPL3")
depends=(
"gunicorn"
"python-django"
)
optdepends=("postgresql: database")
source=(
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
"${pkgname}.service"
"${pkgname}.socket"
"${pkgname}.tmpfiles"
"${pkgname}.sysusers"
)
package() {
install -Dm755 ${pkgname}/${pkgname} -t "${pkgdir}"/opt/
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.socket -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
}

View File

@ -1,19 +0,0 @@
[Unit]
Description=Nummi server (accounting)
Requires=nummi.socket
After=network.target
[Service]
Type=notify
User=nummi
Group=nummi
RuntimeDirectory=nummi
WorkingDirectory=/opt/nummi
ExecStart=/usr/bin/gunicorn nummi.asgi:application
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target

View File

@ -1,9 +0,0 @@
[Unit]
Description=Nummi socket
[Socket]
ListenStream=/run/nummi.socket
SocketUser=http
[Install]
WantedBy=sockets.target

View File

@ -1 +0,0 @@
u nummi - "Nummi daemon user" /var/lib/nummi /usr/bin/bash

View File

@ -1 +0,0 @@
d /var/lib/nummi 0750 nummi nummi