Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
sophie
> sophie.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sophie.spec of Package sophie (Revision 18)
Currently displaying revision
18
,
show latest
%define pversion 3.06Beta %define qdir /var/qmail Name: sophie Summary: Sophie Daemon for Sophos Antivirus Group: System/Security Version: 3.05.99 Release: 0 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 \ --enable-net \ --enable-fgets \ --with-savilib=%{_libdir} && cat config.log %build %__make %install %if 0%{?suse_version} sed -i s#"^user: mail$"#"user: vscan"#g etc/sophie.cfg sed -i s#"^group: mail$"#"group: vscan"#g etc/sophie.cfg %endif mkdir -p $RPM_BUILD_ROOT%{_bindir} %__install -m 755 sophie $RPM_BUILD_ROOT%{_bindir}/ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d %__install -m 755 contrib/sophie.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/sophie %__install -m 644 etc/sophie.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ %__install -m 644 etc/sophie.savi $RPM_BUILD_ROOT%{_sysconfdir}/ mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 %__install -m 644 sophie.8 $RPM_BUILD_ROOT%{_mandir}/man8 mkdir -p $RPM_BUILD_ROOT%{qdir} tar xfj %{S:1} -C $RPM_BUILD_ROOT%{qdir} %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 %{_bindir}/sophie %{_sysconfdir}/init.d/sophie %{_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(0751,qmaill,qmail) %{qdir}/supervise/sophie/run %attr(0751,qmaill,qmail) %{qdir}/supervise/sophie/log/run %changelog * Thu Feb 19 2009 Carsten Schoene <cs@linux-administrator.com> - change user/group to vscan in sophie.cfg for suse based distributions * Sat Jul 12 2008 Carsten Schoene <cs@linux-administrator.com> - update to 3.06 Beta (3.05.99) * Fri Jul 11 2008 Carsten Schoene <cs@linux-administrator.com> - initial build of sophie