1
0
forked from pool/hiawatha
hiawatha/hiawatha.spec

77 lines
2.3 KiB
RPMSpec

# norootforbuild
Name: hiawatha
Version: 5.8
Release: 0
#
Group: Productivity/Networking/Web/Servers
License: GPL
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: openssl-devel
%define pkg_name hiawatha
%define pkg_home /var/lib/hiawatha
#
URL: http://hiawatha.leisink.org/index.php?page=hiawatha
Source: http://hiawatha.leisink.org/files/hiawatha-%{version}.tar.gz
#
Summary: A secure webserver for Unix
%description
Hiawatha is a secure webserver for Unix. It has been written with 'being
secure' as its main goal. Hiawatha has many security features that no other
webserver has. This and the fact that Hiawatha's source code is free of
security-bugs, makes Hiawatha the most secure webserver available.
Authors:
--------
Hugo Leisink <hugo@leisink.net>
%debug_package
%prep
%setup
%build
%configure --enable-command --enable-plugin
%{__make}
%install
%makeinstall
# TODO:
# needs patching
#%{__install} -D -m 0755 etc/logrotate.d/hiawatha %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
#
#%{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name}
#%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%clean
%{__rm} -rf %{buildroot}
%pre
/usr/sbin/groupadd -r %{pkg_name} &>/dev/null ||:
/usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{pkg_home} %{pkg_name} &>/dev/null ||:
%files
%defattr(-,root,root,-)
%dir %attr(750,root,%{pkg_name}) %{_sysconfdir}/hiawatha/
%config(noreplace) %attr(640,root,%{pkg_name}) %{_sysconfdir}/hiawatha/cgi-wrapper.conf
%config(noreplace) %attr(640,root,%{pkg_name}) %{_sysconfdir}/hiawatha/httpd.conf
%config(noreplace) %attr(640,root,%{pkg_name}) %{_sysconfdir}/hiawatha/mimetype.conf
%config(noreplace) %attr(640,root,%{pkg_name}) %{_sysconfdir}/hiawatha/php-fcgi.conf
%config(noreplace) %attr(640,root,%{pkg_name}) %{_sysconfdir}/hiawatha/throttle.conf
%{_sbindir}/cgi-wrapper
%{_sbindir}/hiawatha
%{_sbindir}/newroot
%{_sbindir}/php-fcgi
%{_sbindir}/wigwam
%{_mandir}/man1/cgi-wrapper.1.gz
%{_mandir}/man1/hiawatha.1.gz
%{_mandir}/man1/php-fcgi.1.gz
%{_mandir}/man1/wigwam.1.gz
/var/www/hiawatha/index.html
%doc doc/*.txt ChangeLog COPYING
#%{_sysconfdir}/logrotate.d/%{name}
%changelog