2013-03-19 18:42:20 +01:00
|
|
|
#
|
|
|
|
# spec file for package hiawatha
|
|
|
|
#
|
2015-02-10 23:39:54 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-01-11 23:46:32 +01:00
|
|
|
# Copyright (c) 2013-2015 Mariusz Fik <fisiu@opensuse.org>.
|
2013-03-19 18:42:20 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-11-21 22:55:52 +01:00
|
|
|
|
2013-03-19 18:42:20 +01:00
|
|
|
%define webroot /srv/www
|
|
|
|
|
|
|
|
Name: hiawatha
|
2015-06-20 01:04:46 +02:00
|
|
|
Version: 9.13
|
2013-03-19 18:42:20 +01:00
|
|
|
Release: 0
|
2013-06-03 13:36:07 +02:00
|
|
|
Summary: A secure and advanced webserver
|
2013-11-21 22:55:52 +01:00
|
|
|
License: GPL-2.0
|
2013-03-19 18:42:20 +01:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
2013-11-21 22:55:52 +01:00
|
|
|
Url: http://www.hiawatha-webserver.org
|
2013-08-04 22:52:24 +02:00
|
|
|
Source0: http://www.hiawatha-webserver.org/files/%{name}-%{version}.tar.gz
|
2013-03-19 18:42:20 +01:00
|
|
|
Source1: %{name}.logrotate
|
|
|
|
Source2: %{name}.service
|
2014-02-17 18:24:37 +01:00
|
|
|
Source100: %{name}.firewall
|
|
|
|
Source101: %{name}-ssl.firewall
|
2013-03-19 18:42:20 +01:00
|
|
|
BuildRequires: cmake >= 2.8.4
|
2013-11-21 22:55:52 +01:00
|
|
|
BuildRequires: libxslt-devel
|
2015-04-06 12:26:33 +02:00
|
|
|
BuildRequires: mbedtls-devel >= 1.3.10
|
2013-03-19 18:42:20 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: systemd
|
|
|
|
Requires: logrotate
|
2015-02-10 23:39:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-19 18:42:20 +01:00
|
|
|
%{?systemd_requires}
|
2010-02-22 15:16:27 +01:00
|
|
|
|
2007-02-19 05:31:25 +01:00
|
|
|
%description
|
2013-06-03 13:36:07 +02:00
|
|
|
Hiawatha is a webserver for Unix and has been build with security in mind.
|
2007-02-19 05:31:25 +01:00
|
|
|
|
2013-06-03 13:36:07 +02:00
|
|
|
This resulted in a highly secure webserver, in both code and features.
|
|
|
|
|
|
|
|
This webserver runs on Linux, BSD, MacOS X and Windows. Although it can run any
|
|
|
|
kind of CGI / FastCGI application, it has been optimized for usage with PHP.
|
|
|
|
Most well known PHP frameworks and CMS applications have been tested with
|
|
|
|
Hiawatha and ran without a problem. Hiawatha supports many web and HTTP features
|
|
|
|
such as CGI/FastCGI, HTTP authentication, virtual host support, request
|
|
|
|
pipelining, keep alive connections, URL rewriting and many more.
|
2010-02-22 15:16:27 +01:00
|
|
|
|
2013-03-19 18:42:20 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-04-06 12:26:33 +02:00
|
|
|
# Remove bundled source for mbedtls, we use system version
|
|
|
|
rm -rv mbedtls
|
2007-02-19 05:31:25 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-11 23:46:32 +01:00
|
|
|
%cmake \
|
2013-03-19 18:42:20 +01:00
|
|
|
-DCONFIG_DIR="%{_sysconfdir}/hiawatha" \
|
|
|
|
-DLOG_DIR="%{_localstatedir}/log/hiawatha" \
|
|
|
|
-DPID_DIR="%{_localstatedir}/run" \
|
|
|
|
-DWORK_DIR="%{_localstatedir}/lib/hiawatha" \
|
|
|
|
-DWEBROOT_DIR="%{webroot}/%{name}/htdocs" \
|
|
|
|
-DENABLE_CACHE=On \
|
|
|
|
-DENABLE_IPV6=On \
|
|
|
|
-DENABLE_MONITOR=On \
|
|
|
|
-DENABLE_RPROXY=On \
|
2015-06-20 01:04:46 +02:00
|
|
|
-DENABLE_TLS=On \
|
2013-03-19 18:42:20 +01:00
|
|
|
-DENABLE_TOMAHAWK=On \
|
|
|
|
-DENABLE_TOOLKIT=On \
|
|
|
|
-DENABLE_XSLT=On \
|
2015-04-06 12:26:33 +02:00
|
|
|
-DUSE_SYSTEM_MBEDTLS=On
|
2013-03-19 18:42:20 +01:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2010-02-22 15:16:27 +01:00
|
|
|
|
2007-02-19 05:31:25 +01:00
|
|
|
%install
|
2015-01-11 23:46:32 +01:00
|
|
|
%cmake_install
|
2013-03-19 18:42:20 +01:00
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
2015-06-20 14:19:13 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2007-02-19 05:31:25 +01:00
|
|
|
|
2013-03-21 14:14:27 +01:00
|
|
|
# run as wwwrun user
|
|
|
|
sed "s/#ServerId = www-data/ServerId = wwwrun/" -i %{buildroot}%{_sysconfdir}/hiawatha/hiawatha.conf
|
|
|
|
|
2014-02-17 18:24:37 +01:00
|
|
|
# susefirewall config files
|
2015-02-10 23:39:54 +01:00
|
|
|
install -D -m 0644 %{SOURCE100} \
|
2014-02-17 18:24:37 +01:00
|
|
|
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
2015-02-10 23:39:54 +01:00
|
|
|
install -D -m 0644 %{SOURCE101} \
|
2014-02-17 18:24:37 +01:00
|
|
|
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
|
|
|
|
|
2007-02-19 05:31:25 +01:00
|
|
|
%pre
|
2013-03-19 18:42:20 +01:00
|
|
|
%service_add_pre %{name}.service
|
2007-02-19 05:31:25 +01:00
|
|
|
|
2009-03-09 16:58:35 +01:00
|
|
|
%post
|
2013-03-19 18:42:20 +01:00
|
|
|
%service_add_post %{name}.service
|
2009-03-09 16:58:35 +01:00
|
|
|
|
2010-02-22 15:16:27 +01:00
|
|
|
%preun
|
2013-03-19 18:42:20 +01:00
|
|
|
%service_del_preun %{name}.service
|
2010-02-22 15:16:27 +01:00
|
|
|
|
2011-09-06 18:54:15 +02:00
|
|
|
%postun
|
2013-03-19 18:42:20 +01:00
|
|
|
%service_del_postun %{name}.service
|
2011-09-06 18:54:15 +02:00
|
|
|
|
2007-02-19 05:31:25 +01:00
|
|
|
%files
|
2010-02-22 15:16:27 +01:00
|
|
|
%defattr(-,root,root)
|
2013-06-03 13:36:07 +02:00
|
|
|
%doc ChangeLog LICENSE README.md
|
2010-02-22 15:16:27 +01:00
|
|
|
%{_bindir}/ssi-cgi
|
|
|
|
%{_sbindir}/%{name}
|
2015-06-20 14:19:13 +02:00
|
|
|
%{_sbindir}/rc%{name}
|
2007-02-19 05:31:25 +01:00
|
|
|
%{_sbindir}/wigwam
|
2013-07-18 16:46:47 +02:00
|
|
|
%attr(0755,root,root) %verify(not mode) %{_sbindir}/cgi-wrapper
|
2013-03-19 18:42:20 +01:00
|
|
|
%{_unitdir}/%{name}.service
|
2010-02-22 15:16:27 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/cgi-wrapper.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/mimetype.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/index.xslt
|
2014-03-25 01:35:59 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/error.xslt
|
2010-02-22 15:16:27 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2014-02-17 18:24:37 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
|
2010-02-22 15:16:27 +01:00
|
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
%dir %{webroot}/%{name}
|
|
|
|
%dir %{webroot}/%{name}/htdocs
|
|
|
|
%{webroot}/%{name}/htdocs/index.html
|
2013-03-19 18:42:20 +01:00
|
|
|
%dir %attr(-,wwwrun,www) %{_localstatedir}/lib/%{name}/
|
2015-06-20 14:19:13 +02:00
|
|
|
%dir %attr(750,wwwrun,www) %{_localstatedir}/log/%{name}/
|
2007-05-12 22:21:51 +02:00
|
|
|
|
|
|
|
%changelog
|