Browse Source

havp-0.92a-5

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11979 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
23ad6fcaf7
1 changed files with 17 additions and 2 deletions
  1. 17 2
      h/havp/havp-vl.spec

+ 17 - 2
h/havp/havp-vl.spec

@@ -1,9 +1,11 @@
+%bcond_with libclamav
+
 %define clamav_version 0.96
 
 Summary: HAVP - HTTP Anti Virus Proxy
 Name: havp
 Version: 0.92a
-Release: 4%{_dist_release}
+Release: 5%{_dist_release}
 License: GPL
 Group: Applications/System
 URL: http://www.server-side.de/
@@ -37,7 +39,17 @@ is unchecked by the virus scanner, but big downloads should not timeout.
 #%patch1 -p1
 
 %build
-%configure --with-scanner=libclamav --enable-ssl-tunnel
+export CFLAGS="%{optflags} -std=c++0x"
+export CXXFLAGS="%{optflags} -std=c++0x"
+
+%configure \
+%if %{with libclamav}
+  --with-scanner=libclamav \
+%else
+  --disable-clamav \
+%endif
+  --enable-ssl-tunnel
+
 make %{?_smp_mflags}
 
 %install
@@ -95,6 +107,9 @@ fi
 %attr(750,havp,havp) %dir /var/run/havp 
 
 %changelog
+* Sat Dec 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92a-5
+- disabled libclamav support.
+
 * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92a-4
 - rebuilt with new toolchain.