2009-05-22 13:24:40 +00:00
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
|
|
|
# Copyright (C) 2009 Embedthis Software
|
2009-05-22 13:24:40 +00:00
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2009-05-22 13:24:40 +00:00
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
# Commercial and other licenses are available from http://www.embedthis.com/.
|
2009-05-22 13:24:40 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=appweb
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
# Build stable
|
2009-05-22 13:24:40 +00:00
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
PKG_VERSION:=3.2.2-1
|
2009-05-22 13:24:40 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
|
2010-08-03 07:36:15 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.appwebserver.org/software/
|
|
|
|
PKG_MD5SUM:=060d43c8194fa6a119cada966fc807a7
|
|
|
|
|
2009-05-22 13:24:40 +00:00
|
|
|
#
|
|
|
|
# Build the latest snapshot from the default trunk
|
|
|
|
#
|
2010-08-03 07:36:15 +00:00
|
|
|
#PKG_VERSION:=default
|
|
|
|
#PKG_SOURCE:=tip.tar.gz
|
|
|
|
#PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/
|
|
|
|
#PKG_MD5SUM:=
|
2009-05-22 13:24:40 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/appweb
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 04:41:35 +00:00
|
|
|
SUBMENU:=Web Servers/Proxies
|
2009-05-22 13:24:40 +00:00
|
|
|
TITLE:=Appweb Web Server
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://www.appwebserver.org/
|
2010-08-03 07:36:15 +00:00
|
|
|
DEPENDS:=@!avr32 +libpthread
|
2009-05-22 13:24:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/appweb/description
|
2010-08-03 07:36:15 +00:00
|
|
|
Appweb is a powerful, compact embedded web server designed for dynamic web
|
|
|
|
applications.
|
2009-05-22 13:24:40 +00:00
|
|
|
endef
|
|
|
|
|
2010-08-03 07:36:15 +00:00
|
|
|
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
|
|
|
|
|
2009-05-22 13:24:40 +00:00
|
|
|
define Build/Prepare
|
|
|
|
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 )
|
2009-09-02 22:39:19 +00:00
|
|
|
rm -rf $(1)/var
|
2009-05-22 13:24:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,appweb))
|