#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=portal
PKG_VERSION:=1.0.0
PKG_RELEASE:=0

include $(INCLUDE_DIR)/package.mk

PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

define Package/portal
  SECTION:=admin
  CATEGORY:=Administration
  DEPENDS:=+cgilib +libssl
  TITLE:=An HTTP administrative console for V3900.
  DESCRIPTION:= V3900
  VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
endef

define Build/Compile
	@echo "Compiling..................."
	$(INSTALL_DIR) $(PKG_BUILD_DIR)/binary
	tar xzfO $(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_arm.ipk ./data.tar.gz | tar -C $(PKG_BUILD_DIR)/binary -xzf -
endef

define Package/portal/install
	@echo "Install.................."
	$(CP) $(PKG_BUILD_DIR)/binary/* $(1)
endef

$(eval $(call BuildPackage,portal))



