Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
334 richard 1
# $Id$
2
# Authority: dag
3
 
4
# Tag: rft
5
 
6
Summary: HTTP anti-virus proxy filter
7
Name: havp
8
Version: 0.92a
9
Release: 1%{?dist}
10
License: GPL
11
Group: System Environment/Daemons
12
URL: http://www.server-side.de/
13
 
14
Source: http://www.server-side.de/download/havp-%{version}.tar.gz
15
Patch0: havp-init.diff
16
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
 
18
#BuildRequires: httpd-devel, bzip2-devel, gmp-devel, curl-devel, clamav-devel, openssl-devel
19
BuildRequires: bzip2-devel, gmp-devel, curl-devel, clamav-devel, openssl-devel
20
 
21
%description
22
HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter.
23
It does not cache or filter content. At the moment the complete
24
traffic is scanned. The reason for this is the chance of malicious
25
code in nearly every filetype e.g. HTML (JavaScript) or Jpeg.
26
 
27
I aim to stop especially dialer or browser exploits. But writing
28
a http Anti Virus Proxy is a real dilemma! Huge downloads are
29
a problem for virus scanning proxies. A Client should not receive
30
data which is unchecked by the virus scanner, but big downloads
31
should not timeout.
32
 
33
%prep
34
%setup
35
%patch0 -p0 -b .init
36
 
37
%{__perl} -pi.orig \
38
	-e 's|^# (TEMPLATEPATH) .+$|$1 /etc/havp/templates/en|;' \
39
	-e 's|^# (WHITELIST) .+$|$1 /etc/havp/whitelist|;' \
40
	-e 's|^# (BLACKLIST) .+$|$1 /etc/havp/blacklist|;' \
41
	etc/havp/havp.config
42
 
43
%build
44
%configure \
45
	--enable-ssl-tunnel
46
 
47
%{__make} %{?_smp_mflags}
48
 
49
%install
50
%{__rm} -rf %{buildroot}
51
%{__install} -Dp -m0755 havp/havp %{buildroot}%{_sbindir}/havp
52
%{__install} -Dp -m0755 etc/init.d/havp %{buildroot}%{_initrddir}/havp
53
 
54
%{__install} -d -m0755 %{buildroot}%{_sysconfdir}/havp/
55
%{__cp} -r etc/havp/*  %{buildroot}%{_sysconfdir}/havp/
56
 
57
%{__install} -d -m0755 %{buildroot}%{_localstatedir}/log/havp/
58
%{__install} -d -m0755 %{buildroot}%{_localstatedir}/run/havp/
59
 
60
%clean
61
%{__rm} -rf %{buildroot}
62
 
63
%pre
64
if ! /usr/bin/id havp &>/dev/null; then
65
	/usr/sbin/useradd -r -d %{_localstatedir}/log/havp -s /bin/sh -c "havp" havp || \
66
		%logmsg "Unexpected error adding user \"havp\". Aborting installation."
67
fi
68
 
69
%post
70
/sbin/chkconfig --add havp
71
 
72
%preun
73
if [ $1 -eq 0 ]; then
74
	/sbin/service havp stop &>/dev/null || :
75
	/sbin/chkconfig --del havp
76
fi
77
 
78
%postun
79
if [ $1 -eq 0 ]; then
80
	/usr/sbin/userdel havp || %logmsg "User \"havp\" could not be deleted."
81
fi
82
 
83
%files
84
%defattr(-, root, root, 0755)
85
%doc ChangeLog COPYING INSTALL update-conf 
86
%config(noreplace) %{_sysconfdir}/havp/
87
%config %{_initrddir}/havp
88
%{_sbindir}/havp
89
 
90
%defattr(-, havp, havp, 0755)
91
%{_localstatedir}/log/havp/
92
%{_localstatedir}/run/havp/
93
 
94
%changelog
95
* Sun Nov 21 2010 Rexy <richard@rexy.fr> - 0.92-1
96
- Updated to release 0.92a.
97
 
98
* Sun May  9 2010 Rexy <richard@irexy.fr> - 0.91-1
99
- Updated to release 0.91.
100
 
101
* Tue Apr  7 2009 Dries Verachtert <dries@ulyssis.org> - 0.90-1
102
- Updated to release 0.90.
103
 
104
* Wed Aug 13 2008 Dries Verachtert <dries@ulyssis.org> - 0.89-1
105
- Updated to release 0.89.
106
 
107
* Sun Apr 20 2008 Dries Verachtert <dries@ulyssis.org> - 0.88-1
108
- Updated to release 0.88.
109
 
110
* Mon Jul 23 2007 Dries Verachtert <dries@ulyssis.org> - 0.86-1
111
- Updated to release 0.86.
112
 
113
* Tue Aug 22 2006 Dag Wieers <dag@wieers.com> - 0.7.9-1
114
- Cosmetic changes.
115
 
116
* Wed May 31 2006 Bernard 'Tux' Lheureux <tux at portalinux dot org> 0.7.9-2
117
- Corrected the specfile to make it installable on CentOS 4.x
118
- Created and applied some patches to make it chkconfig compatible
119
- Created and applied a patch to make config reflect the correct location of the files
120
 
121
* Tue May 30 2006 Jim Perrin <jperrin at gmail dot com> 0.7.9-1
122
- Initial build for CentOS, 
123
- Specfile generation... still some work to do...