Subversion Repositories ALCASAR

Rev

Rev 1809 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1809 Rev 1813
1
Summary:	HTTP anti-virus proxy filter
1
Summary:	HTTP anti-virus proxy filter
2
Name:		havp
2
Name:		havp
3
Version:	0.92a
3
Version:	0.92a
4
Release:	1.1%{?dist}
4
Release:	1%{?dist}
5
License:	GPLv2
5
License:	GPLv2
6
Group:		Security
6
Group:		Security
7
URL:		https://sourceforge.net/projects/havp/
7
URL:		https://sourceforge.net/projects/havp/
8
Source:		%{name}-%{version}.tar.gz
8
Source:		%{name}-%{version}.tar.gz
-
 
9
Patch1:		havp-init.diff
9
Packager:	Richard REY (Rexy)
10
Packager:	Richard REY (Rexy)
10
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
11
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
11
BuildRequires:	clamav-devel
12
BuildRequires:	clamav-devel
12
 
13
 
13
%description
14
%description
14
HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter.
15
HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter.
15
It does not cache or filter content. At the moment the complete
16
It does not cache or filter content. At the moment the complete
16
traffic is scanned. The reason for this is the chance of malicious
17
traffic is scanned. The reason for this is the chance of malicious
17
code in nearly every filetype e.g. HTML (JavaScript) or Jpeg.
18
code in nearly every filetype e.g. HTML (JavaScript) or Jpeg.
18
 
19
 
19
I aim to stop especially dialer or browser exploits. But writing
20
I aim to stop especially dialer or browser exploits. But writing
20
a http Anti Virus Proxy is a real dilemma! Huge downloads are
21
a http Anti Virus Proxy is a real dilemma! Huge downloads are
21
a problem for virus scanning proxies. A Client should not receive
22
a problem for virus scanning proxies. A Client should not receive
22
data which is unchecked by the virus scanner, but big downloads
23
data which is unchecked by the virus scanner, but big downloads
23
should not timeout.
24
should not timeout.
24
 
25
 
25
%prep
26
%prep
26
%setup
27
%setup
27
 
28
%patch1 -p0
28
%build
29
%build
29
%configure
30
%configure
30
%make
31
%make
31
 
32
 
32
%install
33
%install
33
rm -rf %{buildroot}
34
rm -rf %{buildroot}
34
install -d %{buildroot}%{_initrddir}
35
install -d %{buildroot}%{_initrddir}
35
cp etc/init.d/havp %{buildroot}%{_initrddir}/havp
36
cp /etc/init.d/havp %{buildroot}%{_initrddir}/havp
36
install -d %{buildroot}/lib/systemd/system/
37
install -d %{buildroot}/lib/systemd/system/
37
cp lib/systemd/system/havp.service %{buildroot}/lib/systemd/system/
38
cp /lib/systemd/system/havp.service %{buildroot}/lib/systemd/system/
38
install -d %{buildroot}%{_localstatedir}/run/havp/
39
install -d %{buildroot}%{_localstatedir}/run/havp/
39
install -d %{buildroot}%{_localstatedir}/log/havp/
40
install -d %{buildroot}%{_localstatedir}/log/havp/
40
%makeinstall
41
%makeinstall
41
 
42
 
42
%pre
43
%pre
43
if ! /usr/bin/id havp &>/dev/null; then
44
if ! /usr/bin/id havp &>/dev/null; then
44
	/usr/sbin/useradd -r -d %{_localstatedir}/log/havp -s /bin/sh -c "havp" havp || \
45
	/usr/sbin/useradd -r -d %{_localstatedir}/log/havp -s /bin/sh -c "havp" havp || \
45
		%logmsg "Unexpected error adding user \"havp\". Aborting installation."
46
		%logmsg "Unexpected error adding user \"havp\". Aborting installation."
46
fi
47
fi
47
 
48
 
48
%post
49
%post
49
/usr/bin/systemctl -q enable havp.service
50
/usr/bin/systemctl -q enable havp.service
50
 
51
 
51
%preun
52
%preun
52
if [ $1 -eq 0 ]; then
53
if [ $1 -eq 0 ]; then
53
	/usr/bin/systemctl havp stop
54
	/usr/bin/systemctl stop havp.service
54
	/usr/bin/systemctl -q disable havp.service
55
	/usr/bin/systemctl -q disable havp.service
55
fi
56
fi
56
 
57
 
57
%postun
58
%postun
58
if [ $1 -eq 0 ]; then
59
if [ $1 -eq 0 ]; then
59
	/usr/sbin/userdel havp || %logmsg "User \"havp\" could not be deleted."
60
	/usr/sbin/userdel havp || %logmsg "User \"havp\" could not be deleted."
60
	rm -f /lib/systemd/system/havp.service
61
	rm -f /lib/systemd/system/havp.service
61
fi
62
fi
62
 
63
 
63
%files
64
%files
64
%defattr(-, root, root, 0755)
65
%defattr(-, root, root, 0755)
65
%doc ChangeLog COPYING INSTALL update-conf
66
%doc ChangeLog COPYING INSTALL update-conf
66
%config %{_sysconfdir}/havp/
67
%config %{_sysconfdir}/havp/
67
%config %{_initrddir}/havp
68
%config %{_initrddir}/havp
68
%{_sbindir}/havp
69
%{_sbindir}/havp
69
/lib/systemd/system/havp.service
70
/lib/systemd/system/havp.service
70
 
