OPTION(NO_SHARED "Build internal libs static [default: OFF]" OFF)
OPTION(FORCE_GMIME24 "Link with gmime2.4 [default: OFF]" OFF)
OPTION(INSTALL_EXAMPLES "Install examples [default: OFF]" OFF)
+OPTION(INSTALL_WEBUI "Install web interface [default: ON]" ON)
# Build optimized code for following CPU (default i386)
#SET(CPU_TUNE "i686")
# Manual pages
INSTALL(FILES "doc/rspamd.8" DESTINATION ${MANDIR}/man8)
INSTALL(FILES "doc/rspamc.1" DESTINATION ${MANDIR}/man1)
+
+# Install webui
+IF(INSTALL_WEBUI MATCHES "ON")
+ INSTALL(DIRECTORY "interface/" DESTINATION ${WWWDIR} PATTERN ".git" EXCLUDE)
+ENDIF(INSTALL_WEBUI MATCHES "ON")
\ No newline at end of file
%define rspamd_logdir %{_localstatedir}/log/rspamd
%define rspamd_confdir %{_sysconfdir}/rspamd
%define rspamd_pluginsdir %{_datadir}/rspamd
+%define rspamd_wwwdir %{_datadir}/rspamd/www
%if 0%{?suse_version}
%define __cmake cmake
%endif
Name: rspamd
-Version: 0.6.7
+Version: 0.7.0
Release: 1
Summary: Rapid spam filtering system
Group: System Environment/Daemons
Requires(postun): initscripts
%endif
-Source0: https://rspamd.com/downloads/%{name}-%{version}.tar.gz
+Source0: https://rspamd.com/downloads/%{name}-%{version}.tar.xz
%if 0%{?suse_version}
%if 0%{?suse_version} >= 1300
Source1: %{name}.service
%dir %{rspamd_confdir}
%dir %{rspamd_pluginsdir}/lua
%dir %{rspamd_pluginsdir}
+%dir %{rspamd_wwwdir}
%config(noreplace) %{rspamd_confdir}/2tld.inc
%config(noreplace) %{rspamd_confdir}/surbl-whitelist.inc
%{rspamd_pluginsdir}/lua/forged_recipients.lua
%{rspamd_pluginsdir}/lua/trie.lua
%{rspamd_pluginsdir}/lua/emails.lua
%{rspamd_pluginsdir}/lua/ip_score.lua
+%{rspamd_pluginsdir}/lua/settings.lua
%{rspamd_confdir}/lua/regexp/drugs.lua
%{rspamd_confdir}/lua/regexp/fraud.lua
%{rspamd_confdir}/lua/regexp/headers.lua
%{rspamd_confdir}/lua/rspamd.lua
%{rspamd_confdir}/lua/hfilter.lua
%{rspamd_confdir}/lua/rspamd.classifiers.lua
+%{rspamd_wwwdir}/*
%changelog
+* Mon Sep 1 2014 Vsevolod Stakhov <vsevolod-at-highsecure.ru> 0.7.0-1
+- Update to 0.7.0
+
* Fri Jan 10 2014 Vsevolod Stakhov <vsevolod-at-highsecure.ru> 0.6.7-1
- Update to 0.6.7.