From da0a629d8bfe2437430befb0b5a99a90b8855ea2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:22:09 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.7.2-1mamba;Sat Jan 28 2023] --- README.md | 2 ++ amavisd-milter.service | 18 ++++++++++++ amavisd-milter.spec | 64 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 amavisd-milter.service create mode 100644 amavisd-milter.spec diff --git a/README.md b/README.md index f482b0b..a077298 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # amavisd-milter +Milter interface for the amavis spam filter engine. + diff --git a/amavisd-milter.service b/amavisd-milter.service new file mode 100644 index 0000000..438a1d3 --- /dev/null +++ b/amavisd-milter.service @@ -0,0 +1,18 @@ +[Unit] +Description=Amavisd Milter +Wants=amavisd.service +After=network.target + +[Service] +PIDFile=/run/amavisd-milter/pid +Type=simple +User=vscan +Group=vscan +UMask=0007 +RuntimeDirectory=amavisd-milter +RuntimeDirectoryMode=750 +ExecStart=/usr/bin/amavisd-milter -f -p /run/amavisd-milter/pid -s unix:/run/amavisd-milter/socket -w /var/amavis/tmp -S /var/amavis/amavisd.sock -m 2 +PrivateTmp=true + +[Install] +WantedBy=multi-user.target diff --git a/amavisd-milter.spec b/amavisd-milter.spec new file mode 100644 index 0000000..eb1a30b --- /dev/null +++ b/amavisd-milter.spec @@ -0,0 +1,64 @@ +Name: amavisd-milter +Version: 1.7.2 +Release: 1mamba +Summary: Milter interface for the amavis spam filter engine +Group: System/Servers +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/prehor/amavisd-milter +Source: https://github.com/prehor/amavisd-milter/releases/download/%{version}/amavisd-milter-%{version}.tar.gz +#Source: https://github.com/prehor/amavisd-milter.git/%{version}/amavisd-milter-%{version}.tar.bz2 +Source1: amavisd-milter.service +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: libmilter-devel +Requires: amavisd-new + +%description +Milter interface for the amavis spam filter engine. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --localstatedir=/var/amavis + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -D -m0755 %{SOURCE1} %{buildroot}%{_unitdir}/amavisd-milter.service + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%preun +%systemd_preun amavisd-milter +: + +%post +%systemd_post amavisd-milter +: + +%postun +%systemd_postun_with_restart amavisd-milter +: + +%files +%defattr(-,root,root) +%{_sbindir}/amavisd-milter +%{_unitdir}/amavisd-milter.service +%{_mandir}/man8/amavisd-milter.8* +%doc LICENSE + +%changelog +* Sat Jan 28 2023 Silvan Calarco 1.7.2-1mamba +- package created using the webbuild interface