[darkhttpd/f18] Initial

Christopher Meng cicku at fedoraproject.org
Tue May 21 04:21:27 UTC 2013


commit 1b63211a16b571215e28e7a76c18f9530c7d3f60
Author: Christopher Meng <rpm at cicku.me>
Date:   Tue May 21 12:20:55 2013 +0800

    Initial

 .gitignore     |    1 +
 darkhttpd.spec |   44 ++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3bc9c29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/darkhttpd-1.9.tar.bz2
diff --git a/darkhttpd.spec b/darkhttpd.spec
new file mode 100644
index 0000000..7c89bf2
--- /dev/null
+++ b/darkhttpd.spec
@@ -0,0 +1,44 @@
+Name:              darkhttpd
+Version:           1.9
+Release:           1%{?dist}
+Summary:           A secure, lightweight, fast, single-threaded HTTP/1.1 server
+License:           BSD
+
+URL:               http://unix4lyfe.org/darkhttpd/
+Source0:           http://unix4lyfe.org/%{name}/%{name}-%{version}.tar.bz2
+
+%description
+darkhttpd is a secure, lightweight, fast, single-threaded HTTP/1.1 server.
+
+Features:
+Simple to set up.
+Single binary, no other files, no installation needed.
+Standalone, doesn't need inetd or ucspi-tcp.
+No messing around with config files - all you have to specify is the www root.
+Written in C - efficient and portable.
+Small memory footprint.
+Event loop, single threaded - no fork() or pthreads.
+Generates directory listings.
+Supports HTTP GET and HEAD requests.
+Supports Range / partial content.
+Supports If-Modified-Since.
+Supports Keep-Alive connections.
+Can serve 301 redirects based on Host header.
+Uses sendfile() on FreeBSD, Solaris and Linux.
+
+%prep
+%setup -q
+
+%build
+make CFLAGS="%{optflags}" %{?_smp_mflags}
+
+%install
+install -p -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}
+
+%files
+%doc README
+%{_bindir}/%{name}
+
+%changelog
+* Wed May 01 2013 Christopher Meng <rpm at cicku.me> - 1.9-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..cda097d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+156f239af542028c3fb5c2248aa0db8d  darkhttpd-1.9.tar.bz2


More information about the scm-commits mailing list