include $(TOPDIR)/rules.mk
include $(TOPDIR)/draytek_include/draytek_info

PKG_NAME:=NDisc6
PKG_VERSION:=1.0.6
PKG_RELEASE:=1
PKG_LICENSE:=GPLv2
PKG_FIXUP:=autoreconf
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/NDisc6
	SECTION:=apps
	CATEGORY:=DrayOS5
	SUBMENU:=System
	TITLE:=IPv6 neighbor discovery tool
endef

define Package/NDisc6/description
	IPv6 neighbor discovery tool
endef

define Build/Prepare
$(call Build/Prepare/Default)
endef

define Build/Configure
	$(call Build/Configure/Default)
endef

define Build/Compile
	$(call Build/Compile/Default)
endef

define Package/NDisc6/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ndisc6 $(1)/usr/bin/
endef

$(eval $(call BuildPackage,NDisc6))
