Commit Graph

28 Commits

Author SHA1 Message Date
Moritz Warning
2c87c16533 enable optimization by default 2018-08-08 21:22:40 +02:00
Moritz Warning
188279304a infoskel.html => status.html 2018-08-05 01:17:08 +02:00
Moritz Warning
858d6eaa3b refactor code for future use 2018-08-04 20:07:41 +02:00
Moritz Warning
81c3ec69a3 makefile: fix deb target 2017-02-21 20:45:35 +01:00
Moritz Warning
151e712899 makefile: remove stray tab 2017-02-21 20:26:59 +01:00
Alexander Couzens
66ce5a2978 Makefile: add checkstyle
similiar to fixstyle, but doesn't change the source
and fails if it's not correct.
2016-11-21 14:47:56 +01:00
Alexander Couzens
b7d502fda7 Makefile: correct fixstyle
use if/then/else instead of && ||, add newline to improve readability
2016-11-21 14:47:55 +01:00
Alexander Couzens
8e0cf38078 Makefile: move libraries from LDFLAGS to LDLIBS 2016-06-02 12:00:54 +02:00
Alexander Couzens
6ed9f249aa Introduce new httpd library microhttpd
Supporting mimetypes, http 1.1
2016-06-02 12:00:54 +02:00
Alexander Couzens
13e27d7d37 implement string replace based template engine
The new template engine react in the same way as the old in libhttp
did.
2016-06-02 11:59:05 +02:00
Alexander Couzens
14e9f2b2f9 remove libhttpd
libhttpd will be replaced by microhttpd
2016-06-02 11:59:05 +02:00
Moritz Warning
a43d3ba576 Merge pull request #45 from smoe/debian_packaging
Improved Debian packaging
2015-01-04 05:28:00 +01:00
sayuan
08efc347e6 Merge pull request #32 from sayuan/master
Turn nodogsplash back to multi-thread
2015-01-02 22:30:21 +08:00
Steffen Moeller
66b05fa7e4 Improved Debian packaging 2014-12-27 00:50:03 +01:00
Steffen Möller
18afb32134 Correction for .deb source tarball creation
With apologies for my previous insufficient contribution - the source tarball now (as originally intended) extracts into a directory with the name of the package.
2014-12-26 23:13:50 +01:00
Moritz Warning
f1c9bb30e6 Merge pull request #41 from smoe/patch-1
Conditional strip of binaries (still default)
2014-12-26 21:35:37 +01:00
Steffen Möller
a25c31ece0 improving Makefile's deb target
Created cleaned (no remnants from previous builds, no .gitignore, no .git or dist folder) Debian source directory to prepare for upload to distribution.

Parsed VERSION from debian/changelog and have it as part of the Debian source tarball.
2014-12-26 17:51:56 +01:00
Steffen Möller
dc8944094a Conditional strip of binaries (still default)
The stripping of binaries also removes debug information that comes handy for interpreting a core dump. Linux distributions have means to separate that information into separate files, then shipping in a separate -dbg package.
2014-12-26 17:10:26 +01:00
sayuan
bea0bdfa97 Revert "stop using multiple threads to handle HTTP requests"
This reverts commit b4d4d31843.
2014-10-21 12:00:54 +08:00
sayuan
5dafd901f8 add a target deb of Makefile to build debian package 2013-09-01 22:09:05 +08:00
Etienne CHAMPETIER
0398da2ff5 Add "make fixstyle" target, make travis use it 2013-08-30 13:45:35 +02:00
sayuan
d0c2141b54 let Makefile support DESTDIR
Follow the GNU makefile conventions.
This also make the building of the Debian package much easier.
2013-08-26 00:39:26 +08:00
sayuan
b4d4d31843 stop using multiple threads to handle HTTP requests
LibHTTPD doesn't support multi-threading at all.  Some static variables,
for example `buf` in `httpdReadRequest`, is shared by all threads.

These cause a lot of unexpected behaviors and sgefaults.
However there are also some patches trying to solve it:
  http://dev.wifidog.org/ticket/471 .

Those patches reduce the chance that cause NoDogSplash to crash, but
the bug still exists.

There are two ways to solve it.  One is to remove the `static` modifier and
to bring more overhead to each request.  Another solution is to not use
threads at all.

I prefer the later one.  Since all requests can be handled very quickly,
I believe that won't increase the response time even if a lot of users
try to access it at the same time.
2013-08-10 16:33:05 +02:00
sayuan
5782728481 changed -lpthread to -pthread of LDFLAGS
For the newer version of GCC, the placement of -l option does matter,
and it cannot compile successfully now. Libraries must be specified
after the objects in the linking command.

Also, there is another option -pthread which seems more preferred.
2013-08-10 16:33:05 +02:00
Jo-Philipp Wich
0ec420f242 Preserve internal CFLAGS and LDFLAGS that should not be overwritten by the OpenWrt toolchain 2013-08-10 12:43:49 +02:00
Jo-Philipp Wich
d07f4b75b5 Do not override flags set through the environment. Useful for OpenWrt. 2013-08-10 12:43:49 +02:00
Moritz Warning
47d274ecaf remove fhonour-copt and more cleanup 2013-08-10 12:43:49 +02:00
Moritz Warning
3638f6dcb7 and Makefile and fix build 2013-04-30 05:53:54 +02:00