Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Copyright (C) 2013-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:=odhcpd
  9. PKG_RELEASE:=4
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(LEDE_GIT)/project/odhcpd.git
  12. PKG_SOURCE_DATE:=2018-05-27
  13. PKG_SOURCE_VERSION:=59339a768949e3b8a2903539235bbb02e2631445
  14. PKG_MIRROR_HASH:=b9a84b99ebf78d316e1cfdf08a72e74ff5cd95a68e5cc28e5b46e8e047de4700
  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. CMAKE_OPTIONS += -DUBUS=1
  20. ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
  21. CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
  22. endif
  23. define Package/odhcpd
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
  27. DEPENDS:=+libubox +libuci +libubus +libnl-tiny
  28. endef
  29. define Package/odhcpd/config
  30. config PACKAGE_odhcpd_ext_cer_id
  31. int "CER-ID Extension ID (0 = disabled)"
  32. depends on PACKAGE_odhcpd
  33. default 0
  34. endef
  35. define Package/odhcpd/description
  36. odhcpd is a daemon for serving and relaying IP management protocols to
  37. configure clients and downstream routers. It tries to follow the RFC 6204
  38. requirements for IPv6 home routers.
  39. odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
  40. prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
  41. (non-bridged) interfaces in case no delegated prefixes are available.
  42. endef
  43. define Package/odhcpd/install
  44. $(INSTALL_DIR) $(1)/usr/sbin/
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
  46. $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
  49. $(INSTALL_DIR) $(1)/etc/uci-defaults
  50. $(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
  51. endef
  52. $(eval $(call BuildPackage,odhcpd))