- bnc#914505: Config file merging and temp file creation got moved

to %pre by mistake. Put them back to %post.
- Restore the updateclamconf script (bnc#908731).
- Fix a step backwards in the soname version from 0.98.4 to 0.98.5
  (https://bugzilla.clamav.net/show_bug.cgi?id=11193).

OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=111
This commit is contained in:
2015-01-23 14:07:57 +00:00
committed by Git OBS Bridge
parent b85a1eb8ca
commit 99c3101ce3
3 changed files with 43 additions and 5 deletions

26
clamav-soname.patch Normal file
View File

@@ -0,0 +1,26 @@
diff --git a/configure b/configure
index 95168bb..c31f831 100755
--- a/configure
+++ b/configure
@@ -5090,7 +5090,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
VERSION="0.98.5"
LC_CURRENT=7
-LC_REVISION=22
+LC_REVISION=24
LC_AGE=1
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
diff --git a/m4/reorganization/version.m4 b/m4/reorganization/version.m4
index ea263b2..f4fe8b1 100644
--- a/m4/reorganization/version.m4
+++ b/m4/reorganization/version.m4
@@ -3,7 +3,7 @@ dnl VERSION="devel-`date +%Y%m%d`"
VERSION="0.98.5"
LC_CURRENT=7
-LC_REVISION=22
+LC_REVISION=24
LC_AGE=1
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
AC_SUBST([LIBCLAMAV_VERSION])

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Jan 23 14:03:18 UTC 2015 - max@suse.com
- bnc#914505: Config file merging and temp file creation got moved
to %pre by mistake. Put them back to %post.
- Restore the updateclamconf script (bnc#908731).
- Fix a step backwards in the soname version from 0.98.4 to 0.98.5
(https://bugzilla.clamav.net/show_bug.cgi?id=11193).
-------------------------------------------------------------------
Thu Jan 1 21:34:01 UTC 2015 - meissner@suse.com

View File

@@ -68,6 +68,7 @@ Source9: service.clamav-milter
Patch1: clamav-conf.patch
Patch2: clamav-sles9.patch
Patch3: clamav-gcc47.patch
Patch4: clamav-soname.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: systemd
%systemd_requires
@@ -90,6 +91,7 @@ and multiple signature languages for detecting threats.
%patch2
%endif
%patch3 -p1
%patch4 -p1
%build
%if 0%{?suse_version} >= 1010
@@ -130,6 +132,7 @@ make V=1 %{?jobs:-j%jobs}
%install
%makeinstall
install -m755 %SOURCE3 %buildroot%_sbindir/updateclamconf
install -d -m755 %buildroot/var/lib/clamav
install -d -m755 %buildroot/%_tmpfilesdir
install -m644 %SOURCE6 %buildroot%_tmpfilesdir/clamav.conf
@@ -195,8 +198,13 @@ VALGRIND_GENSUP=1 make check
%_sbindir/groupadd -r vscan 2> /dev/null || :
%_sbindir/useradd -r -o -g vscan -u 65 -s /bin/false -c "Vscan account" -d /var/spool/amavis vscan 2> /dev/null || :
%_sbindir/usermod vscan -g vscan 2> /dev/null || :
%service_add_pre clamd.service freshclam.service clamav-milter.service
%post
/sbin/ldconfig
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
%service_add_post clamd.service freshclam.service clamav-milter.service
# merge config files on update
test "0$1" -lt 2 && exit 0
umask 022
@@ -212,11 +220,6 @@ for f in /etc/clamd.conf /etc/freshclam.conf /etc/clamav-milter.conf; do
fi
fi
done
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
%service_add_pre clamd.service freshclam.service clamav-milter.service
%post
%service_add_post clamd.service freshclam.service clamav-milter.service
%preun
%service_del_preun clamd.service freshclam.service clamav-milter.service