Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
sophos-av
> sophos.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sophos.spec of Package sophos-av (Revision 23)
Currently displaying revision
23
,
show latest
# sweep user %define SWEEPUID 90 # sweep group %define SWEEPGID 90 # sweep home %define SWEEP_HOME /var/lib/sav Name: sophos-av Summary: Sophos Antivirus Group: System/Security Version: 4.33 Release: 0 Url: http://www.sophos.com/ License: unknown %ifnarch x86_64 Source0: http://downloads.sophos.com/dp/full/linux.intel.libc6.tar.Z %else Source0: http://downloads.sophos.com/dp/full/linux.amd64.glibc.2.3.tar.Z %endif Patch0: sophos-permission.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: libsavi >= 3 BuildRequires: qmail_prepare_build procps Requires: openldap2-client %if 0%{?suse_version} >= 1030 PreReq: pwdutils Requires: pwdutils %endif %description %prep %setup0 -n sav-install %patch0 %build %__mkdir_p %{buildroot}%{_prefix}/bin %__mkdir_p %{buildroot}%{_prefix}/%{_lib} %__mkdir_p %{buildroot}%{_mandir} %__mkdir_p %{buildroot}%{_localstatedir}/%{_lib}/sav %__mkdir_p %{buildroot}%{_localstatedir}/spool/intercheck %__mkdir_p %{buildroot}%{_prefix}/local %install ./install.sh -v -d %{buildroot}%{_prefix} -l %{buildroot}%{_libdir} -m %{buildroot}%{_mandir} -s %{buildroot}%{_localstatedir}/%{_lib}/sav -so -i %{buildroot}%{_localstatedir}/spool/intercheck cd %{buildroot}%{_mandir} for TARGET in ja_JP ja_JP.euc ja_JP.eucJP ja_JP.ujis japanese japanese.euc do rm -f ${TARGET} ln -sf %{_mandir}/jp.euc ${TARGET} done cd %{buildroot}%{_prefix}/local ln -sf %{_localstatedir}/%{_lib}/sav %post # sweep if [ -z "`%__grep "^sweep:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{SWEEPGID} sweep fi if [ -z "`%__grep "^sweep" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "sweep" -d %{SWEEP_HOME} -g %{SWEEPGID} -u %{SWEEPUID} -r -s /bin/false sweep fi %files %defattr(-,root,root) %{_bindir}/icheckd %{_bindir}/sweep %{_libdir}/libsavi.so %{_libdir}/libsavi.so.2 %{_libdir}/libsavi.so.3 %{_libdir}/libsavi.so.3.2.07.212 %{_mandir}/de/man1/icheckd.1.gz %{_mandir}/de/man1/sweep.1.gz %{_mandir}/de/man5/icheckd.conf.5.gz %{_mandir}/es/man1/icheckd.1.gz %{_mandir}/es/man1/sweep.1.gz %{_mandir}/es/man5/icheckd.conf.5.gz %{_mandir}/fr/man1/icheckd.1.gz %{_mandir}/fr/man1/sweep.1.gz %{_mandir}/fr/man5/icheckd.conf.5.gz %{_mandir}/it/man1/icheckd.1.gz %{_mandir}/it/man1/sweep.1.gz %{_mandir}/it/man5/icheckd.conf.5.gz %{_mandir}/ja_JP %{_mandir}/ja_JP.euc %{_mandir}/ja_JP.eucJP %{_mandir}/ja_JP.ujis %{_mandir}/japanese %{_mandir}/japanese.euc %{_mandir}/jp.euc/man1/icheckd.1.gz %{_mandir}/jp.euc/man1/sweep.1.gz %{_mandir}/jp.euc/man5/icheckd.conf.5.gz %{_mandir}/jp.utf/man1/icheckd.1.gz %{_mandir}/jp.utf/man1/sweep.1.gz %{_mandir}/jp.utf/man5/icheckd.conf.5.gz %{_mandir}/man1/icheckd.1.gz %{_mandir}/man1/sweep.1.gz %{_mandir}/man5/icheckd.conf.5.gz %attr (2775,sweep,sweep) %dir %{_localstatedir}/%{_lib}/sav %{_localstatedir}/%{_lib}/sav/eminstall.sh %{_localstatedir}/%{_lib}/sav/icmess.dat %{_localstatedir}/%{_lib}/sav/sus01.vdb %{_localstatedir}/%{_lib}/sav/svext.dat %{_localstatedir}/%{_lib}/sav/swpmess.dat %{_localstatedir}/%{_lib}/sav/vdl* %{_prefix}/local/sav %changelog * Fri Jul 11 2008 Carsten Schoene <cs@linux-administrator.com> - initial build of sophos-av