havp-vl.spec 4.1 KB

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