Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
spamassassin
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 16
[-]
[+]
Changed
spamassassin.spec
@@ -10,6 +10,8 @@ # norootforbuild +%define qdir /var/qmail + Name: spamassassin BuildRequires: perl-Digest-SHA1 perl-HTML-Parser perl-Net-DNS License: The Apache Software License @@ -26,6 +28,7 @@ Source1: local.cf Source2: init.spamd Source3: sysconfig.spamd +Source4: %{name}-supervise.tar.bz2 Patch0: patch-utf8 Patch1: patch-PgSQL-%{version} Patch2: patch-URIDNSBL @@ -48,6 +51,14 @@ -------- Justin Mason <me@jmason.org> +%package supervise +Group: Productivity/Networking/Email/Utilities +Summary: Supervise scripts for spamassassin daemon + +%description supervise +This package includes supervise scripts for the spamassassin daemon + + %debug_package %package -n perl-spamassassin Group: Development/Libraries/Perl @@ -110,6 +121,8 @@ echo "MakeMaker is broken again..." exit 1 } +mkdir -p $RPM_BUILD_ROOT%{qdir} +tar xfj %{S:1} -C $RPM_BUILD_ROOT%{qdir} %files -n perl-spamassassin %defattr(-,root,root) @@ -137,6 +150,16 @@ %config %attr(740,root,root) /etc/init.d/spamd /var/adm/fillup-templates/sysconfig.spamd + +%files supervise +%attr(1700,qmaill,qmail) %dir %{qdir}/supervise/spamassassin +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/spamassassin/env +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/spamassassin/log +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/spamassassin/supervise +%attr(0751,qmaill,qmail) %{qdir}/supervise/spamassassin/run +%attr(0751,qmaill,qmail) %{qdir}/supervise/spamassassin/log/run + + %post %{fillup_and_insserv -n spamd} @@ -158,6 +181,20 @@ } exit 0 +%post supervise +if [ "$1" == 1 ]; then +# Make start + pushd /service + ln -s %{qdir}/supervise/spamassassin + popd +fi + +%postun supervise +if [ "$1" = 0 ]; then + rm -f /service/spamassassin* +fi + + %clean rm -rf $RPM_BUILD_ROOT %changelog
Added
spamassassin-supervise.tar.bz2
^