Move system files to branch pkgbuild
This commit is contained in:
parent
36314f8456
commit
50b21d62ab
5 changed files with 0 additions and 58 deletions
28
PKGBUILD
28
PKGBUILD
|
@ -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
|
|
||||||
}
|
|
|
@ -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
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Nummi socket
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=/run/nummi.socket
|
|
||||||
SocketUser=http
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
|
@ -1 +0,0 @@
|
||||||
u nummi - "Nummi daemon user" /var/lib/nummi /usr/bin/bash
|
|
|
@ -1 +0,0 @@
|
||||||
d /var/lib/nummi 0750 nummi nummi
|
|
Loading…
Reference in a new issue