forked from pool/postsrsd
Accepting request 283290 from home:jengelh:dev
Helper for postfix for Sender Rewriting Scheme (SRS) OBS-URL: https://build.opensuse.org/request/show/283290 OBS-URL: https://build.opensuse.org/package/show/server:mail/postsrsd?expand=0&rev=1
This commit is contained in:
commit
82e4569eae
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
postsrsd-1.2.g9.tar.xz
Normal file
3
postsrsd-1.2.g9.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:809fb097760a3a4ee69e29f8f8a9b375bdf567d05c46e26aae65f13bf06d349a
|
||||||
|
size 23772
|
4
postsrsd.changes
Normal file
4
postsrsd.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 18 09:47:29 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Initial package for build.opensuse.org (version 1.2+git2)
|
86
postsrsd.spec
Normal file
86
postsrsd.spec
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
#
|
||||||
|
# spec file for package postsrsd
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: postsrsd
|
||||||
|
Version: 1.2.g9
|
||||||
|
Release: 0
|
||||||
|
Summary: Sender Rewriting Support for postfix
|
||||||
|
License: GPL-2.0
|
||||||
|
Group: Productivity/Networking/Email/Servers
|
||||||
|
Url: https://github.com/roehling/postsrsd
|
||||||
|
|
||||||
|
#Git-Clone: git://github.com/roehling/postsrsd
|
||||||
|
#Snapshot: 1.2-9-gb161cb4 ; no regular release tarballs available
|
||||||
|
Source: %name-%version.tar.xz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: xz
|
||||||
|
|
||||||
|
%description
|
||||||
|
PostSRSd provides the Sender Rewriting Scheme (SRS) via TCP-based
|
||||||
|
lookup tables for Postfix. SRS is needed if your mail server acts
|
||||||
|
as forwarder.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn %name
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake -DGENERATE_SRS_SECRET=0 -DCHROOT_DIR=/var/lib/empty \
|
||||||
|
-DUSE_APPARMOR=1 -DINIT_FLAVOR=systemd
|
||||||
|
%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/"
|
||||||
|
mv "$b/%_datadir/doc/%name" "$b/%_defaultdocdir/"
|
||||||
|
cp README.md "$b/%_defaultdocdir/%name/"
|
||||||
|
ln -s service "$b/%_sbindir/rcpostsrsd"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre postsrsd.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
s="%_sysconfdir/postsrsd.secret"
|
||||||
|
if [ ! -e "$s" ]; then
|
||||||
|
echo "No postsrsd secret found in $s, generating one."
|
||||||
|
dd if=/dev/urandom of="$s" bs=64 count=1
|
||||||
|
fi
|
||||||
|
%service_add_post postsrsd.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun postsrsd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun postsrsd.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%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
|
||||||
|
%_docdir/%name/
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user