1
0

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:=1
  10. PKG_SOURCE_URL:=git://git.lede-project.org/project/odhcpd.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2017-01-06
  13. PKG_SOURCE_VERSION:=ef3c5632c100fda0fa463a3ed56ff926f3f86b20
  14. PKG_MIRROR_HASH:=a870ae200dd4b0776f18f19051f75a6654108e8f25044d37c6d0856193c3ccf0
  15. PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
  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
  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))