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:=2
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(LEDE_GIT)/project/odhcpd.git
  12. PKG_SOURCE_DATE:=2017-10-02
  13. PKG_SOURCE_VERSION:=c6f3d5d4ea5154e5971fa0b1b1e9a9c07119429f
  14. PKG_MIRROR_HASH:=5ce8f52b5c6acea27d9733918e9c3bc8a154d516a02eef9b172c5e3d459f494c
  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))