Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
sophos-av
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 8
[-]
[+]
Changed
sophos.spec
@@ -1,3 +1,12 @@ +# 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 @@ -9,7 +18,13 @@ Patch0: sophos-permission.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: libsavi >= 3 -BuildRequires: procps +BuildRequires: qmail_prepare_build procps +Requires: openldap2-client +%if 0%{?suse_version} >= 1030 +PreReq: pwdutils +Requires: pwdutils +%endif + %description @@ -27,6 +42,14 @@ %install ./install.sh -v -d %{buildroot}%{_prefix} -m %{buildroot}%{_mandir} -s %{buildroot}%{_localstatedir}/lib/sav -so -i +%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