hermes.spec.in 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Summary: An anti-spam SMTP proxy
  2. Name: @PACKAGE@
  3. Version: @VERSION@
  4. Release: 0
  5. License: GPL
  6. Group: System Environment/Daemons
  7. Packager: Veit Wahlich <cru@zodia.de>
  8. URL: http://www.hermes-project.com/
  9. Source0: http://www.hermes-project.com/files/%{name}-%{version}.tar.bz2
  10. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. %description
  12. hermes is a generic, lightweight, portable and fast anti-spam smtp proxy.
  13. Supports greylisting, dns blacklisting/whitelisting, protocol throttling, banner delaying, spf and some
  14. other tricks to reject most spam before it even enters your system.
  15. %prep
  16. %setup -q
  17. %build
  18. %configure --docdir=%{_datadir}/doc/%{name}-%{version}
  19. %__make %{?_smp_mflags}
  20. %install
  21. %__rm -rf %{buildroot}
  22. %__make DESTDIR=%{buildroot} install
  23. %__mkdir_p %{buildroot}%{_sysconfdir}/rc.d/init.d
  24. %__mkdir_p %{buildroot}%{_sysconfdir}/hermes
  25. %__mkdir_p %{buildroot}%{_localstatedir}/hermes
  26. %__install -m 0755 dists/fc_init %{buildroot}%{_sysconfdir}/rc.d/init.d/hermes
  27. %__install -m 0600 dists/hermesrc.example %{buildroot}%{_sysconfdir}/hermes/hermesrc
  28. %clean
  29. %__rm -rf %{buildroot}
  30. %post
  31. /sbin/chkconfig --add hermes
  32. %preun
  33. if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
  34. %{_sysconfdir}/rc.d/init.d/hermes stop >/dev/null 2>&1
  35. /sbin/chkconfig --del hermes
  36. fi
  37. exit 0
  38. %files
  39. %defattr(-, root, root, 0755)
  40. %doc ChangeLog TODO AUTHORS dists/hermesrc.example docs/hermes-options.html docs/installing-hermes.txt docs/gpl.txt
  41. %{_bindir}/hermes
  42. %{_sysconfdir}/rc.d/init.d/hermes
  43. %config %{_sysconfdir}/hermes/hermesrc
  44. %dir %attr(0700,nobody,nobody) %{_localstatedir}/hermes
  45. %changelog
  46. * Thu Jun 14 2007 Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com> 1.4
  47. - removed patches, they are now on upstream
  48. * Fri May 25 2007 Veit Wahlich <cru@zodia.de> 1.3-2
  49. - added patch fix_whether (documentation fixes)
  50. - added patch add_rejectnoresolve (reject on no DNS reverse resolution feature)
  51. - changed RPM group to system daemon standard
  52. * Sat May 19 2007 Veit Wahlich <cru@zodia.de> 1.3-1
  53. - Made /etc/hermes/hermesrc readonly as it may contain passwords
  54. - Fixed ownership and permissions of /var/hermes to match configuration default
  55. - Silenced setup macro output as required by some distributions
  56. - Fixed docdir to a LSB compliant location, will be replaced by rpmbuild
  57. - Packaged extra documentation
  58. - Removed hermes-options.html.in from docs
  59. - Use directory macros for files section
  60. - Further specfile cleanups and macro usage
  61. * Tue May 15 2007 Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
  62. - Fixed rpm to create /var/hermes
  63. * Fri Apr 11 2007 Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
  64. - Initial release