From d31e92463a0e51dd0ff6650d05b79fac26c16ec139eabf99020bce194b21b7f9 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 7 Jan 2023 15:14:54 +0000 Subject: [PATCH 1/2] - Update to release 2.0.2 OBS-URL: https://build.opensuse.org/package/show/server:mail/postsrsd?expand=0&rev=9 --- 1.12.tar.gz | 3 --- 2.0.2.tar.gz | 3 +++ postsrsd.changes | 13 +++++++++++++ postsrsd.spec | 31 ++++++++++++++----------------- 4 files changed, 30 insertions(+), 20 deletions(-) delete mode 100644 1.12.tar.gz create mode 100644 2.0.2.tar.gz diff --git a/1.12.tar.gz b/1.12.tar.gz deleted file mode 100644 index 8917af0..0000000 --- a/1.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d9e66db879ae04e1332078867ae9b29718824fa5aec02d6015dccd1bd76585d -size 36860 diff --git a/2.0.2.tar.gz b/2.0.2.tar.gz new file mode 100644 index 0000000..7277203 --- /dev/null +++ b/2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2734d8d42670664263cd995526494372af23b87eb892d9e22bc98c67b9798a5f +size 59487 diff --git a/postsrsd.changes b/postsrsd.changes index df05505..6847f1c 100644 --- a/postsrsd.changes +++ b/postsrsd.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Jan 7 15:14:25 UTC 2023 - Jan Engelhardt + +- Update to release 2.0.2 + * Everything thrown over the fence, this is a complete rewrite + of PostSRSd. + * Configuration file, no more fiddling with environment variables. + * Support for socketmap table (Postfix 2.10 or newer required). + * Unix socket support + * Rewrite mode with database backend, supports unlimited email + address length. + * Experimental Milter support. + ------------------------------------------------------------------- Wed Aug 17 08:37:45 UTC 2022 - Jan Engelhardt diff --git a/postsrsd.spec b/postsrsd.spec index bd73d4a..2fcbaed 100644 --- a/postsrsd.spec +++ b/postsrsd.spec @@ -1,7 +1,7 @@ # # spec file for package postsrsd # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: postsrsd -Version: 1.12 +Version: 2.0.2 Release: 0 Summary: Sender Rewriting Support for postfix License: GPL-2.0-only @@ -25,8 +25,11 @@ Group: Productivity/Networking/Email/Servers URL: https://github.com/roehling/postsrsd Source: https://github.com/roehling/postsrsd/archive/%version.tar.gz -BuildRequires: cmake +BuildRequires: cmake >= 3.14 BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(libconfuse) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(systemd) %description PostSRSd provides the Sender Rewriting Scheme (SRS) via TCP-based @@ -37,18 +40,18 @@ as forwarder. %autosetup -p1 %build -%cmake -DGENERATE_SRS_SECRET=0 -DCHROOT_DIR=/var/lib/empty \ - -DUSE_APPARMOR=1 -DINIT_FLAVOR=systemd +%cmake -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS \ + -DGENERATE_SRS_SECRET=0 -DCHROOT_DIR=/var/lib/empty \ + -DUSE_APPARMOR=1 -DINIT_FLAVOR=systemd \ + -DWITH_SQLITE=BOOL:ON -DBUILD_TESTING:BOOL=OFF %make_jobs %install %cmake_install b="%buildroot" -mkdir -p "$b/%_prefix/lib/systemd/system" "$b/%_defaultdocdir" -mv "$b/%_sysconfdir/systemd/system"/* "$b/%_prefix/lib/systemd/system/" +mkdir -p "$b/%_defaultdocdir" mv "$b/%_datadir/doc/%name" "$b/%_defaultdocdir/" -cp README.md "$b/%_defaultdocdir/%name/" -ln -s service "$b/%_sbindir/rcpostsrsd" +cp README.rst "$b/%_defaultdocdir/%name/" %pre %service_add_pre postsrsd.service @@ -68,15 +71,9 @@ fi %service_del_postun postsrsd.service %files -%dir %_sysconfdir/apparmor.d -%config %_sysconfdir/apparmor.d/* -%config(noreplace) %_sysconfdir/default/postsrsd -%ghost %_sysconfdir/postsrsd.secret %_sbindir/postsrsd -%_sbindir/rcpostsrsd -%_prefix/lib/systemd/system/*.service +%_unitdir/* %_docdir/%name/ -%_datadir/postsrsd/ -%license LICENSE +%license LICENSES/* %changelog From de6b149a4fff2f70327c3633b5608be5c921489c44324116dbf37b844320758e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 7 Jan 2023 15:36:32 +0000 Subject: [PATCH 2/2] needs newer cmake OBS-URL: https://build.opensuse.org/package/show/server:mail/postsrsd?expand=0&rev=10 --- postsrsd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postsrsd.spec b/postsrsd.spec index 2fcbaed..677b984 100644 --- a/postsrsd.spec +++ b/postsrsd.spec @@ -25,7 +25,7 @@ Group: Productivity/Networking/Email/Servers URL: https://github.com/roehling/postsrsd Source: https://github.com/roehling/postsrsd/archive/%version.tar.gz -BuildRequires: cmake >= 3.14 +BuildRequires: cmake >= 3.24 BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(libconfuse) BuildRequires: pkgconfig(sqlite3)