Subversion Repositories ALCASAR

Rev

Rev 1809 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1809 Rev 1813
Line 1... Line 1...
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
Line 22... Line 23...
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
Line 48... Line 49...
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
Line 72... Line 73...
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