[packages/clamav] - more updates

arekm arekm at pld-linux.org
Mon Oct 14 20:27:11 CEST 2013


commit 5dcc5881ab89fea7e660fa98b8247410fbeed628
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Oct 14 20:27:09 2013 +0200

    - more updates

 ac2.68.patch | 62 ++++++++++++------------------------------------------------
 clamav.spec  |  7 ++++++-
 2 files changed, 18 insertions(+), 51 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index a75cd4e..87c2cc8 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -41,6 +41,7 @@ BuildRequires:	libltdl-devel
 %{?with_milter:BuildRequires:	libmilter-devel}
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
+BuildRequires:	llvm-devel
 %{?with_milter:BuildRequires:	libwrap-devel}
 %{?with_llvm:BuildRequires:	llvm-devel}
 BuildRequires:	ncurses-devel
@@ -170,7 +171,9 @@ Biblioteki statyczne clamav.
 %{__autoheader}
 %{__automake}
 %configure \
+	--disable-silent-rules \
 	--disable-clamav \
+	--enable-clamdtop \
 	%{?with_milter:--enable-milter} \
 	--with-dbdir=/var/lib/%{name} \
 	--with-no-cache \
@@ -203,7 +206,9 @@ cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/clamav-milter
 %endif
 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clamd
 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/clamav-cron-updatedb
-cp -p etc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
+for i in $RPM_BUILD_ROOT%{_sysconfdir}/*.conf.sample; do
+	mv $i ${i%%.sample}
+done
 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 install -p %{SOURCE8} $RPM_BUILD_ROOT%{_sbindir}
diff --git a/ac2.68.patch b/ac2.68.patch
index 27bd529..44362ec 100644
--- a/ac2.68.patch
+++ b/ac2.68.patch
@@ -1,15 +1,3 @@
-diff -ur clamav-0.97.5/clamav-milter/Makefile.am clamav-0.97.5-am/clamav-milter/Makefile.am
---- clamav-0.97.5/clamav-milter/Makefile.am	2012-06-12 15:36:05.000000000 +0200
-+++ clamav-0.97.5-am/clamav-milter/Makefile.am	2012-06-28 11:10:21.205378306 +0200
-@@ -45,7 +45,7 @@
- endif
- 
- DEFS = @DEFS@ -DCL_NOLIBCLAMAV
--CFLAGS=`echo "@CFLAGS@" | sed -e 's/-Wwrite-strings//' -e 's/-Werror /-Werror -Wno-error=format-nonliteral /'`
-+AM_CFLAGS=`echo "@CFLAGS@" | sed -e 's/-Wwrite-strings//' -e 's/-Werror /-Werror -Wno-error=format-nonliteral /'`
- LIBS = $(top_builddir)/libclamav/libclamav_internal_utils.la @CLAMAV_MILTER_LIBS@ @THREAD_LIBS@
- AM_CPPFLAGS = -I$(top_srcdir)/clamd -I$(top_srcdir)/libclamav -I$(top_srcdir)/shared -I$(top_srcdir)
- CLEANFILES=*.gcda *.gcno
 diff -ur clamav-0.97.5/configure.ac clamav-0.97.5-am/configure.ac
 --- clamav-0.97.5/configure.ac	2012-06-28 11:10:46.795377403 +0200
 +++ clamav-0.97.5-am/configure.ac	2012-06-28 11:01:44.658245193 +0200
@@ -64,41 +52,15 @@ diff -ur clamav-0.97.5/configure.ac clamav-0.97.5-am/configure.ac
  			    [CURSES_CPPFLAGS="$INCPDCURSES";
  			     CURSES_LIBS="$LTLIBPDCURSES";
  			     CURSES_INCLUDE="<curses.h>"],
-diff -ur clamav-0.97.5/m4/resolv.m4 clamav-0.97.5-am/m4/resolv.m4
---- clamav-0.97.5/m4/resolv.m4	2012-06-12 15:36:05.000000000 +0200
-+++ clamav-0.97.5-am/m4/resolv.m4	2012-06-28 11:09:01.312047789 +0200
-@@ -18,7 +18,7 @@
- 	[
- 	    AC_CACHE_CHECK([for dn_expand in std libs], [ac_cv_have_lresolv_std], [
- 	    	ac_cv_have_lresolv_std='no'
--	        AC_LINK_IFELSE([
-+	        AC_LINK_IFELSE([AC_LANG_SOURCE([
- #include <sys/types.h>
- #include <netinet/in.h>
- #include <arpa/nameser.h>
-@@ -28,14 +28,14 @@
- 		[
- 		    ac_cv_have_lresolv_std='yes'
- 		    ac_cv_have_lresolv=''
--		])
-+		])])
- 	    ])
- 	    if test "x$ac_cv_have_lresolv" = "xno"; then
- 	    bklibs=$LIBS
- 	    LIBS=-lresolv
- 	    AC_CACHE_CHECK([for dn_expand in -lresolv], [ac_cv_have_lresolv_lresolv], [
- 		ac_cv_have_lresolv_lresolv='yes'
--		AC_LINK_IFELSE([
-+		AC_LINK_IFELSE([AC_LANG_SOURCE([
- #include <sys/types.h>
- #include <netinet/in.h>
- #include <arpa/nameser.h>
-@@ -45,7 +45,7 @@
- 		[
- 		    ac_cv_have_lresolv_lresolv='yes'
- 		    ac_cv_have_lresolv=' -lresolv'
--		])
-+		])])
- 	    ])
- 	    LIBS=$bklibs;
- 	    fi
+
+--- clamav-0.98/configure.ac~	2013-10-14 20:17:59.000000000 +0200
++++ clamav-0.98/configure.ac	2013-10-14 20:19:05.824615211 +0200
+@@ -34,7 +34,7 @@
+ 
+ dnl -Wall and -Werror here are NOT CFLAGS, they refer to automake warnings
+ dnl enable stealth builds and psychedelic tests
+-AM_INIT_AUTOMAKE([1.10 -Wall -Wportability -Wno-override -Werror std-options foreign dist-bzip2 no-define tar-ustar])
++AM_INIT_AUTOMAKE([1.10 -Wall -Wportability -Wno-override std-options foreign dist-bzip2 no-define tar-ustar])
+ 
+ dnl we told automake to not define these, since we want to include
+ dnl the date in the version
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clamav.git/commitdiff/5dcc5881ab89fea7e660fa98b8247410fbeed628



More information about the pld-cvs-commit mailing list