upgpkg: 0.20.0-1

This commit is contained in:
George Rawlinson
2025-10-09 07:04:07 +00:00
parent 19ddd220be
commit 31033f26e0
3 changed files with 78 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
pkgbase = gotosocial
pkgdesc = ActivityPub social network server written in Golang
pkgver = 0.19.2
pkgver = 0.20.0
pkgrel = 1
url = https://gotosocial.org
arch = x86_64
@@ -19,6 +19,7 @@ pkgbase = gotosocial
backup = etc/gotosocial/template/authorize.tmpl
backup = etc/gotosocial/template/confirm-email.tmpl
backup = etc/gotosocial/template/confirmed-email.tmpl
backup = etc/gotosocial/template/domain-allowlist.tmpl
backup = etc/gotosocial/template/domain-blocklist.tmpl
backup = etc/gotosocial/template/email_confirm.tmpl
backup = etc/gotosocial/template/email_new_report.tmpl
@@ -59,17 +60,17 @@ pkgbase = gotosocial
backup = etc/gotosocial/template/status_poll.tmpl
backup = etc/gotosocial/template/tag.tmpl
backup = etc/gotosocial/template/thread.tmpl
source = gotosocial::git+https://github.com/superseriousbusiness/gotosocial#tag=v0.19.2
source = gotosocial::git+https://github.com/superseriousbusiness/gotosocial#tag=v0.20.0
source = sysusers.conf
source = tmpfiles.conf
source = use-fhs-directories.patch
sha512sums = 8420d4e0137975f208e6409b83b73a50f4086c166f70fb4729aab818ad51482fd8c8f3ae8a03743a23a6d776bdd9d234116b142c70fc7f208ca412d17d5f74b9
sha512sums = 5097ec57eb6aea0c3796ad21ff31a259c145b70948c9037db9f4cdcf089a7e8432479e409b28fd4e7f309b73badbefca52577a0f7079c66a89e6930c1d845d45
sha512sums = 2ff5499a31e12733cb20a9261942ed135fbac327d5a836b8955f3e86c009a603cf965440d9dbe6db64b80d0f652ba56faddb0ef398393b72474d8cf6c438ab80
sha512sums = b89fad3073e140f17167515b38942e5b5e2bc2aee03c484e1bb7cf6444f86cb1e2a13a60b101e04d22633d348be073ca26cd309da4746e5062c12b4f3ce4b38a
sha512sums = 913a5209487aba06bf1d8ac7c02506a05d01a8e12f172666c84bf6870d6237640d4745617b0f07ea8c9dcf665f4e0d24a0aabef31611909f7e9384ed6e7b7e77
b2sums = b7be99e995eca03433e1bc85b9c1f81bc08960f0964cad68b4263c65e79abebbc02095385020d5be41032bf0071859f30b5d8c7f36bd72821a2e369367dcab8f
sha512sums = 87edf6e6acee86a621c838a7db32f1c9aab70bc5640f8eae099c5133a2be77ec2f711261d716a6821e4c0414436592170b1ae7a5f652bc8aeab49c8dbd0fedde
b2sums = 8dc259fe61b3f5235d37f6d61126866b6b41a3bba0e5eb837fd9eac451ed3ea392059d5546123bd2d3be31bfdd5e08f7c5bf26b9858faac65cae50c143a3db49
b2sums = ccf672731b88fc6700b0b81737790365e1eea0066bad1bbf6b13dac1e5b42af69063838efca47a6d9c16ee3f6308e2e23b92cf79d4226cd88f8551fb7361649b
b2sums = 4f65af952441c0f54bb32049a149675e207f8993678423d369c4095c57476464614ac720eccc64d7a93a81268ad7ca41cae75ca7211bd7b78f9035f6e5341f04
b2sums = 9edd4520fb99856feb82d01935588add7f805aa180f2ed0fe169cb26576bc2e1d2c1e6ab11604d977cec6a4ad8f1d5be1413e1a366de59b89c5b869136538f8c
b2sums = 3671911545d15cc21045b37fbe6983c05499e66b8a6a1e1b3eccbb5c2686914c88b090dec0bfe8e2919d8787e5b4c59bfb1e2c292cad30a8b552ab57e91d5fdf
pkgname = gotosocial

