[spampd] Add default sysconfig file.

bojan bojan at fedoraproject.org
Fri Jan 31 00:37:34 UTC 2014


commit 2e9acc03e66288d236713209d9bd0c8a945f23c6
Author: Bojan Smojver <bojan at rexursive.com>
Date:   Fri Jan 31 11:37:51 2014 +1100

    Add default sysconfig file.

 spampd.spec      |   10 +++++++++-
 spampd.sysconfig |    1 +
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/spampd.spec b/spampd.spec
index b167b56..45e33ea 100644
--- a/spampd.spec
+++ b/spampd.spec
@@ -1,13 +1,14 @@
 Summary: Transparent SMTP/LMTP proxy filter using spamassassin
 Name: spampd
 Version: 2.30
-Release: 16%{?dist}
+Release: 17%{?dist}
 License: GPLv2+
 Group: System Environment/Daemons
 URL: http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm
 Source0: http://www.worlddesign.com/Content/rd/mta/spampd/spampd-%{version}.tar.gz
 Source1: spampd.service
 Source2: README.systemd
+Source3; spampd.sysconfig
 # Fix POD errors, <https://github.com/mpaperno/spampd/issues/1>
 Patch0:  spampd-2.30-Fix-POD-errors.patch
 Patch1:  spampd-2.30-untaint.patch
@@ -59,6 +60,9 @@ indicating it's spam and why.
 # Init script
 %{__install} -D -p -m 0755 %{SOURCE1} \
     %{buildroot}%{_unitdir}/spampd.service
+# Sysconfig
+%{__install} -D -p -m 0644 %{SOURCE3} \
+    %{buildroot}%{_sysconfdir}/sysconfig/spampd
 # Home directory
 %{__mkdir_p} %{buildroot}/var/spool/spampd
 
@@ -83,6 +87,7 @@ indicating it's spam and why.
 %files
 %defattr(-,root,root,-)
 %doc changelog.txt spampd.html README.systemd
+%config(noreplace) %{_sysconfdir}/sysconfig/spampd
 %{_unitdir}/spampd.service
 %{_sbindir}/spampd
 %{_mandir}/man8/spampd.8*
@@ -90,6 +95,9 @@ indicating it's spam and why.
 
 
 %changelog
+* Fri Jan 31 2014 Bojan Smojver <bojan at rexursive.com> - 2.30-17
+- provide default sysconfig file
+
 * Mon Dec 09 2013 Bojan Smojver <bojan at rexursive.com> - 2.30-16
 - convert to systemd
 - untaint some variables (Perl 5.18)
diff --git a/spampd.sysconfig b/spampd.sysconfig
new file mode 100644
index 0000000..6c522c5
--- /dev/null
+++ b/spampd.sysconfig
@@ -0,0 +1 @@
+SPAMPD_OPTIONS="--host=127.0.0.1:10026 --relayhost=127.0.0.1:10027"


More information about the scm-commits mailing list