From 2e9acc03e66288d236713209d9bd0c8a945f23c6 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Jan 31 2014 00:37:51 +0000 Subject: Add default sysconfig file. --- 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, 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 - 2.30-17 +- provide default sysconfig file + * Mon Dec 09 2013 Bojan Smojver - 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"