Update to 3.0.0; fixes
authorAndrew Lorimer <andrew@lorimer.id.au>
Wed, 24 Apr 2024 06:56:53 +0000 (16:56 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Wed, 24 Apr 2024 06:56:53 +0000 (16:56 +1000)
Update sources & checksums to 3.0.0
Added listmonk-git to conflicts
Disabled binary strip (removes necessary static files)
Disabled debug package (not required - use listmonk-git instead)
Edited post-install instruction to correct database permissions
Removed WorkingDirectory in service file - directory not created

PKGBUILD
listmonk.install
listmonk.service
index 6b7408d3cb6b26592013b26e24ec3de35d341417..ba052077674b0f4b3e35142486535c8b1bbd903d 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,19 @@
 # Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
 # Contributor: Caleb Maclennan <caleb@alerque.com>
+# Contributor: Andrew Lorimer <andrew@lorimer.id.au>
 
 _pkgname=listmonk
 pkgname=$_pkgname-bin
-pkgver=2.5.1
-pkgrel=2
+pkgver=3.0.0
+pkgrel=1
 pkgdesc='Self-hosted newsletter and mailing list manager with a modern dashboard (binary release)'
 arch=('x86_64' 'aarch64' 'armv6h' 'armv7h')
 url="https://github.com/knadh/listmonk"
 license=('AGPL3')
 depends=('postgresql')
 provides=("$_pkgname")
-conflicts=("$_pkgname")
+conflicts=("$_pkgname", "$_pkgname"-git)
+options=(!strip !debug)
 backup=(etc/listmonk/config.toml)
 install=$_pkgname.install
 source=("$_pkgname-$pkgver.toml::https://raw.githubusercontent.com/knadh/$_pkgname/v$pkgver/config.toml.sample"
@@ -26,10 +28,10 @@ source_aarch64=("$url/releases/download/v${pkgver}/listmonk_${pkgver}_linux_arm6
 source_armv6h=("$url/releases/download/v${pkgver}/listmonk_${pkgver}_linux_armv6.tar.gz")
 source_armv7h=("$url/releases/download/v${pkgver}/listmonk_${pkgver}_linux_armv7.tar.gz")
 
-sha256sums_x86_64=('552bb7cb47d7b55be7b48a4ccc19d69b96491065433dafd8cc6a0f39869e4113')
-sha256sums_aarch64=('832c5a34ed78446c179ed5423cdbce51d3e51333c1ea6cf11c74b63e0776193a')
-sha256sums_armv6h=('802a1755071e1a9c8b340984143effe9a88b49216f7711ffa00942535b2c3b76')
-sha256sums_armv7h=('7e7e96d64cd2af96711d8d3db717cfdb5c4b8c9ac3fb78b43a4704a8e5625c99')
+sha256sums_x86_64=('29c4965146231d40fb9bd2eecb469534a669262c025538788a56d5d365392cf4')
+sha256sums_aarch64=('c60a03a1ae74ad96e67eacb205d9b8c3f7dcebff164daa0a1da93e99c361b214')
+sha256sums_armv6h=('d70eab28b24d19b22c12d32fafdba56112f39950019aff9d33526e7f44ab7d69')
+sha256sums_armv7h=('8f405404901f1283b2ebddf1118f884c72883e981b3b70c2266c1cc523e48794')
 
 package() {
   install -Dm644 $_pkgname-$pkgver.toml "$pkgdir/etc/$_pkgname/config.toml"
index be3a05e2b3060c054fa118aff573b830d96e72f7..1caf8c69eef8bf77a726a355b76b3437750d4e18 100644 (file)
@@ -8,8 +8,7 @@ post_install() {
                
                \$ sudo -u postgres psql
                postgres=# CREATE USER listmonk WITH PASSWORD '<your_password>';
-               postgres=# CREATE DATABASE listmonk;
-               postgres=# GRANT ALL PRIVILEGES ON DATABASE listmonk TO listmonk;
+               postgres=# CREATE DATABASE listmonk WITH OWNER listmonk;
                postgres=# \\q
                
                Then edit /etc/listmonk/config.toml with your new database credentials.
index ccc8fd41ebdf0a3db9a0224664d5d410df3f6f83..6532baa15cdd969414565e132494659ffc9ea15e 100644 (file)
@@ -4,7 +4,6 @@ Wants=network.target
 
 [Service]
 Type=simple
-WorkingDirectory=/usr/share/listmonk
 ExecStart=/usr/bin/listmonk --config /etc/listmonk/config.toml
 User=listmonk
 Group=listmonk