121
PKGBUILD
View File

@@ -3,78 +3,79 @@
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=gotosocial
pkgver=0.19.2
pkgver=0.20.0
pkgrel=1
pkgdesc='ActivityPub social network server written in Golang'
arch=('x86_64')
arch=(x86_64)
url='https://gotosocial.org'
license=('AGPL-3.0-only')
depends=('glibc')
makedepends=('git' 'go' 'yarn' 'nodejs' 'go-swagger')
options=('!lto')
license=(AGPL-3.0-only)
depends=(glibc)
makedepends=(git go yarn nodejs go-swagger)
options=(!lto)
backup=(
'etc/gotosocial/config.yaml'
'etc/gotosocial/template/2fa.tmpl'
'etc/gotosocial/template/404.tmpl'
'etc/gotosocial/template/about.tmpl'
'etc/gotosocial/template/authorize.tmpl'
'etc/gotosocial/template/confirm-email.tmpl'
'etc/gotosocial/template/confirmed-email.tmpl'
'etc/gotosocial/template/domain-blocklist.tmpl'
'etc/gotosocial/template/email_confirm.tmpl'
'etc/gotosocial/template/email_new_report.tmpl'
'etc/gotosocial/template/email_new_signup.tmpl'
'etc/gotosocial/template/email_report_closed.tmpl'
'etc/gotosocial/template/email_reset.tmpl'
'etc/gotosocial/template/email_signup_approved.tmpl'
'etc/gotosocial/template/email_signup_rejected.tmpl'
'etc/gotosocial/template/email_test.tmpl'
'etc/gotosocial/template/error.tmpl'
'etc/gotosocial/template/finalize.tmpl'
'etc/gotosocial/template/index.tmpl'
'etc/gotosocial/template/index_register.tmpl'
'etc/gotosocial/template/index_what_is_this.tmpl'
'etc/gotosocial/template/login-info.tmpl'
'etc/gotosocial/template/login_button.tmpl'
'etc/gotosocial/template/maintenance.tmpl'
'etc/gotosocial/template/oob.tmpl'
'etc/gotosocial/template/page.tmpl'
'etc/gotosocial/template/page_footer.tmpl'
'etc/gotosocial/template/page_header.tmpl'
'etc/gotosocial/template/page_ogmeta.tmpl'
'etc/gotosocial/template/page_stylesheets.tmpl'
'etc/gotosocial/template/profile-gallery.tmpl'
'etc/gotosocial/template/profile.tmpl'
'etc/gotosocial/template/profile_about_user.tmpl'
'etc/gotosocial/template/profile_fields.tmpl'
'etc/gotosocial/template/profile_header.tmpl'
'etc/gotosocial/template/settings.tmpl'
'etc/gotosocial/template/sign-in.tmpl'
'etc/gotosocial/template/sign-up.tmpl'
'etc/gotosocial/template/signed-up.tmpl'
'etc/gotosocial/template/status.tmpl'
'etc/gotosocial/template/status_attachment.tmpl'
'etc/gotosocial/template/status_attributes.tmpl'
'etc/gotosocial/template/status_header.tmpl'
'etc/gotosocial/template/status_info.tmpl'
'etc/gotosocial/template/status_poll.tmpl'
'etc/gotosocial/template/tag.tmpl'
'etc/gotosocial/template/thread.tmpl'
etc/gotosocial/config.yaml
etc/gotosocial/template/2fa.tmpl
etc/gotosocial/template/404.tmpl
etc/gotosocial/template/about.tmpl
etc/gotosocial/template/authorize.tmpl
etc/gotosocial/template/confirm-email.tmpl
etc/gotosocial/template/confirmed-email.tmpl
etc/gotosocial/template/domain-allowlist.tmpl
etc/gotosocial/template/domain-blocklist.tmpl
etc/gotosocial/template/email_confirm.tmpl
etc/gotosocial/template/email_new_report.tmpl
etc/gotosocial/template/email_new_signup.tmpl
etc/gotosocial/template/email_report_closed.tmpl
etc/gotosocial/template/email_reset.tmpl
etc/gotosocial/template/email_signup_approved.tmpl
etc/gotosocial/template/email_signup_rejected.tmpl
etc/gotosocial/template/email_test.tmpl
etc/gotosocial/template/error.tmpl
etc/gotosocial/template/finalize.tmpl
etc/gotosocial/template/index.tmpl
etc/gotosocial/template/index_register.tmpl
etc/gotosocial/template/index_what_is_this.tmpl
etc/gotosocial/template/login-info.tmpl
etc/gotosocial/template/login_button.tmpl
etc/gotosocial/template/maintenance.tmpl
etc/gotosocial/template/oob.tmpl
etc/gotosocial/template/page.tmpl
etc/gotosocial/template/page_footer.tmpl
etc/gotosocial/template/page_header.tmpl
etc/gotosocial/template/page_ogmeta.tmpl
etc/gotosocial/template/page_stylesheets.tmpl
etc/gotosocial/template/profile-gallery.tmpl
etc/gotosocial/template/profile.tmpl
etc/gotosocial/template/profile_about_user.tmpl
etc/gotosocial/template/profile_fields.tmpl
etc/gotosocial/template/profile_header.tmpl
etc/gotosocial/template/settings.tmpl
etc/gotosocial/template/sign-in.tmpl
etc/gotosocial/template/sign-up.tmpl
etc/gotosocial/template/signed-up.tmpl
etc/gotosocial/template/status.tmpl
etc/gotosocial/template/status_attachment.tmpl
etc/gotosocial/template/status_attributes.tmpl
etc/gotosocial/template/status_header.tmpl
etc/gotosocial/template/status_info.tmpl
etc/gotosocial/template/status_poll.tmpl
etc/gotosocial/template/tag.tmpl
etc/gotosocial/template/thread.tmpl
)
source=(
"$pkgname::git+https://github.com/superseriousbusiness/gotosocial#tag=v$pkgver"
'sysusers.conf'
'tmpfiles.conf'
'use-fhs-directories.patch'
sysusers.conf
tmpfiles.conf
use-fhs-directories.patch
)
sha512sums=('8420d4e0137975f208e6409b83b73a50f4086c166f70fb4729aab818ad51482fd8c8f3ae8a03743a23a6d776bdd9d234116b142c70fc7f208ca412d17d5f74b9'
sha512sums=('5097ec57eb6aea0c3796ad21ff31a259c145b70948c9037db9f4cdcf089a7e8432479e409b28fd4e7f309b73badbefca52577a0f7079c66a89e6930c1d845d45'
'2ff5499a31e12733cb20a9261942ed135fbac327d5a836b8955f3e86c009a603cf965440d9dbe6db64b80d0f652ba56faddb0ef398393b72474d8cf6c438ab80'
'b89fad3073e140f17167515b38942e5b5e2bc2aee03c484e1bb7cf6444f86cb1e2a13a60b101e04d22633d348be073ca26cd309da4746e5062c12b4f3ce4b38a'
'913a5209487aba06bf1d8ac7c02506a05d01a8e12f172666c84bf6870d6237640d4745617b0f07ea8c9dcf665f4e0d24a0aabef31611909f7e9384ed6e7b7e77')
b2sums=('b7be99e995eca03433e1bc85b9c1f81bc08960f0964cad68b4263c65e79abebbc02095385020d5be41032bf0071859f30b5d8c7f36bd72821a2e369367dcab8f'
'87edf6e6acee86a621c838a7db32f1c9aab70bc5640f8eae099c5133a2be77ec2f711261d716a6821e4c0414436592170b1ae7a5f652bc8aeab49c8dbd0fedde')
b2sums=('8dc259fe61b3f5235d37f6d61126866b6b41a3bba0e5eb837fd9eac451ed3ea392059d5546123bd2d3be31bfdd5e08f7c5bf26b9858faac65cae50c143a3db49'
'ccf672731b88fc6700b0b81737790365e1eea0066bad1bbf6b13dac1e5b42af69063838efca47a6d9c16ee3f6308e2e23b92cf79d4226cd88f8551fb7361649b'
'4f65af952441c0f54bb32049a149675e207f8993678423d369c4095c57476464614ac720eccc64d7a93a81268ad7ca41cae75ca7211bd7b78f9035f6e5341f04'
'9edd4520fb99856feb82d01935588add7f805aa180f2ed0fe169cb26576bc2e1d2c1e6ab11604d977cec6a4ad8f1d5be1413e1a366de59b89c5b869136538f8c')
'3671911545d15cc21045b37fbe6983c05499e66b8a6a1e1b3eccbb5c2686914c88b090dec0bfe8e2919d8787e5b4c59bfb1e2c292cad30a8b552ab57e91d5fdf')
prepare() {
cd "$pkgname"

View File

@@ -1,24 +1,15 @@
--- a/example/config.yaml
+++ b/example/config.yaml
@@ -97,7 +97,7 @@ trusted-proxies:
# String. Database type.
# Options: ["postgres","sqlite"]
# Default: "postgres"
-db-type: "postgres"
+db-type: "sqlite"
# String. Database address or parameters.
#
@@ -112,7 +112,7 @@ db-type: "postgres"
@@ -172,7 +172,7 @@ db-type: "sqlite"
#
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110",":memory:", "sqlite.db"]
# Default: ""
-db-address: ""
-db-address: "sqlite.db"
+db-address: "/var/lib/gotosocial/sqlite.db"
# Int. Port for database connection.
# Int. Port for postgres database connection; ignored for sqlite.
# Examples: [5432, 1234, 6969]
@@ -158,12 +158,12 @@ db-tls-ca-cert: ""
@@ -297,12 +297,12 @@ cache:
# String. Directory from which gotosocial will attempt to load html templates (.tmpl files).
# Examples: ["/some/absolute/path/", "./relative/path/", "../../some/weird/path/"]
# Default: "./web/template/"
@@ -33,7 +24,7 @@
###########################
##### INSTANCE CONFIG #####
@@ -261,7 +261,7 @@ storage-backend: "local"
@@ -745,7 +745,7 @@ storage-backend: "local"
# Only required when running with the local storage backend.
# Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"]
# Default: "/gotosocial/storage"
@@ -42,7 +33,7 @@
# String. API endpoint of the S3 compatible service.
# Only required when running with the s3 storage backend.
@@ -357,7 +357,7 @@ letsencrypt-port: 80
@@ -908,7 +908,7 @@ letsencrypt-port: 80
# In any case, make sure GoToSocial has permissions to write to / read from this directory.
# Examples: ["/home/gotosocial/storage/certs", "/acmecerts"]
# Default: "/gotosocial/storage/certs"
@@ -53,8 +44,8 @@
# Most likely, this will be the email address of the instance administrator.
--- a/example/gotosocial.service
+++ b/example/gotosocial.service
@@ -14,8 +14,8 @@ Type=exec
Restart=on-failure
@@ -28,8 +28,8 @@ Restart=on-failure
#Environment="OTEL_METRICS_PRODUCERS=prometheus"
# change if your path to the GoToSocial binary is different
-ExecStart=/gotosocial/gotosocial --config-path config.yaml server start
@@ -62,5 +53,5 @@
+ExecStart=/usr/bin/gotosocial --config-path /etc/gotosocial/config.yaml server start
+WorkingDirectory=/var/lib/gotosocial
StandardOutput=append:/var/log/gotosocial/gotosocial.log
StandardError=inherit
# Sandboxing options to harden security
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html