Name: spamass-milter
Summary: Sendmail milter for spamassassin
Version: 0.3.1
Release: 3
License: GPL
Group: System Environment/Daemons
URL: http://savannah.gnu.org/projects/spamass-milt/
Description: A Sendmail milter (Mail Filter) library that pipes all incoming mail
(including things received by rmail/UUCP) through the SpamAssassin,
a highly customizable SpamFilter.
No build log yet for CentOS 7 x86_64
The build was succesful. The following RPMs were generated:
The spec file used by the build system currently has the following contents:
# $Id$ # Authority: dag # Upstream: <spamass-milt-list$nongnu,org> Summary: Sendmail milter for spamassassin Name: spamass-milter Version: 0.3.1 Release: 3%{?dist} License: GPL Group: System Environment/Daemons URL: http://savannah.gnu.org/projects/spamass-milt/ Source: http://savannah.nongnu.org/download/spamass-milt/spamass-milter-%{version}.tar.gz Patch0: spamass-milter-0.3.1-smtp-auth-bypass.patch Patch1: spamass-milter-0.3.1-popen.patch Patch2: spamass-milter-0.3.1-rcvd.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: spamassassin, sendmail-devel, gcc-c++ Requires: spamassassin, sendmail %description A Sendmail milter (Mail Filter) library that pipes all incoming mail (including things received by rmail/UUCP) through the SpamAssassin, a highly customizable SpamFilter. %prep %setup -q %patch0 -p1 -b .smtpauth %patch1 -p1 -b .popen %patch2 -p1 -b .rcvd %{__cat} <<EOF >spamass-milter.sysconfig ### Override for your different local config #SOCKET=/var/run/spamass.sock ### Default parameter for spamass-milter is -f (work in the background) ### you may add another parameters here, see spamass-milter(1) #EXTRA_FLAGS="-m -r 15" EOF %{__cat} <<'EOF' >spamass-milter.sysv #!/bin/bash # # Init file for Spamassassin sendmail milter. # # chkconfig: - 80 20 # description: spamass-milter is a daemon which hooks into sendmail and routes \ # email messages to spamassassin # # processname: spamass-milter # config: %{_sysconfdir}/sysconfig/spamass-milter # pidfile: %{_localstatedir}/run/spamass-milter source %{_initrddir}/functions source %{_sysconfdir}/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x %{_sbindir}/spamass-milter ] || exit 1 ### Default variables SOCKET="%{_localstatedir}/run/spamass.sock" EXTRA_FLAGS="-m -r 15" SYSCONFIG="%{_sysconfdir}/sysconfig/spamass-milter" ### Read configuration [ -r "$SYSCONFIG" ] && source "$SYSCONFIG" RETVAL=0 prog="spamass-milter" desc="Spamassassin sendmail milter" start() { echo -n $"Starting $desc ($prog): " daemon $prog -p $SOCKET -f $EXTRA_FLAGS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch %{_localstatedir}/lock/subsys/$prog return $RETVAL } stop() { echo -n $"Shutting down $desc ($prog): " killproc $prog RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f %{_localstatedir}/lock/subsys/$prog return $RETVAL } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; condrestart) [ -e %{_localstatedir}/lock/subsys/$prog ] && restart RETVAL=$? ;; status) status $prog RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" RETVAL=1 esac exit $RETVAL EOF %build %configure %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall %{__install} -Dp -m0755 spamass-milter.sysv %{buildroot}%{_initrddir}/spamass-milter %{__install} -Dp -m0644 spamass-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/spamass-milter %post /sbin/chkconfig --add spamass-milter %preun if [ $1 -eq 0 ]; then /sbin/service spamass-milter stop &>/dev/null || : /sbin/chkconfig --del spamass-milter fi %postun /sbin/service spamass-milter condrestart &>/dev/null || : %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog NEWS README %doc %{_mandir}/man1/spamass-milter.1* %config(noreplace) %{_sysconfdir}/sysconfig/spamass-milter %config %{_initrddir}/spamass-milter %{_sbindir}/spamass-milter %changelog * Fri May 07 2010 Steven Haigh <netwiz@crc.id.au> - 0.3.1-3 - Added patch to fix CVE-2010-1132. - Added patch to fix Received-header generation; this adds a space before the "(" between macro_j and macro_v.) * Sun Mar 07 2010 Yury V. Zaytsev <yury@shurup.com> - 0.3.1-2 - Added SMTP AUTH patch by Steven Haigh. * Tue Feb 08 2005 Dag Wieers <dag@wieers.com> - 0.3.1-1 - Updated to release 0.3.1. * Tue Feb 08 2005 Dag Wieers <dag@wieers.com> - 0.3.0-1 - Updated to release 0.3.0. * Wed Sep 01 2004 Dag Wieers <dag@wieers.com> - 0.2.0-1 - Fixed variables in sysconfig file. (mator) * Tue Feb 17 2004 Dag Wieers <dag@wieers.com> - 0.2.0-0 - Initial package. (using DAR)