diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d470c37 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ + +all: weighttp + +override SOURCES := $(wildcard src/*.c) +override OBJECTS := $(patsubst %.c,%.o,$(SOURCES)) + +override LDFLAGS += -lev -lpthread +override CFLAGS += '-DVERSION="0.2"' + +weighttp: $(OBJECTS) + $(CC) $(LDFLAGS) -o weighttp $^ + +install: weighttp + mkdir -p $(DESTDIR)/usr/bin + cp weighttp $(DESTDIR)/usr/bin/ + +clean: + rm -f weighttp $(OBJECTS) + +.PHONY: all install clean diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f23057e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,17 @@ +weighttp (0.2-2) unstable; urgency=low + + * Use old debhelper for backports + + -- Stefan Bühler Sun, 24 Oct 2010 18:49:44 +0000 + +weighttp (0.2-1) unstable; urgency=low + + * Initial release + + -- Stefan Bühler Mon, 23 Aug 2010 12:58:47 +0000 + +weighttp (0.2-0) unstable; urgency=low + + * Initial release + + -- Stefan Bühler Mon, 23 Aug 2010 12:58:46 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..30a45fa --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: weighttp +Section: net +Priority: extra +Maintainer: Stefan Bühler +Build-Depends: debhelper (>= 5), libev-dev, cdbs +Standards-Version: 3.9.1 +Homepage: http://weighttp.lighttpd.net/ +Vcs-Git: git://git.lighttpd.net/weighttp +Vcs-Browser: http://cgit.lighttpd.net/weighttp/ + +Package: weighttp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: lightweight and simple webserver benchmarking tool + weighttp was designed to be very fast and easy to use and only supports a + tiny fraction of the HTTP protocol in order to be lean and simple. + . + weighttp supports multithreading to make good use of modern CPUs with + multiple cores as well as asynchronous i/o for concurrent requests + within a single thread. + . + For event handling, weighty relies on libev which fits the design perfectly, + being lightweight and fast itself. + . + Thanks to that, weighty supports all modern high-performance event + interfaces like epoll or kqueue, that the major OSs provide. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..141fc30 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,44 @@ +This work was packaged for Debian by: + + Stefan Bühler on Mon, 23 Aug 2010 12:58:46 +0000 + +It was downloaded from: + + http://weighttp.lighttpd.net/ + +Upstream Author(s): + + Thomas Porzelt + +Copyright: + + Copyright (c) 2009 Thomas Porzelt + +License: + + The MIT License + + Copyright (c) 2009 Thomas Porzelt + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +The Debian packaging is: + + Copyright (C) 2010 Stefan Bühler + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..724e084 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +TODO diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..88e8274 --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +DEB_MAKE_INSTALL_TARGET=install + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk + +DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/weighttpd +DEB_MAKE_CHECK_TARGET := + +# Add here any variable or target overrides you need. diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0