-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add requested support for multiple architectures. * Use service file from gotify-server package. * Bump to version 2.1.0. * Rename some files and clean up PKGBUILD.
- Loading branch information
Xyne
committed
Dec 4, 2021
1 parent
fed3bc6
commit 69523f8
Showing
7 changed files
with
89 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
pkgbase = gotify-server-bin | ||
pkgdesc = A simple server for sending and receiving messages | ||
pkgver = 2.0.23 | ||
pkgver = 2.1.0 | ||
pkgrel = 1 | ||
url = https://github.com/gotify/server | ||
arch = x86_64 | ||
arch = armv7h | ||
arch = aarch64 | ||
license = MIT | ||
depends = glibc | ||
provides = gotify-server | ||
conflicts = gotify-server | ||
backup = etc/gotify/config.yml | ||
source = https://github.com/gotify/server/releases/download/v2.0.23/gotify-linux-amd64.zip | ||
source = https://raw.githubusercontent.com/gotify/server/v2.0.23/config.example.yml | ||
source = gotify-arch-defaults.patch | ||
source = gotify-server.tmpfiles | ||
source = gotify-server.sysusers | ||
source = https://raw.githubusercontent.com/gotify/server/v2.1.0/config.example.yml | ||
source = config.patch | ||
source = tmpfiles.conf | ||
source = sysusers.conf | ||
source = gotify-server.service | ||
sha256sums = 07704cb5fa272cb5919b908716d75fa6f694ad8115ca2fac1f9dfe3ab1b7621c | ||
sha256sums = bb841afcebfd822b9fc26a1910520e36c4d04d2009d93e944e57146a30d7a7b6 | ||
sha256sums = eface4b7901b849cf97fb62c691e37b0bf1dd80e947a3da193379bcf7e92c7b0 | ||
sha256sums = d6f9716c7f67cfb518f3f50a18cbc950ef3e8e9c8ba1f226654dfdd3bf8226d4 | ||
sha256sums = a8a511e2b98fa548391a1602fcfa05df0e10fae6f5904cbfc4202566f2dd8265 | ||
sha256sums = 14bd1a9270b089b99d9bbe8ebdd0c208c3f74c7347a792d508ffce75b0e1c641 | ||
sha256sums = 4fbff6e5ade1ec96cff61b4bc933ef7771f63b6df5c8e43323a8fe4d341a5a4d | ||
sha256sums = bcfa3f4cc7ffa44a41ea7247ca4bf879bea6e6e1da79f85ed9bb4141b8501028 | ||
sha256sums = 150a84f2f89d70c147cc3a2dbddb469f262ed2e8b6d3ffcb74eccb49dfdb2a24 | ||
sha256sums = 9aa04ff9a2981aa885d4f8df7467c4d7722aa12de7ae27376a4a11b559a0d1e2 | ||
source_x86_64 = https://github.com/gotify/server/releases/download/v2.1.0/gotify-linux-amd64.zip | ||
sha256sums_x86_64 = 7c2bb7946580d5cc7586033e03216336b133cd57a7ad1661ab6da4915ccbdfce | ||
source_armv7h = https://github.com/gotify/server/releases/download/v2.1.0/gotify-linux-arm-7.zip | ||
sha256sums_armv7h = 1b56be7c8793ce359b755fb96aeb2c209df8f859027e6671b0439ec830ae7a70 | ||
source_aarch64 = https://github.com/gotify/server/releases/download/v2.1.0/gotify-linux-arm64.zip | ||
sha256sums_aarch64 = ba9665812a0966b83f308e209ef6c808774e4ee98eced508a60b08e5b9929715 | ||
|
||
pkgname = gotify-server-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
# Maintainer: buckket <[email protected]> | ||
|
||
pkgname=gotify-server-bin | ||
_pkgname=gotify-server | ||
pkgver=2.0.23 | ||
pkgname=$_pkgname-bin | ||
pkgver=2.1.0 | ||
pkgrel=1 | ||
pkgdesc='A simple server for sending and receiving messages' | ||
arch=('x86_64') | ||
arch=('x86_64' 'armv7h' 'aarch64') | ||
url='https://github.com/gotify/server' | ||
depends=('glibc') | ||
license=('MIT') | ||
provides=('gotify-server') | ||
conflicts=('gotify-server') | ||
backup=('etc/gotify/config.yml') | ||
source=("$url/releases/download/v${pkgver}/gotify-linux-amd64.zip" | ||
"https://raw.githubusercontent.com/gotify/server/v${pkgver}/config.example.yml" | ||
'gotify-arch-defaults.patch' | ||
'gotify-server.tmpfiles' | ||
'gotify-server.sysusers' | ||
source=("https://raw.githubusercontent.com/gotify/server/v${pkgver}/config.example.yml" | ||
'config.patch' | ||
'tmpfiles.conf' | ||
'sysusers.conf' | ||
'gotify-server.service') | ||
sha256sums=('07704cb5fa272cb5919b908716d75fa6f694ad8115ca2fac1f9dfe3ab1b7621c' | ||
'bb841afcebfd822b9fc26a1910520e36c4d04d2009d93e944e57146a30d7a7b6' | ||
'eface4b7901b849cf97fb62c691e37b0bf1dd80e947a3da193379bcf7e92c7b0' | ||
source_x86_64=("$url/releases/download/v${pkgver}/gotify-linux-amd64.zip") | ||
source_armv7h=("$url/releases/download/v${pkgver}/gotify-linux-arm-7.zip") | ||
source_aarch64=("$url/releases/download/v${pkgver}/gotify-linux-arm64.zip") | ||
sha256sums=('d6f9716c7f67cfb518f3f50a18cbc950ef3e8e9c8ba1f226654dfdd3bf8226d4' | ||
'a8a511e2b98fa548391a1602fcfa05df0e10fae6f5904cbfc4202566f2dd8265' | ||
'14bd1a9270b089b99d9bbe8ebdd0c208c3f74c7347a792d508ffce75b0e1c641' | ||
'4fbff6e5ade1ec96cff61b4bc933ef7771f63b6df5c8e43323a8fe4d341a5a4d' | ||
'bcfa3f4cc7ffa44a41ea7247ca4bf879bea6e6e1da79f85ed9bb4141b8501028') | ||
'150a84f2f89d70c147cc3a2dbddb469f262ed2e8b6d3ffcb74eccb49dfdb2a24' | ||
'9aa04ff9a2981aa885d4f8df7467c4d7722aa12de7ae27376a4a11b559a0d1e2') | ||
sha256sums_x86_64=('7c2bb7946580d5cc7586033e03216336b133cd57a7ad1661ab6da4915ccbdfce') | ||
sha256sums_armv7h=('1b56be7c8793ce359b755fb96aeb2c209df8f859027e6671b0439ec830ae7a70') | ||
sha256sums_aarch64=('ba9665812a0966b83f308e209ef6c808774e4ee98eced508a60b08e5b9929715') | ||
|
||
prepare() { | ||
patch --follow-symlinks --forward --strip=1 --input="${srcdir}/gotify-arch-defaults.patch" | ||
patch --follow-symlinks --forward -o "$srcdir/config.yml" config.example.yml config.patch | ||
} | ||
|
||
package() { | ||
install -Dm755 gotify-linux-amd64 "${pkgdir}/usr/bin/${_pkgname}" | ||
install -Dm644 config.example.yml "${pkgdir}/etc/gotify/config.yml" | ||
install -Dm644 ${_pkgname}.service -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 | ||
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}/" | ||
install -Dm755 gotify-linux-amd64 "$pkgdir/usr/bin/$_pkgname" | ||
install -Dm644 "$srcdir/config.yml" "$pkgdir/etc/gotify/config.yml" | ||
install -Dm644 gotify-server.service "$pkgdir/usr/lib/systemd/system/$_pkgname.service" | ||
install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf" | ||
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,46 @@ | ||
[Unit] | ||
Description=gotify | ||
Description=Gotify Server | ||
After=network.target | ||
ConditionPathIsDirectory=%L/gotify | ||
|
||
[Service] | ||
Type=simple | ||
User=gotify | ||
Group=gotify | ||
Type=simple | ||
WorkingDirectory=~ | ||
StateDirectory=gotify | ||
StateDirectoryMode=0750 | ||
Environment=USER=gotify HOME=/var/lib/gotify | ||
ExecStart=/usr/bin/gotify-server | ||
PrivateUsers=true | ||
|
||
ConfigurationDirectory=gotify | ||
LogsDirectory=gotify | ||
StateDirectory=gotify | ||
StateDirectoryMode=0700 | ||
StandardOutput=append:%L/gotify/server.log | ||
|
||
UMask=0027 | ||
CapabilityBoundingSet= | ||
AmbientCapabilities= | ||
LockPersonality=true | ||
MemoryDenyWriteExecute=true | ||
NoNewPrivileges=true | ||
PrivateDevices=true | ||
PrivateTmp=true | ||
PrivateUsers=true | ||
ProtectClock=true | ||
ProtectControlGroups=true | ||
ProtectHome=true | ||
ProtectSystem=strict | ||
ProtectControlGroups=yes | ||
ProtectHostname=true | ||
ProtectKernelLogs=true | ||
ProtectKernelModules=true | ||
ProtectKernelTunables=true | ||
ProtectKernelModules=yes | ||
ReadWritePaths=/etc/gotify/config.yml | ||
LockPersonality=true | ||
MemoryDenyWriteExecute=true | ||
ProtectSystem=strict | ||
RemoveIPC=true | ||
RestrictAddressFamilies=AF_INET AF_INET6 | ||
RestrictNamespaces=true | ||
RestrictRealtime=true | ||
RestrictSUIDSGID=true | ||
SystemCallArchitectures=native | ||
SystemCallErrorNumber=EPERM | ||
SystemCallFilter=@system-service | ||
SystemCallFilter=~@privileged @resources | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
u gotify - "gotify server user" /var/lib/gotify /usr/bin/bash | ||
g gotify - - |
File renamed without changes.