forked from pool/hiawatha
Marcus Rueckert
4d48d07090
OBS-URL: https://build.opensuse.org/package/show/server:http/hiawatha?expand=0&rev=28
90 lines
2.7 KiB
RPMSpec
90 lines
2.7 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: hiawatha
|
|
Version: 6.11
|
|
Release: 0
|
|
#
|
|
Group: Productivity/Networking/Web/Servers
|
|
License: GPL
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: openssl-devel libxslt-devel
|
|
PreReq: %insserv_prereq %fillup_prereq pwdutils
|
|
%define pkg_name hiawatha
|
|
%define pkg_home /var/lib/hiawatha
|
|
#
|
|
Url: http://www.hiawatha-webserver.org/homepage
|
|
Source: http://hiawatha.leisink.org/files/hiawatha-%{version}.tar.gz
|
|
Source1: hiawatha.permissions
|
|
Patch: hiawatha-6.7_missing_mode.patch
|
|
#
|
|
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>
|
|
|
|
|
|
%prep
|
|
%setup
|
|
%patch
|
|
|
|
%build
|
|
export webrootdir="/srv/www/htdocs/hiawatha"
|
|
%configure --enable-command --enable-plugin --enable-xslt
|
|
%{__make}
|
|
|
|
%install
|
|
%makeinstall
|
|
%{__install} -D -m 0644 %{S:1} %{buildroot}/etc/permissions.d/%{name}
|
|
# 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 ||:
|
|
|
|
%post
|
|
%run_permissions
|
|
|
|
%verifyscript
|
|
%verify_permissions -e %{_sbindir}/cgi-wrapper
|
|
|
|
%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
|
|
%config(noreplace) /etc/permissions.d/%{name}
|
|
%verify(not mode) %attr(4750,root,%{pkg_name}) %{_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
|
|
%{_mandir}/man1/newroot.1.gz
|
|
/srv/www/htdocs/hiawatha/
|
|
%doc doc/*.txt ChangeLog COPYING
|
|
#%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%changelog
|