From d4a5c1cdbd1c72981ee84f40fb2f387b199b52e6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 22 May 2009 13:24:40 +0000 Subject: [PATCH] [PATCH] Add support for Appweb Embedded WebServer with Server-Side Javascript This patch adds support for the Appweb embedded web server which supports Server-Side JavaScript. It contains just a Makefile and no other files. Signed-off-by: Michael O'Brien SVN-Revision: 15989 --- net/appweb/Makefile | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 net/appweb/Makefile diff --git a/net/appweb/Makefile b/net/appweb/Makefile new file mode 100644 index 0000000000..6e1e147f04 --- /dev/null +++ b/net/appweb/Makefile @@ -0,0 +1,72 @@ +# +# Makefile for the Appweb Web Server +# +# Copyright (C) 2009 Embedthis Software +# +# This software is licensed under the GPLv2. Commercial and other licenses +# are available from http://www.embedthis.com. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=appweb +PKG_RELEASE:=1 + +# +# Build 3.0B.3 +# +PKG_SOURCE_URL:=http://www.appwebserver.org/software/ +PKG_VERSION:=3.0B.2-3 +PKG_MD5SUM:=b54a99d388a5588a9af33aa1c6354e06 +PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz +# +# Build the latest snapshot from the default trunk +# +# PKG_SOURCE:=tip.tar.gz +# PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/ +# PKG_VERSION:=default +# PKG_MD5SUM:= + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_ARGS += -q --defaults=release --shared --tune=size --without-php \ + --without-ssl --disable-angel --disable-samples --disable-access-log \ + --disable-complete-native --disable-complete-cross --webdir=/www \ + --logdir=/var/log --port=8000 --sslPort=8443 --config=flat + +define Package/appweb + SECTION:=net + CATEGORY:=Network + TITLE:=Appweb Web Server + VERSION:=$(PKG_VERSION) +endef + +define Package/appweb/description + Appweb is a powerful, compact embedded web server designed for dynamic web + applications. +endef + +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) + tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)" +endef + +define Build/Configure + $(call Build/Configure/Default) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) +endef + +define Package/appweb/install + ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \ + --root=$(1) --install --with-openwrt=1 binary ) +endef + +$(eval $(call BuildPackage,appweb)) + -- 2.30.2