Package Details: postsrsd 2.0.9-1

Git Clone URL: https://aur.archlinux.org/postsrsd.git (read-only, click to copy)
Package Base: postsrsd
Description: Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix
Upstream URL: https://github.com/roehling/postsrsd
Licenses: GPL2
Submitter: fordprefect
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 3
Popularity: 0.94
First Submitted: 2016-03-30 16:15 (UTC)
Last Updated: 2024-04-15 07:55 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

fordprefect commented on 2024-05-02 12:41 (UTC)

No worries, mate. Such things slip by easily!

Torxed commented on 2024-05-02 12:29 (UTC)

That is fair. Built the package in a arch container and it struggled to find make. But yes that makes sense. Apologies for the noise.

fordprefect commented on 2024-05-02 12:16 (UTC)

@Torxed: Nitpicking back: IIRC, both are part of base-devel, prerequisite of building from AUR at all.

Torxed commented on 2024-05-02 12:14 (UTC)

Nitpicking, but I believe gcc and make are also makedepends:

diff --git a/PKGBUILD b/PKGBUILD
index d66b401..df20808 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgrel=1
 pkgdesc="Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix"
 arch=('i686' 'x86_64' 'armv7h')
 depends=('glibc' 'systemd')
-makedepends=('cmake' 'help2man')
+makedepends=('cmake' 'gcc' 'make' 'help2man')
 backup=("etc/$pkgname/$pkgname.conf" "etc/$pkgname/$pkgname.secret" "etc/$pkgname/$pkgname")    #last entry is legacy from version 1
 url="https://github.com/roehling/$pkgname"
 install=$pkgname.install

dreieck commented on 2023-03-27 20:50 (UTC)

Currently, configuration fails for me with

CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!

Full terminal output of build():

==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for grp.h
-- Looking for grp.h - found
-- Looking for netdb.h
-- Looking for netdb.h - found
-- Looking for poll.h
-- Looking for poll.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/file.h
-- Looking for sys/file.h - found
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/un.h
-- Looking for sys/un.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for wait.h
-- Looking for wait.h - found
-- Looking for close_range
-- Looking for close_range - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned long
-- Check size of unsigned long - done
CMake Error at CMakeLists.txt:323 (install):
  install FILES given no DESTINATION!


-- Turned off installing because Check is a subproject.
-- Turned off building tests because Check is a subproject.
CMake Deprecation Warning at build/_deps/check-src/CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0076 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Looking for 3 include files sys/types.h, ..., inttypes.h
-- Looking for 3 include files sys/types.h, ..., inttypes.h - found
-- Looking for 4 include files sys/types.h, ..., limits.h
-- Looking for 4 include files sys/types.h, ..., limits.h - found
-- Looking for 5 include files sys/types.h, ..., regex.h
-- Looking for 5 include files sys/types.h, ..., regex.h - found
-- Looking for 7 include files sys/types.h, ..., stdarg.h
-- Looking for 7 include files sys/types.h, ..., stdarg.h - found
-- Looking for 9 include files sys/types.h, ..., stdlib.h
-- Looking for 9 include files sys/types.h, ..., stdlib.h - found
-- Looking for 10 include files sys/types.h, ..., string.h
-- Looking for 10 include files sys/types.h, ..., string.h - found
-- Looking for 11 include files sys/types.h, ..., strings.h
-- Looking for 11 include files sys/types.h, ..., strings.h - found
-- Looking for 15 include files sys/types.h, ..., pthread.h
-- Looking for 15 include files sys/types.h, ..., pthread.h - found
-- Looking for 16 include files sys/types.h, ..., windows.h
-- Looking for 16 include files sys/types.h, ..., windows.h - not found
-- Looking for fork
-- Looking for fork - found
-- Looking for getline
-- Looking for getline - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for _getpid
-- Looking for _getpid - not found
-- Looking for _strdup
-- Looking for _strdup - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Test HAVE_PTHREADS_FLAG
-- Performing Test HAVE_PTHREADS_FLAG - Success
-- Looking for INT64_MAX
-- Looking for INT64_MAX - found
-- Looking for INT64_MIN
-- Looking for INT64_MIN - found
-- Looking for UINT32_MAX
-- Looking for UINT32_MAX - found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for SIZE_MAX
-- Looking for SIZE_MAX - found
-- Looking for SSIZE_MAX
-- Looking for SSIZE_MAX - found
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE - Failed
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of unsigned __int64
-- Check size of unsigned __int64 - failed
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of intmax_t
-- Check size of intmax_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of clock_t
-- Check size of clock_t - done
-- Check size of clockid_t
-- Check size of clockid_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of timer_t
-- Check size of timer_t - done
-- Looking for floor in m
-- Looking for floor in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for subunit_test_start in subunit
-- Looking for subunit_test_start in subunit - not found
-- The following features have been disabled:

 * WITH_MILTER, run PostSRSd as milter
 * WITH_SQLITE, use SQLite as database backend
 * WITH_REDIS, use Redis as database backend
 * GENERATE_SRS_SECRET, generate missing /etc/postsrsd.secret on install

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

Regards!

mezcal commented on 2023-03-09 10:52 (UTC) (edited on 2023-03-09 10:53 (UTC) by mezcal)

Hello, I am thinking to upgrade to version 2. In the config file is unprivileged-user = "nobody". Should I left it? Is it better to run as postsrsd user? unprivileged-user = "postsrsd"

fordprefect commented on 2023-01-18 13:49 (UTC)

@peippo: thanks for testing and feedback, I implemented the requested changes.

peippo commented on 2023-01-18 09:49 (UTC)

A slight correction: it seems /var/spool/postfix/srs should not be created at all, if postfix is installed as well (it should be, as communication between postfix and postsrsd is now exclusively over unix sockets)

peippo commented on 2023-01-18 08:42 (UTC)

Hi! @fordprefect, I found a couple minor changes required to build in a chroot and on systems that do not have postsrsd installed, already:

1) postsrsd needs systemd as a dependency, and 2) creating /var/spool/postfix/srs should happen in the tmpfiles.d (at build/packaging time, the user does not exist)

Other than that, works like a charm, thank you so much!

fordprefect commented on 2023-01-06 21:42 (UTC)

The package major version has been updated, for migration hints see Readme. Please report any bugs.