|
|
1df2a1c |
%global _hardened_build 1
|
|
|
1df2a1c |
|
|
|
2782717 |
Name: darkhttpd
|
|
|
7585f4c |
Version: 1.13
|
|
|
7585f4c |
Release: 1%{?dist}
|
|
|
7585f4c |
Summary: Secure, lightweight, fast, single-threaded HTTP/1.1 server
|
|
Fabian Affolter |
987565b |
|
|
|
2782717 |
License: BSD
|
|
|
7585f4c |
URL: https://github.com/emikulic/darkhttpd
|
|
|
7585f4c |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
2782717 |
Source1: %{name}.service
|
|
|
2782717 |
Source2: %{name}.sysconfig
|
|
Fabian Affolter |
987565b |
|
|
|
c9df726 |
BuildRequires: gcc
|
|
|
68427a7 |
BuildRequires: systemd
|
|
|
56d7ca3 |
Requires: /etc/mime.types
|
|
Christopher Meng |
d6f3f04 |
|
|
Christopher Meng |
1b63211 |
%description
|
|
|
56d7ca3 |
darkhttpd is a secure, lightweight, fast and single-threaded HTTP/1.1 server.
|
|
|
56d7ca3 |
|
|
Fabian Affolter |
987565b |
Features:
|
|
|
56d7ca3 |
* Simple to set up:
|
|
|
56d7ca3 |
* Single binary, no other files.
|
|
|
56d7ca3 |
* Standalone, doesn't need inetd or ucspi-tcp.
|
|
|
56d7ca3 |
* No messing around with config files.
|
|
|
56d7ca3 |
* Written in C - efficient and portable.
|
|
|
56d7ca3 |
* Small memory footprint.
|
|
|
56d7ca3 |
* Event loop, single threaded - no fork() or pthreads.
|
|
|
56d7ca3 |
* Generates directory listings.
|
|
|
56d7ca3 |
* Supports HTTP GET and HEAD requests.
|
|
|
56d7ca3 |
* Supports Range / partial content.
|
|
|
56d7ca3 |
* Supports If-Modified-Since.
|
|
|
56d7ca3 |
* Supports Keep-Alive connections.
|
|
|
56d7ca3 |
* Can serve 301 redirects based on Host header.
|
|
|
56d7ca3 |
* Uses sendfile().
|
|
|
56d7ca3 |
|
|
Fabian Affolter |
987565b |
Security:
|
|
|
56d7ca3 |
* Can log accesses, including Referer and User-Agent.
|
|
|
56d7ca3 |
* Can chroot.
|
|
|
56d7ca3 |
* Can drop privileges.
|
|
|
56d7ca3 |
* Impervious to /../ sniffing.
|
|
|
56d7ca3 |
* Times out idle connections.
|
|
|
56d7ca3 |
* Drops overly long requests.
|
|
|
56d7ca3 |
|
|
Fabian Affolter |
987565b |
Limitations:
|
|
|
56d7ca3 |
* This server only serves static content - *NO* CGI supported!
|
|
Christopher Meng |
1b63211 |
|
|
Christopher Meng |
1b63211 |
%prep
|
|
|
7585f4c |
%autosetup
|
|
Christopher Meng |
1b63211 |
|
|
Christopher Meng |
1b63211 |
%build
|
|
|
56d7ca3 |
%{__cc} %{optflags} darkhttpd.c -o %{name} %{?__global_ldflags}
|
|
Christopher Meng |
1b63211 |
|
|
Christopher Meng |
1b63211 |
%install
|
|
|
56d7ca3 |
install -pDm755 %{name} %{buildroot}%{_sbindir}/%{name}
|
|
|
1df2a1c |
install -pDm644 %{S:1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
1df2a1c |
install -pDm644 %{S:2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
Christopher Meng |
1b63211 |
|
|
|
56d7ca3 |
%post
|
|
Christopher Meng |
d6f3f04 |
%systemd_post %{S:1}
|
|
Christopher Meng |
d6f3f04 |
|
|
Christopher Meng |
d6f3f04 |
%preun
|
|
Christopher Meng |
d6f3f04 |
%systemd_preun %{S:1}
|
|
Christopher Meng |
d6f3f04 |
|
|
Christopher Meng |
d6f3f04 |
%postun
|
|
Christopher Meng |
d6f3f04 |
%systemd_postun_with_restart %{S:1}
|
|
Christopher Meng |
d6f3f04 |
|
|
Christopher Meng |
1b63211 |
%files
|
|
|
7585f4c |
%doc README.md
|
|
Christopher Meng |
7a79980 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
56d7ca3 |
%{_sbindir}/%{name}
|
|
Fabian Affolter |
987565b |
%config %{_unitdir}/%{name}.service
|
|
Christopher Meng |
1b63211 |
|
|
Christopher Meng |
1b63211 |
%changelog
|
|
|
7585f4c |
* Sun Feb 21 2021 Fabian Affolter <mail@fabian-affolter.ch> - 1.13-1
|
|
|
7585f4c |
- Update to latest upstream release 1.13 (#1931188)
|
|
|
7585f4c |
|
|
|
737907a |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-12
|
|
|
737907a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
737907a |
|
|
|
0ec32f0 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-11
|
|
|
0ec32f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
0ec32f0 |
|
|
|
df628b8 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-10
|
|
|
df628b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
df628b8 |
|
|
|
ecde5df |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-9
|
|
|
ecde5df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ecde5df |
|
|
|
a1cb4d9 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-8
|
|
|
a1cb4d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a1cb4d9 |
|
|
|
f118c62 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-7
|
|
|
f118c62 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f118c62 |
|
|
|
2678175 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-6
|
|
|
2678175 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2678175 |
|
|
|
560d94a |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-5
|
|
|
560d94a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
560d94a |
|
|
|
0c2e7c6 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-4
|
|
|
0c2e7c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0c2e7c6 |
|
|
|
68427a7 |
* Sat Jun 17 2017 Filipe Rosset <rosset.filipe@gmail.com> - 1.12-3
|
|
|
68427a7 |
- Rebuilt to fix FTBFS rhbz#1423324
|
|
|
68427a7 |
|
|
|
4ad205b |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
|
|
|
4ad205b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4ad205b |
|
|
Fabian Affolter |
987565b |
* Wed May 11 2016 Fabian Affolter <mail@fabian-affolter.ch> - 1.12-1
|
|
Fabian Affolter |
987565b |
- Update to latest upstream release 1.12
|
|
Fabian Affolter |
987565b |
|
|
|
693ad71 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-3
|
|
|
693ad71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
693ad71 |
|
|
|
0ad15d4 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
|
|
|
0ad15d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0ad15d4 |
|
|
|
56d7ca3 |
* Sat Jan 17 2015 Christopher Meng <rpm@cicku.me> - 1.11-1
|
|
|
56d7ca3 |
- Update to 1.11
|
|
|
56d7ca3 |
|
|
|
171aba8 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
|
|
|
171aba8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
171aba8 |
|
|
|
e7f1fd5 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
|
|
|
e7f1fd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e7f1fd5 |
|
|
|
2782717 |
* Thu May 29 2014 Christopher Meng <rpm@cicku.me> - 1.10-1
|
|
|
2782717 |
- Update to 1.10
|
|
|
2782717 |
|
|
|
1df2a1c |
* Tue Mar 25 2014 Christopher Meng <rpm@cicku.me> - 1.9-5
|
|
|
1df2a1c |
- Harden rebuild.
|
|
|
1df2a1c |
|
|
|
4d7760e |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-4
|
|
|
4d7760e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4d7760e |
|
|
Christopher Meng |
d6f3f04 |
* Sun Jun 16 2013 Christopher Meng <rpm@cicku.me> - 1.9-3
|
|
Christopher Meng |
d6f3f04 |
- Fix systemd support.
|
|
Christopher Meng |
d6f3f04 |
|
|
Christopher Meng |
7a79980 |
* Wed May 22 2013 Christopher Meng <rpm@cicku.me> - 1.9-2
|
|
Christopher Meng |
7a79980 |
- Add systemd support.
|
|
Christopher Meng |
7a79980 |
|
|
Christopher Meng |
1b63211 |
* Wed May 01 2013 Christopher Meng <rpm@cicku.me> - 1.9-1
|
|
Christopher Meng |
1b63211 |
- Initial Package.
|