rpms/spampd/FC-6 spampd.init, NONE, 1.1 spampd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Mon Feb 12 19:11:17 UTC 2007
- Previous message (by thread): rpms/spampd/FC-5 spampd.init, NONE, 1.1 spampd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/spampd/devel spampd.init, NONE, 1.1 spampd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: thias
Update of /cvs/extras/rpms/spampd/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18799/FC-6
Modified Files:
.cvsignore sources
Added Files:
spampd.init spampd.spec
Log Message:
Initial import of spampd.
--- NEW FILE spampd.init ---
#!/bin/sh
#
# This script starts and stops the spampd daemon
#
# chkconfig: - 79 31
#
# description: spampd uses SpamAssassin to check email messages for SPAM.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
prog="spampd"
OPTIONS="--user=spampd --group=spampd --tagall --local-only"
# Source an auxiliary options file if we have one, and pick up OPTIONS,
if [ -r /etc/sysconfig/$prog ]; then
. /etc/sysconfig/$prog
fi
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon $prog $OPTIONS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
[ -f /var/lock/subsys/$prog ] && restart
;;
status)
status $prog
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL
--- NEW FILE spampd.spec ---
Summary: Transparent SMTP/LMTP proxy filter using spamassassin
Name: spampd
Version: 2.30
Release: 3%{?dist}
License: GPL
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.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig
Requires(postun): /sbin/service
BuildArch: noarch
%description
Spampd is a program used within an e-mail delivery system to scan messages for
possible Unsolicited Commercial E-mail (UCE, aka spam) content. It uses
SpamAssassin (SA) to do the actual message scanning. Spampd acts as a
transparent SMTP/LMTP proxy between two mail servers, and during the
transaction it passes the mail through SA. If SA decides the mail could be
spam, then spampd will ask SA to add some headers and a report to the message
indicating it's spam and why.
%prep
%setup -q
%{__rm} -f spampd.html
%{__chmod} -x changelog.txt
%build
%{__make} spampd.8
%{__make} spampd.html
%install
%{__rm} -rf %{buildroot}
# Main program
%{__install} -D -p -m 0755 spampd \
%{buildroot}%{_sbindir}/spampd
# Man page
%{__install} -D -p -m 0644 spampd.8 \
%{buildroot}%{_mandir}/man8/spampd.8
# Init script
%{__install} -D -p -m 0755 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/rc.d/init.d/spampd
# Home directory
%{__mkdir_p} %{buildroot}/var/spool/spampd
%clean
%{__rm} -rf %{buildroot}
%pre
/usr/sbin/useradd -r -M -s /sbin/nologin -d /var/spool/spampd \
spampd &>/dev/null || :
%post
/sbin/chkconfig --add spampd
%preun
if [ $1 -eq 0 ]; then
/sbin/service spampd stop &>/dev/null || :
/sbin/chkconfig --del spampd
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service spampd condrestart &>/dev/null || :
fi
%files
%defattr(-, root, root, 0755)
%doc changelog.txt spampd.html
%{_sysconfdir}/rc.d/init.d/spampd
%{_sbindir}/spampd
%{_mandir}/man8/spampd.8*
%attr(0750, spampd, spampd) /var/spool/spampd/
%changelog
* Mon Jan 29 2007 Matthias Saou <http://freshrpms.net/> 2.30-3
- Fix %%pre typo (/dev/nulll).
- Silence %%setup.
- Add scriplet chkconfig and service requirements.
* Tue Nov 7 2006 Matthias Saou <http://freshrpms.net/> 2.30-2
- Initial RPM release.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/spampd/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 12 Feb 2007 17:45:37 -0000 1.1
+++ .cvsignore 12 Feb 2007 19:10:45 -0000 1.2
@@ -0,0 +1 @@
+spampd-2.30.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/spampd/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 12 Feb 2007 17:45:37 -0000 1.1
+++ sources 12 Feb 2007 19:10:45 -0000 1.2
@@ -0,0 +1 @@
+742c6f2cb75db54e59d044a8ee40445f spampd-2.30.tar.gz
- Previous message (by thread): rpms/spampd/FC-5 spampd.init, NONE, 1.1 spampd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/spampd/devel spampd.init, NONE, 1.1 spampd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list