mongoose: bump to version 6.1
- provide only libmongoose.a - rework package description [Peter: move under Libraries->Networking] Signed-off-by: Davide Viti <zinosat@tiscali.it> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
225189803d
commit
9860746ff9
@ -1102,6 +1102,7 @@ menu "Networking"
|
||||
source "package/libvncserver/Config.in"
|
||||
source "package/libwebsock/Config.in"
|
||||
source "package/libwebsockets/Config.in"
|
||||
source "package/mongoose/Config.in"
|
||||
source "package/neon/Config.in"
|
||||
source "package/nss-mdns/Config.in"
|
||||
source "package/nss-pam-ldapd/Config.in"
|
||||
@ -1361,7 +1362,6 @@ endif
|
||||
source "package/minidlna/Config.in"
|
||||
source "package/mjpg-streamer/Config.in"
|
||||
source "package/modem-manager/Config.in"
|
||||
source "package/mongoose/Config.in"
|
||||
source "package/mongrel2/Config.in"
|
||||
source "package/monkey/Config.in"
|
||||
source "package/mosh/Config.in"
|
||||
|
@ -3,7 +3,8 @@ config BR2_PACKAGE_MONGOOSE
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Mongoose is a small and easy to use web server
|
||||
Mongoose is an embedded networking library, which can turn
|
||||
anything into a web server
|
||||
|
||||
https://github.com/cesanta/mongoose
|
||||
|
||||
|
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start/stop the mongoose HTTP server
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
NAME=mongoose
|
||||
DESC="Mongoose HTTP server"
|
||||
|
||||
DAEMON=`which mongoose`
|
||||
OPTIONS="-document_root /var/www -listening_port 80"
|
||||
|
||||
[ -e /etc/default/mongoose ] && . /etc/default/mongoose
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $DESC:"
|
||||
start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
|
||||
echo "$NAME."
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping $DESC: "
|
||||
start-stop-daemon -K -x "$DAEMON"
|
||||
echo "$NAME."
|
||||
;;
|
||||
restart|force-reload)
|
||||
printf "Restarting $DESC: "
|
||||
start-stop-daemon -K -x "$DAEMON"
|
||||
sleep 1
|
||||
start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
|
||||
echo "$NAME."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,2 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 cc2557c7cf9f15e1e691f285a4c6c705cc7e56cb70c64cb49703a428a0677065 mongoose-5.6.tar.gz
|
||||
sha256 512b406714d31a178fc41263ca6ecafd0c1e2dd091e9685a7b2462fecdaaea8e mongoose-6.1.tar.gz
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MONGOOSE_VERSION = 5.6
|
||||
MONGOOSE_VERSION = 6.1
|
||||
MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION))
|
||||
MONGOOSE_LICENSE = GPLv2
|
||||
MONGOOSE_LICENSE_FILES = LICENSE
|
||||
@ -19,31 +19,10 @@ MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
|
||||
endif
|
||||
|
||||
define MONGOOSE_BUILD_CMDS
|
||||
$(TARGET_CC) $(@D)/examples/web_server/web_server.c $(@D)/mongoose.c \
|
||||
-I$(@D) -o $(@D)/examples/web_server/web_server \
|
||||
$(MONGOOSE_CFLAGS) -pthread
|
||||
$(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o
|
||||
$(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/examples/web_server/web_server \
|
||||
$(TARGET_DIR)/usr/sbin/mongoose
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/mongoose/S85mongoose \
|
||||
$(TARGET_DIR)/etc/init.d/S85mongoose
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/mongoose/mongoose.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/mongoose.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/mongoose.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mongoose.service
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D -m 644 $(@D)/libmongoose.a \
|
||||
$(STAGING_DIR)/usr/lib/libmongoose.a
|
||||
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Mongoose HTTP server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/mongoose -document_root /var/www -listening_port 80
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user