mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
mongoose: bump to version 5.3
Mongoose has changed quite drastically in the last months. Here is a list of changes which had to be applied: - Bump version from 3.7 to 5.3 - use tarball download via github helper iso git clone - need largefile support - compilation takes place into "examples" - weberver source is now "server.c" - adapt to new command line options - SSL support now controlled via NS_ENABLE_SSL [Peter: extend commit text, use CFLAGS_EXTRA, only build server] Signed-off-by: Davide Viti <zinosat@tiscali.it> Cc: Will Wagner <will_wagner@carallon.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
d5dbe18560
commit
926affb40d
@ -1,5 +1,6 @@
|
|||||||
config BR2_PACKAGE_MONGOOSE
|
config BR2_PACKAGE_MONGOOSE
|
||||||
bool "mongoose"
|
bool "mongoose"
|
||||||
|
depends on BR2_LARGEFILE
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
depends on BR2_USE_MMU # fork()
|
depends on BR2_USE_MMU # fork()
|
||||||
help
|
help
|
||||||
@ -7,6 +8,6 @@ config BR2_PACKAGE_MONGOOSE
|
|||||||
|
|
||||||
https://github.com/valenok/mongoose
|
https://github.com/valenok/mongoose
|
||||||
|
|
||||||
comment "mongoose needs a toolchain w/ threads"
|
comment "mongoose needs a toolchain w/ threads, largefile"
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE
|
||||||
|
@ -10,7 +10,7 @@ NAME=mongoose
|
|||||||
DESC="Mongoose HTTP server"
|
DESC="Mongoose HTTP server"
|
||||||
|
|
||||||
DAEMON=`which mongoose`
|
DAEMON=`which mongoose`
|
||||||
OPTIONS="-num_threads 3 -document_root /var/www -listening_ports 80"
|
OPTIONS="-document_root /var/www -listening_port 80"
|
||||||
|
|
||||||
[ -e /etc/default/mongoose ] && . /etc/default/mongoose
|
[ -e /etc/default/mongoose ] && . /etc/default/mongoose
|
||||||
|
|
||||||
|
@ -4,10 +4,9 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MONGOOSE_VERSION = 3.7
|
MONGOOSE_VERSION = 5.3
|
||||||
MONGOOSE_SOURCE = mongoose-$(MONGOOSE_VERSION).tgz
|
MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION))
|
||||||
MONGOOSE_SITE = https://mongoose.googlecode.com/files
|
MONGOOSE_LICENSE = GPLv2
|
||||||
MONGOOSE_LICENSE = MIT
|
|
||||||
MONGOOSE_LICENSE_FILES = LICENSE
|
MONGOOSE_LICENSE_FILES = LICENSE
|
||||||
|
|
||||||
MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS)
|
MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS)
|
||||||
@ -15,18 +14,16 @@ MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS)
|
|||||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
MONGOOSE_DEPENDENCIES += openssl
|
MONGOOSE_DEPENDENCIES += openssl
|
||||||
# directly linked
|
# directly linked
|
||||||
MONGOOSE_CFLAGS += -DNO_SSL_DL -lssl -lcrypto -lz
|
MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
|
||||||
else
|
|
||||||
MONGOOSE_CFLAGS += -DNO_SSL
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define MONGOOSE_BUILD_CMDS
|
define MONGOOSE_BUILD_CMDS
|
||||||
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) \
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D)/examples \
|
||||||
linux COPT="$(MONGOOSE_CFLAGS)"
|
CFLAGS_EXTRA="$(MONGOOSE_CFLAGS)" server
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MONGOOSE_INSTALL_TARGET_CMDS
|
define MONGOOSE_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -D -m 755 $(@D)/mongoose $(TARGET_DIR)/usr/sbin/mongoose
|
$(INSTALL) -D -m 755 $(@D)/examples/server $(TARGET_DIR)/usr/sbin/mongoose
|
||||||
$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
|
$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
|
||||||
$(TARGET_DIR)/etc/init.d/S85mongoose
|
$(TARGET_DIR)/etc/init.d/S85mongoose
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user