From baa789b6f541db412608e2392c8eb6488ad2a744 Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 1 Sep 2021 03:41:09 +0000 Subject: [PATCH] Initial commit --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ pufferpanel.sysusers | 1 + pufferpanel.tmpfiles | 10 ++++++++++ 4 files changed, 63 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 pufferpanel.sysusers create mode 100644 pufferpanel.tmpfiles diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..00c88a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = pufferpanel-bin + pkgdesc = PufferPanel: A web-base game management system (binary version). + pkgver = 2.3.1 + pkgrel = 3 + url = https://github.com/PufferPanel/PufferPanel + arch = x86_64 + license = Apache + optdepends = nginx: TLS support + optdepends = postgresql: Dedicated database + optdepends = docker: Container support + optdepends = sqlite: Database support + provides = pufferpanel + conflicts = pufferpanel + source = https://github.com/PufferPanel/PufferPanel/releases/download/v2.3.1/pufferpanel_2.3.1_amd64.deb + b2sums = 1e899a2a803dfe9a4d54748f222dac1c66ebf9463d873081850578f682bf7b31ad1284b4793288c1117d65253d5b5c543a593f96b16165a80f5dcc6e2ecbd75a + +pkgname = pufferpanel-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..245b9d4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: S. Wiegand + +pkgname=pufferpanel-bin +pkgver=2.3.1 +pkgrel=3 +pkgdesc="PufferPanel: A web-base game management system (binary version)." +arch=('x86_64') +url="https://github.com/PufferPanel/PufferPanel" +license=('Apache') +provides=('pufferpanel') +conflicts=('pufferpanel') +optdepends=('nginx: TLS support' + 'postgresql: Dedicated database' + 'docker: Container support' + 'sqlite: Database support') +depends=() +source=(https://github.com/PufferPanel/PufferPanel/releases/download/v${pkgver//_/-}/pufferpanel_${pkgver//_/-}_amd64.deb) +b2sums=('1e899a2a803dfe9a4d54748f222dac1c66ebf9463d873081850578f682bf7b31ad1284b4793288c1117d65253d5b5c543a593f96b16165a80f5dcc6e2ecbd75a') + +package() { + tar xJf $srcdir/data.tar.xz + + install -Dm644 $srcdir/../pufferpanel.sysusers $pkgdir/usr/lib/sysusers.d/pufferpanel.conf + install -Dm644 $srcdir/../pufferpanel.tmpfiles $pkgdir/usr/lib/tmpfiles.d/pufferpanel.conf + + install -D $srcdir/usr/sbin/pufferpanel $pkgdir/usr/bin/pufferpanel + + mkdir -p $pkgdir/etc/pufferpanel + cp -R $srcdir/etc/pufferpanel/* $pkgdir/etc/pufferpanel + + mkdir -p $pkgdir/var/www/pufferpanel/ + cp -R $srcdir/var/www/* $pkgdir/var/www/pufferpanel + + install -D $srcdir/lib/systemd/system/pufferpanel.service $pkgdir/usr/lib/systemd/system/pufferpanel.service +} diff --git a/pufferpanel.sysusers b/pufferpanel.sysusers new file mode 100644 index 0000000..e8a4c75 --- /dev/null +++ b/pufferpanel.sysusers @@ -0,0 +1 @@ +u pufferpanel - "pufferpanel" /var/lib/pufferpanel diff --git a/pufferpanel.tmpfiles b/pufferpanel.tmpfiles new file mode 100644 index 0000000..2119720 --- /dev/null +++ b/pufferpanel.tmpfiles @@ -0,0 +1,10 @@ +d /var/log/pufferpanel 0755 pufferpanel pufferpanel +z /var/log/pufferpanel - pufferpanel pufferpanel + +d /var/lib/pufferpanel - pufferpanel pufferpanel + +#z /etc/pufferpanel/config.json 755 pufferpanel pufferpanel +#d /etc/pufferpanel/email 755 pufferpanel pufferpanel + +d /var/www/pufferpanel 0755 pufferpanel pufferpanel +z /var/www/pufferpanel - pufferpanel pufferpanel