71
 
71
%defattr(-, havp, havp, 0755)
72
%defattr(-, havp, havp, 0755)
72
%{_localstatedir}/log/havp/
73
%{_localstatedir}/log/havp/
73
%{_localstatedir}/run/havp/
74
%{_localstatedir}/run/havp/
74
 
75
 
75
%changelog
76
%changelog
76
* Sun Apr 3 2016 Rexy for ALCASAR project
77
* Sun Apr 3 2016 Rexy for ALCASAR project
77
- Rebuild 0.92-1.1 for Mga5
78
- Rebuild 0.92a.1 for Mga5
78
 
79
 
79
* Thu Jul 07 2014 jb <jeanbaptiste.couprit@gmail.com> - 0.92-1.1
80
* Thu Jul 07 2014 jb <jeanbaptiste.couprit@gmail.com> - 0.92-1.1
80
- Created .spec file to build rpms for Mageia4 (x86_64 & i586).
81
- Created .spec file to build rpms for Mageia4 (x86_64 & i586).
81
- Created two rpms : havp-0.92a-1-1.mga4.x86_64.rpm & havp-0.92a-1-1.mga4.i586.rpm with Libclamav patch (OpenSSL)
82
- Created two rpms : havp-0.92a-1-1.mga4.x86_64.rpm & havp-0.92a-1-1.mga4.i586.rpm with Libclamav patch (OpenSSL)
82
 
83
 
83
* Tue Apr 30 2013 Crox <ptitois@gmail.com> - 0.92-1.1
84
* Tue Apr 30 2013 Crox <ptitois@gmail.com> - 0.92-1.1
84
- Created .spec file to build rpms for Mageia2 (x86_64 & i586).
85
- Created .spec file to build rpms for Mageia2 (x86_64 & i586).
85
 
86
 
86
* Sun Nov 21 2010 Rexy <richard@rexy.fr> - 0.92-1
87
* Sun Nov 21 2010 Rexy <richard@rexy.fr> - 0.92-1
87
- Updated to release 0.92a.
88
- Updated to release 0.92a.
88
 
89
 
89
* Sun May  9 2010 Rexy <richard@irexy.fr> - 0.91-1
90
* Sun May  9 2010 Rexy <richard@irexy.fr> - 0.91-1
90
- Updated to release 0.91.
91
- Updated to release 0.91.
91
 
92
 
92
* Tue Apr  7 2009 Dries Verachtert <dries@ulyssis.org> - 0.90-1
93
* Tue Apr  7 2009 Dries Verachtert <dries@ulyssis.org> - 0.90-1
93
- Updated to release 0.90.
94
- Updated to release 0.90.
94
 
95
 
95
* Wed Aug 13 2008 Dries Verachtert <dries@ulyssis.org> - 0.89-1
96
* Wed Aug 13 2008 Dries Verachtert <dries@ulyssis.org> - 0.89-1
96
- Updated to release 0.89.
97
- Updated to release 0.89.
97
 
98
 
98
* Sun Apr 20 2008 Dries Verachtert <dries@ulyssis.org> - 0.88-1
99
* Sun Apr 20 2008 Dries Verachtert <dries@ulyssis.org> - 0.88-1
99
- Updated to release 0.88.
100
- Updated to release 0.88.
100
 
101
 
101
* Mon Jul 23 2007 Dries Verachtert <dries@ulyssis.org> - 0.86-1
102
* Mon Jul 23 2007 Dries Verachtert <dries@ulyssis.org> - 0.86-1
102
- Updated to release 0.86.
103
- Updated to release 0.86.
103
 
104
 
104
* Tue Aug 22 2006 Dag Wieers <dag@wieers.com> - 0.7.9-1
105
* Tue Aug 22 2006 Dag Wieers <dag@wieers.com> - 0.7.9-1
105
- Cosmetic changes.
106
- Cosmetic changes.
106
 
107
 
107
* Wed May 31 2006 Bernard 'Tux' Lheureux <tux at portalinux dot org> 0.7.9-2
108
* Wed May 31 2006 Bernard 'Tux' Lheureux <tux at portalinux dot org> 0.7.9-2
108
- Corrected the specfile to make it installable on CentOS 4.x
109
- Corrected the specfile to make it installable on CentOS 4.x
109
- Created and applied some patches to make it chkconfig compatible
110
- Created and applied some patches to make it chkconfig compatible
110
- Created and applied a patch to make config reflect the correct location of the files
111
- Created and applied a patch to make config reflect the correct location of the files
111
 
112
 
112
* Tue May 30 2006 Jim Perrin <jperrin at gmail dot com> 0.7.9-1
113
* Tue May 30 2006 Jim Perrin <jperrin at gmail dot com> 0.7.9-1
113
- Initial build for CentOS,
114
- Initial build for CentOS,
114
- Specfile generation... still some work to do...
115
- Specfile generation... still some work to do...
115
 
116
 
116
 
117