mongoose: bump to version 6.1
authorDavide Viti <zinosat@tiscali.it>
Mon, 14 Dec 2015 21:44:54 +0000 (22:44 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 29 Dec 2015 21:43:43 +0000 (22:43 +0100)
- 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>
package/Config.in
package/mongoose/Config.in
package/mongoose/S85mongoose [deleted file]
package/mongoose/mongoose.hash
package/mongoose/mongoose.mk
package/mongoose/mongoose.service [deleted file]

index a34b5ce3deb28a3f0d4e79374bc19c8f3963703c..283363d9f9b1815b8464634f90d4b95d43d981f7 100644 (file)
@@ -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"
index df706b91a400f7cd973c779c69cea38952659179..22b385d457dff9763c11676069c298089e1556d6 100644 (file)
@@ -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
 
diff --git a/package/mongoose/S85mongoose b/package/mongoose/S85mongoose
deleted file mode 100755 (executable)
index 9f24e06..0000000
+++ /dev/null
@@ -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
index 5687094f2dbc90977e7e59ab818850eba903b934..1ed4a7846f8ee0d0c766c92b33e28556df45e341 100644 (file)
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256 cc2557c7cf9f15e1e691f285a4c6c705cc7e56cb70c64cb49703a428a0677065  mongoose-5.6.tar.gz
+sha256 512b406714d31a178fc41263ca6ecafd0c1e2dd091e9685a7b2462fecdaaea8e  mongoose-6.1.tar.gz
index 14f2aae152fce4a1b4f8c77a20d5d4b2507e479d..6caaf2ec94d51cc3bf585a0a57d988fd8fdb7200 100644 (file)
@@ -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
diff --git a/package/mongoose/mongoose.service b/package/mongoose/mongoose.service
deleted file mode 100644 (file)
index 12a731c..0000000
+++ /dev/null
@@ -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