Package Details: signald 0.23.2-1

Git Clone URL: https://aur.archlinux.org/signald.git (read-only, click to copy)
Package Base: signald
Description: An unofficial daemon that facilitates communication with the Signal messaging app.
Upstream URL: https://gitlab.com/signald/signald
Keywords: chat daemon messaging privacy signal
Licenses: GPL3
Conflicts: signald-git
Submitter: GI_Jack
Maintainer: GI_Jack
Last Packager: GI_Jack
Votes: 8
Popularity: 0.000773
First Submitted: 2019-05-05 22:06 (UTC)
Last Updated: 2023-02-15 03:15 (UTC)

Dependencies (3)

Sources (2)

Latest Comments

« First ‹ Previous 1 2

noctux commented on 2021-06-07 21:09 (UTC)

Hey,

thanks, that was fast :) Unfortunately, I might have forgotten to add that sysusers.d is executed as a pacman-hook. So during initial installation, the chown might try to chown towards a yet nonexistant user. To fix this, official packages use tmpfiles.d, whose hook is guaranteed to run AFTER the sysusers.d hook, for such operations:

Z     /path-or-glob/to/adjust/mode/recursively mode user group -           -

So the equivalent to your chown in this case would be (e.g. in /usr/lib/tmpfiles.d/signald.conf):

Z /var/lib/signald 0700 signald signald - -

If the directory should be created you can use D instead of Z. This mechanism is really powerful and also covers cases such as acls, etc.pp., which is quite nice.

Sorry that I've forgotten to add that vital information during the first comment...

noctux commented on 2021-06-06 15:23 (UTC)

Hey, thank you for maintaining that package!

However I noticed that you are still creating (and even removing!) users/groups in your .install file, which was deprecated by Arch in 2017 [0] in favor of the sysuser mechanism. Would it be possible to maybe switch this package over to that format as well? Basically, it should boil down to replacing the explicit user-management operations in the postinstall with a plain configuration file /usr/lib/sysusers.d/signald.conf:

u signald - "Signald daemon user"

A matching group will automatically be created. Advantages are: no more hardcoded UID, a fitting, free, system-user uid will automatically be selected. Furthermore, if required, the mechanism allows users to selectively override this user generation if required by means of a template mechansim. Details can be found in man 5 sysusers.d.

There further exists a complementary mechanism to create directories with fitting permissions (see man 5 tmpfiles.d), which can be used to generate the data directory, e.g. using /usr/lib/tmpfiles.d/signald.conf:

d /var/lib/signald 0700 signald signald - -

So, what do you think? I'd be happy to answer any questions or help out if desired.

Thanks again for your work!

0: https://archlinux.org/todo/switch-to-systemd-sysusers/

istobic commented on 2021-06-01 14:36 (UTC) (edited on 2021-06-01 14:37 (UTC) by istobic)

Hi GI_Jack, mautrix-signal indicated an issue with permissions: Permission denied: '/var/lib/signald/avatars/d2[..]' To fix this, I changed the permissions of /var/lib/signald/avatars from 700 to 750. (besides making the user of mautrix-signal member of the group signald)

GI_Jack commented on 2021-01-25 18:14 (UTC)

I generally don't write -git packages unless I have to. They do not fit my workflow of stable releases, and reproducible builds.

Feel free to fork if this suits your need.

Strykar commented on 2021-01-19 15:58 (UTC)

@GI_Jack Any chance you would take over the now orphaned signald-git package too?

Strykar commented on 2021-01-14 06:21 (UTC)

The project has moved from thefinn93/signald to signald/signald on Gitlab, pls update the PKGBUILD.

grandchild commented on 2020-12-21 17:25 (UTC) (edited on 2020-12-21 17:25 (UTC) by grandchild)

Source repo seems to have switched to Gitlab:

diff --git a/PKGBUILD b/PKGBUILD
index 4b47188..cbd8bfa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Maintainer: GI_Jack <GI_Jack@hackermail.com>

 pkgname=signald
-pkgver=0.10.0
+pkgver=0.11.1
 pkgrel=1
 pkgdesc='An unofficial daemon that facilitates communication with the Signal messaging app.'
 url='https://git.callpipe.com/finn/signald'
@@ -13,10 +13,10 @@ depends=('java-runtime>=11')
 optdepends=('openbsd-netcat: interaction with signald socket'
             'qrencode: display account linking token as QR code')
 conflicts=('signald-git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thefinn93/signald/archive/${pkgver}.tar.gz"
+source=("https://gitlab.com/thefinn93/signald/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
         'gradle-no-daemon.patch'
         'signald.install')
-sha512sums=('c84e086d3441db81e095dbc48dbb3579de9afd6a9fe22f8283f04b4eb4890c049e482b799f8aad0a761440a26101f989fc1a30edb0821b9f792a42edfc8e414c'
+sha512sums=('5ad6f4d0733e880f3d60a38bc3f25eb04ea43f7755d1e24df7b0bd0ee0c369fcd53978055e786f35558d70747a66206c6cab9819cf4d37561b6020734c0c0032'
             'aa2ff9eef6ebd8ad31275a587b7b24e34938e9744b06892c96d43e274b18a15d2f0258f56cea8fea9163e85a754ebde1e66c20781876bcb524960defe02ce535'
             '9ac1f323657bdf0357d005635394f0b21a74a76d3b25307c9ccec32c10eed00686e584a021028658ebd023c029c3b44485713532bb6f04b30c887790bf617a42')
 backup=('var/lib/signald/data')

GI_Jack commented on 2020-10-03 15:57 (UTC)

Try it now

tywyqu commented on 2020-10-03 01:08 (UTC)

System keep flashing signald as out of date, is it intentionally left pkgver=0.9.0 in PKGBUILD ?