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