#ClamSMTP rpm spec file %define ver 1.1 %define rel 1mdk %define prefix /usr Summary: ClamSMTP Virus Filter Daemon Name: clamsmtp Version: %ver Release: %rel Copyright: Stefan Walter Group: Networking/Daemons Source0: http://memberwebs.com/stef/software/clamsmtp/clamsmtp-%{ver}.tar.gz Source1: http://passim.net/software/clamsmtp/clamsmtp_initmdk.tar.gz Patch0: http://passim.net/software/clamsmtp/clamsmtp.virusheader.patch.tar.gz Url: http://memberwebs.com/stef/software/clamsmtp/ Packager: Rubio Vaughan (rubio@passim.net) BuildRoot: %{_tmppath}/%{name}-%{ver}-root %description ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software. It accepts SMTP connections and forwards the SMTP commands and responses to another SMTP server. The 'DATA' email body is intercepted and scanned before forwarding. ClamSMTP aims to be lightweight, reliable, and simple rather than have a myriad of options. It's written in C without major dependencies. If you need more options then you could use something big like AMaViS which is written in PERL and can do almost anything. ClamSMTP is written with the Postfix mail server in mind and can be configured as a Postfix Content Filter. ClamSMTP can also be used as a transparent proxy to filter an entire network's SMTP traffic at the router. %prep rm -rf $RPM_BUILD_ROOT %setup -a 1 %patch0 -p0 %build %configure %make %makeinstall mkdir -p %{buildroot}%{_initrddir} mkdir -p %{buildroot}%{_sysconfdir} cp init.d/clamsmtpd %{buildroot}%{_initrddir} cp doc/clamsmtpd.conf %{buildroot}%{_sysconfdir} %clean rm -rf $RPM_BUILD_ROOT %pre %post /sbin/chkconfig --add clamsmtpd %preun /sbin/chkconfig --del clamsmtpd %files %defattr(-,root,root) %attr(700,root,root) %config(noreplace) %{_initrddir}/clamsmtpd %attr(600,root,root) %config(noreplace) %{_sysconfdir}/clamsmtpd.conf %attr(700,root,root) %{_sbindir}/clamsmtpd %{_mandir}/man5/clamsmtpd.conf.5 %{_mandir}/man8/clamsmtpd.8 %changelog * Mon Nov 1 2004 Rubio Vaughan 1.1-1mdk - Updated to version 1.1 * Sat Oct 30 2004 Rubio Vaughan 1.0-1mdk - Updated to version 1.0 - Added virusheader patch * Mon Sep 27 2004 Rubio Vaughan 0.9-1mdk - Updated to version 0.9 - Removed droppriv patch since it's integrated in the main ClamSMTP distribution now. * Sun Sep 12 2004 Rubio Vaughan 0.8-2mdk - Added droppriv patch to run clamsmtpd under a different user - Added Mandrake init script * Sun Sep 12 2004 Rubio Vaughan 0.8-1mdk - Created clamsmtp.spec file