Package Details: postsrsd 1.6-5

Git Clone URL: (read-only, click to copy)
Package Base: postsrsd
Description: Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix
Upstream URL:
Licenses: GPL2
Submitter: fordprefect
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 2
Popularity: 0.000818
First Submitted: 2016-03-30 16:15
Last Updated: 2019-04-30 06:58

Latest Comments

1 2 3 Next › Last »

fordprefect commented on 2020-11-02 14:28

@Thaodan: Thanks for your suggestions. However, I prefer explanations over plain diff dumps. I see why we'd want to set systemd in the cmake flags, but why install an empty directory?

Thaodan commented on 2020-11-02 03:25

Needed to patch the pkgbuild by this to build in a clean-chroot: The indendation is not important but forcing the init systemd detection and the install.

diff --git a/PKGBUILD b/PKGBUILD
index 19c9507..eafd6af 100644
@@ -37,7 +37,11 @@ build() {
   [[ -d build ]] && rm -rf build
   mkdir build
   cd build
+  cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCONFIG_DIR=/etc/postsrs \
+        -DINIT_FLAVOR=systemd
   make all

@@ -49,6 +53,7 @@ package() {

   #rm -rf $pkgdir/usr/lib
   mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
+  install -m755 -d "$pkgdir/etc/postsrsd"
   sed -e 's/^\(RUN_AS=\)nobody/#\1postsrsd/;s/\(\/etc\/postsrsd\)\(\.secret\)/\1\/postsrsd\2/' \
       -e 's/^\(# is \).*$/\1localhost\.localdomain/'< postsrsd.default > "$pkgdir/etc/postsrsd/postsrsd"

Jonhoo commented on 2019-07-02 15:44

It looks like sysusers.d is broken again. I now get:

Jul 02 10:23:17 vm-mx systemd-sysusers[270]: Failed to parse UID: 'mail': Invalid argument

I think the issue is that you must give a numeric UID. You can't give the name of an existing user. It looks like - is the value to use for automatic assignment, which is probably what we want.

fordprefect commented on 2019-04-30 06:57

@Jonhoo: you are right, we need type u here. Thank you.

Jonhoo commented on 2019-04-29 18:51

It looks like the sysusers.d file doesn't have the right format? I get:

[/usr/lib/sysusers.d/postsrsd.conf:2] Lines of type 'm' don't take a GECOS field.

Removing the GECOS field seems to make things work just fine

fordprefect commented on 2019-03-06 13:02

@bertptrs: thanks for finding the fix before I even had time to start searching!

bertptrs commented on 2019-03-06 12:39

I've created my own updated PKGBUILD that fixes both of the issues, which were coincidentally caused by the same thing. It adds a single commit as a patch until upstream makes a new release.

fordprefect commented on 2019-03-04 11:49

@bertptrs: thanks for notification. being short on time atm i just bumped the version without extensive testing. I will look into this in the coming days and push a fix.

bertptrs commented on 2019-03-04 11:45

Hey, I'm having trouble running this PKGBUILD. It appears that starting version 1.6, a few things have changed.

First: the directory /etc/postsrsd is no longer created by make install. This causes a problem on line 39 [1] of your PKGBUIDL, where you try to pipe into this directory. A simple mkdir -p "$pkgdir/etc/postsrsd" somewhere before that line should fix it.

Second: upstream changed their detection of systemd-based systems to something that doesn't actually work. I've notified upstream here [2].

[1] [2]

fordprefect commented on 2019-01-14 10:36

i omitted the bump on purpose, since it triggers a rebuild which is unneeded imo. on second thought though it corrects the location of the file, so you might be right here.