2
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2012-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=odhcp6c
  9. PKG_RELEASE:=2
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=$(LEDE_GIT)/project/odhcp6c.git
  12. PKG_SOURCE_DATE:=2017-01-30
  13. PKG_SOURCE_VERSION:=c13b6a05dbd9174356cc4b7fd1edf39445efd982
  14. PKG_MIRROR_HASH:=001e58f1ab6eb8903d9e47060ae037a2e4f021f1fef5032347b767f56f4664f6
  15. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  16. PKG_LICENSE:=GPL-2.0
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. ifneq ($(CONFIG_PACKAGE_odhcp6c_ext_cer_id),0)
  20. CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcp6c_ext_cer_id)
  21. endif
  22. define Package/odhcp6c
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Embedded DHCPv6-client for OpenWrt
  26. DEPENDS:=@IPV6 +libubox
  27. endef
  28. define Package/odhcp6c/config
  29. config PACKAGE_odhcp6c_ext_cer_id
  30. int "CER-ID Extension ID (0 = disabled)"
  31. depends on PACKAGE_odhcp6c
  32. default 0
  33. endef
  34. define Package/odhcp6c/install
  35. $(INSTALL_DIR) $(1)/usr/sbin/
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/
  37. $(INSTALL_DIR) $(1)/lib/netifd/proto
  38. $(INSTALL_BIN) ./files/dhcpv6.sh $(1)/lib/netifd/proto/dhcpv6.sh
  39. $(INSTALL_BIN) ./files/dhcpv6.script $(1)/lib/netifd/
  40. endef
  41. $(eval $(call BuildPackage,odhcp6c))