1 | %define clamav_version 0.96 |
---|
2 | |
---|
3 | Summary: HAVP - HTTP Anti Virus Proxy |
---|
4 | Name: havp |
---|
5 | Version: 0.92a |
---|
6 | Release: 1%{_dist_release} |
---|
7 | License: GPL |
---|
8 | Group: Applications/System |
---|
9 | URL: http://www.server-side.de/ |
---|
10 | Source0: http://www.server-side.de/download/havp-%{version}.tar.gz |
---|
11 | Patch0: havp.patch |
---|
12 | BuildRequires: libstdc++-devel, zlib-devel, bzip2-devel, gmp-devel |
---|
13 | BuildRequires: clamav-devel => %{clamav_version} |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root/ |
---|
15 | #Requires: libstdc++, zlib, bzip2, gmp |
---|
16 | Requires: clamav => %{clamav_version} |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | Packager: tomop |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter. |
---|
24 | It does not cache or filter content. At the moment the complete |
---|
25 | traffic is scanned. The reason for this is the chance of malicious |
---|
26 | code in nearly every filetype e.g. HTML (JavaScript) or Jpeg. I aim |
---|
27 | to stop especially dialer or browser exploits. But writing a http |
---|
28 | Anti Virus Proxy is a real dilemma! Huge downloads are a problem |
---|
29 | for virus scanning proxies. A Client should not receive data which |
---|
30 | is unchecked by the virus scanner, but big downloads should not timeout. |
---|
31 | |
---|
32 | %prep |
---|
33 | |
---|
34 | %setup -q |
---|
35 | %patch0 -p0 |
---|
36 | #%patch1 -p1 |
---|
37 | |
---|
38 | %build |
---|
39 | %configure --with-scanner=libclamav --enable-ssl-tunnel |
---|
40 | make %{?_smp_mflags} |
---|
41 | |
---|
42 | %install |
---|
43 | rm -rf %{buildroot} |
---|
44 | mkdir -p %{buildroot}%{_sbindir} |
---|
45 | mkdir -p %{buildroot}%{_sysconfdir}/havp/templates |
---|
46 | mkdir -p %{buildroot}%{_localstatedir}/log/havp |
---|
47 | mkdir -p %{buildroot}%{_localstatedir}/tmp/havp |
---|
48 | mkdir -p %{buildroot}%{_localstatedir}/run/havp |
---|
49 | mkdir -p %{buildroot}%{_initdir} |
---|
50 | |
---|
51 | install -m755 havp/havp %{buildroot}%{_sbindir} |
---|
52 | install -m755 etc/init.d/havp %{buildroot}%{_initdir} |
---|
53 | install -m644 etc/havp/havp.config %{buildroot}%{_sysconfdir}/havp/havp.config |
---|
54 | install -m644 etc/havp/whitelist %{buildroot}%{_sysconfdir}/havp/whitelist |
---|
55 | install -m644 etc/havp/blacklist %{buildroot}%{_sysconfdir}/havp/blacklist |
---|
56 | cp -r etc/havp/templates/* %{buildroot}%{_sysconfdir}/havp/templates |
---|
57 | chmod -R a+rX %{buildroot}/etc/havp/templates |
---|
58 | |
---|
59 | %clean |
---|
60 | rm -rf %{buildroot} |
---|
61 | |
---|
62 | %pre |
---|
63 | if ! grep -q '^havp:' /etc/group; then |
---|
64 | /usr/sbin/groupadd -r havp |
---|
65 | fi |
---|
66 | if ! grep -q '^havp:' /etc/passwd; then |
---|
67 | /usr/sbin/useradd -M -r -s /sbin/nologin -g havp havp || : |
---|
68 | fi |
---|
69 | |
---|
70 | %postun |
---|
71 | /sbin/ldconfig |
---|
72 | if [ $1 = 0 ]; then |
---|
73 | if [ `grep havp /etc/passwd | wc -l` = 1 ]; then |
---|
74 | /usr/sbin/userdel havp |
---|
75 | fi |
---|
76 | if [ `grep havp /etc/group | wc -l` = 1 ]; then |
---|
77 | /usr/sbin/groupdel havp |
---|
78 | fi |
---|
79 | fi |
---|
80 | |
---|
81 | %post -p /sbin/ldconfig |
---|
82 | |
---|
83 | %files |
---|
84 | %defattr(-,root,root,-) |
---|
85 | %doc INSTALL COPYING ChangeLog |
---|
86 | %{_initdir}/havp |
---|
87 | %{_sbindir}/havp |
---|
88 | %config(noreplace) %{_sysconfdir}/havp/havp.config |
---|
89 | %config(noreplace) %{_sysconfdir}/havp/whitelist |
---|
90 | %config(noreplace) %{_sysconfdir}/havp/blacklist |
---|
91 | %{_sysconfdir}/havp/templates/* |
---|
92 | %attr(750,havp,havp) %dir /var/log/havp |
---|
93 | %attr(750,havp,havp) %dir /var/tmp/havp |
---|
94 | %attr(750,havp,havp) %dir /var/run/havp |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Sun Dec 05 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92a-1 |
---|
98 | - new upstream release. |
---|
99 | |
---|
100 | * Sat Nov 06 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92-1 |
---|
101 | - new upstream release. |
---|
102 | |
---|
103 | * Thu Jun 11 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.90-1 |
---|
104 | - new upstream release. |
---|
105 | |
---|
106 | * Tue Mar 24 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.89-1 |
---|
107 | - new upstream release. |
---|
108 | - built with clamav-0.95. |
---|
109 | |
---|
110 | * Tue Apr 15 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.87-2 |
---|
111 | - rebuild with clamav-0.93. |
---|
112 | |
---|
113 | * Mon Apr 14 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.87-1 |
---|
114 | - rebuilt with VineSeed. |
---|
115 | |
---|
116 | * Sat Mar 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.87-0vl1 |
---|
117 | - new upstream release. |
---|
118 | |
---|
119 | * Sun Mar 11 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.85-0vl2 |
---|
120 | - built with clamav-0.90.1. |
---|
121 | |
---|
122 | * Mon Feb 26 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.85-0vl1 |
---|
123 | - new upstream release. |
---|
124 | |
---|
125 | * Thu Oct 19 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.82-0vl1 |
---|
126 | - new upstream release. |
---|
127 | |
---|
128 | * Thu Jul 20 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.81-0vl1 |
---|
129 | - initial build. |
---|