#
# Copyright (C) 2010-2011 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:=nod32upd
PKG_VERSION:=0.7.1
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/nod32upd
	SECTION:=net
	CATEGORY:=Network
	DEPENDS:=+wget +sed +unrar +coreutils-touch
	TITLE:=Nod32 update script
	URL:=http://wl500g.info/showthread.php?7877-NOD32-update-server
endef

define Package/nod32upd/description
	Nod32 update script
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/nod32upd/install
	$(INSTALL_DIR) $(1)/opt/bin
	$(INSTALL_BIN) ./files/nod32upd $(1)/opt/bin
	$(INSTALL_DIR) $(1)/opt/etc
	$(INSTALL_CONF) ./files/nod32upd.conf $(1)/opt/etc/
	$(INSTALL_DIR) $(1)/opt/share/nod32_root
	$(INSTALL_DIR) $(1)/opt/share/www/nod32upd
endef

$(eval $(call BuildPackage,nod32upd))