#
# Copyright (C) 2010-2015 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:=autodetection
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0

include $(INCLUDE_DIR)/package.mk

define Package/autodetection
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=@IPV6
  TITLE:=D-Link Autodetection Feature
  MAINTAINER:=CAMEO Communication Inc.
  PKGARCH:=all
endef

define Package/autodetection/description
endef

define Build/Compile
endef

define Build/Configure
endef

define Package/autodetection/install
	$(INSTALL_DIR) $(1)/lib/netifd/proto
#	$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
#	$(INSTALL_BIN) ./files/99-autodetection $(1)/etc/hotplug.d/iface/99-autodetection
	$(INSTALL_BIN) ./files/autodetection.sh $(1)/lib/netifd/proto/autodetection.sh
endef

$(eval $(call BuildPackage,autodetection))
