]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - clamav/clamav.nm
clamav: Disable llvm support
[people/pmueller/ipfire-3.x.git] / clamav / clamav.nm
index ae809ebae2da14ca1cab39ec42c135ca09817104..9abe6c40ed5a81881b62ce1e9e087a4e1f337d39 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = clamav
-version    = 0.97
-release    = 3
+version    = 0.101.2
+release    = 2
 
 groups     = System Environment/Daemons
 url        = http://www.clamav.net
@@ -24,29 +24,32 @@ description
        languages for detecting threats.
 end
 
-source_dl  = http://downloads.sourceforge.net/clamav/
-
-CFLAGS    += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
+source_dl  = http://www.clamav.net/downloads/production/
 
 build
        requires
                bzip2-devel
                curl-devel
                gmp-devel
+               json-c-devel
+               libxml2-devel
                ncurses-devel
+               openssl-devel
+               pcre2-devel
                shadow-utils
+               systemd-devel
                zlib-devel
        end
 
+       LDFLAGS += -Wl,--as-needed
+
        configure_options += \
-               --sysconfdir=/etc \
-               --disable-static \
-               --disable-rpath \
-               --disable-silent-rules \
-               --with-dbdir=/var/lib/clamav \
+               --with-dbdir=%{localstatedir}/lib/clamav \
                --enable-clamdtop \
                --with-user=clamupdate \
                --with-group=clamupdate \
+               --disable-rpath \
+               --disable-llvm \
                have_cv_ipv6=yes
 
        # User and group have to exist to compile the source code,
@@ -64,10 +67,17 @@ end
 
 packages
        package %{name}
+               requires
+                       %{name}-libs = %{thisver}
+               end
        end
 
        package %{name}-libs
                template LIBS
+
+               requires
+                       %{name}-databases = %{thisver}
+               end
        end
 
        package %{name}-devel
@@ -77,4 +87,15 @@ packages
        package %{name}-debuginfo
                template DEBUGINFO
        end
+
+       package %{name}-databases
+               summary = Clamav Virus Databases.
+               description
+                       Shipped virus databases needed for virus scanning.
+               end
+
+               files
+                       %{localstatedir}/lib/%{name}
+               end
+       end
 end