Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
sophie
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Changed
sophie.spec
@@ -1,4 +1,5 @@ %define pversion 3.06Beta +%define qdir /var/qmail Name: sophie Summary: Sophie Daemon for Sophos Antivirus Group: System/Security @@ -7,12 +8,21 @@ Url: http://www.clanfield.info/sophie/ License: GPL Source0: http://www.clanfield.info/sophie/%{name}-%{pversion}.tar.bz2 +Source1: %{name}-supervise.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libsavi >= 3 %description +Sophie Daemon for Sophos Antivirus +%package supervise +Group: System/Security +Summary: Supervise scripts for sophie daemon + +%description supervise +This package includes supervise scripts for the sophie daemon + %prep %setup0 -n %{name}-%{pversion} %configure \ @@ -37,6 +47,19 @@ %post +%post supervise +if [ "$1" == 1 ]; then +# Make start + pushd /service + ln -s %{qdir}/supervise/sophie + popd +fi + +%postun supervise +if [ "$1" = 0 ]; then + rm -f /service/sophie* +fi + %files %defattr(-,root,root) %doc Changes Credits LICENSE README README.NETWORK eicar.com @@ -46,6 +69,16 @@ %{_sysconfdir}/sophie.* %{_mandir}/man8/sophie.8.gz +%files supervise +%attr(1700,qmaill,qmail) %dir %{qdir}/supervise/sophie +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/sophie/env +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/sophie/log +%attr(0700,qmaill,qmail) %dir %{qdir}/supervise/sophie/supervise +%attr(0600,qmaill,qmail) %{qdir}/supervise/sophie/env/* +%attr(0751,qmaill,qmail) %{qdir}/supervise/sophie/run +%attr(0751,qmaill,qmail) %{qdir}/supervise/sophie/log/run + + %changelog * Sat Jul 12 2008 Carsten Schoene <cs@linux-administrator.com> - update to 3.06 Beta (3.05.99)