# 
# Copyright (C) 2008 Vitesse Semiconductor
#

include $(TOPDIR)/rules.mk

PKG_NAME:=vtss-svcs
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/vtss-svcs
  SECTION:=admin
  CATEGORY:=Administration
  TITLE:=Vitesse service manager for G-RocX
endef

# vtss-svcs_1_arm.ipk
define Package/vtss-svcs/install
	@echo "Install.................."
	$(CP) $(PKG_BUILD_DIR)/binary/* $(1)
endef 

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

$(eval $(call BuildPackage,vtss-svcs))
