Browse Source

[mod_uploadprogress] add to default build

(module is distributed in Gentoo)
(add to default build to reduce distributor package maintenance)
personal/stbuehler/mod-csrf-old
Glenn Strauss 5 years ago
parent
commit
ab935a2b96
  1. 2
      src/CMakeLists.txt
  2. 6
      src/Makefile.am
  3. 2
      src/SConscript
  4. 3
      src/mod_uploadprogress.c

2
src/CMakeLists.txt

@ -589,7 +589,7 @@ add_and_install_library(mod_ssi "mod_ssi_exprparser.c;mod_ssi_expr.c;mod_ssi.c")
add_and_install_library(mod_staticfile mod_staticfile.c)
add_and_install_library(mod_status mod_status.c)
add_and_install_library(mod_trigger_b4_dl mod_trigger_b4_dl.c)
# add_and_install_library(mod_uploadprogress mod_uploadprogress.c)
add_and_install_library(mod_uploadprogress mod_uploadprogress.c)
add_and_install_library(mod_userdir mod_userdir.c)
add_and_install_library(mod_usertrack mod_usertrack.c)
add_and_install_library(mod_webdav mod_webdav.c)

6
src/Makefile.am

@ -293,6 +293,11 @@ mod_accesslog_la_SOURCES = mod_accesslog.c
mod_accesslog_la_LDFLAGS = $(common_module_ldflags)
mod_accesslog_la_LIBADD = $(common_libadd)
lib_LTLIBRARIES += mod_uploadprogress.la
mod_uploadprogress_la_SOURCES = mod_uploadprogress.c
mod_uploadprogress_la_LDFLAGS = $(common_module_ldflags)
mod_uploadprogress_la_LIBADD = $(common_libadd)
hdr = server.h base64.h buffer.h network.h log.h keyvalue.h \
response.h request.h fastcgi.h chunk.h \
@ -349,6 +354,7 @@ lighttpd_SOURCES = \
mod_staticfile.c \
mod_status.c \
mod_trigger_b4_dl.c \
mod_uploadprogress.c \
mod_userdir.c \
mod_usertrack.c \
mod_webdav.c

2
src/SConscript

@ -106,7 +106,7 @@ modules = {
'mod_authn_mysql' : { 'src' : [ 'mod_authn_mysql.c' ], 'lib' : [ env['LIBCRYPT'], env['LIBMYSQL'] ] },
'mod_webdav' : { 'src' : [ 'mod_webdav.c' ], 'lib' : [ env['LIBXML2'], env['LIBSQLITE3'], env['LIBUUID'] ] },
'mod_mysql_vhost' : { 'src' : [ 'mod_mysql_vhost.c' ], 'lib' : [ env['LIBMYSQL'] ] },
# 'mod_uploadprogress' : { 'src' : [ 'mod_uploadprogress.c' ] },
'mod_uploadprogress' : { 'src' : [ 'mod_uploadprogress.c' ] },
'mod_evasive' : { 'src' : [ 'mod_evasive.c' ] },
'mod_ssi' : { 'src' : [ 'mod_ssi_exprparser.c', 'mod_ssi_expr.c', 'mod_ssi.c' ] },
'mod_flv_streaming' : { 'src' : [ 'mod_flv_streaming.c' ] },

3
src/mod_uploadprogress.c

@ -9,7 +9,6 @@
#include "response.h"
#include "stat_cache.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
@ -350,7 +349,7 @@ URIHANDLER_FUNC(mod_uploadprogress_uri_handler) {
log_error_write(srv, __FILE__, __LINE__, "sb",
"ID no known:", b);
chunkqueue_get_append_mem(con->write_queue, CONST_STR_LEN("not in progress"));
chunkqueue_append_mem(con->write_queue, CONST_STR_LEN("not in progress"));
return HANDLER_FINISHED;
}

Loading…
Cancel
Save