Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcp6c.git
  12. PKG_SOURCE_DATE:=2025-12-18
  13. PKG_SOURCE_VERSION:=9a4d6fe802d21e4fc1b84f7d55b5c3c23e71d6ba
  14. PKG_MIRROR_HASH:=0be95faccad6b4c9107fc7819526f11b59eedc09454c8dcb0435450ff3afbf77
  15. PKG_MAINTAINER:=Álvaro Fernández Rojas <[email protected]>
  16. PKG_LICENSE:=GPL-2.0
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. CMAKE_OPTIONS += -DUBUS=1
  20. define Package/odhcp6c
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Embedded DHCPv6-client for OpenWrt
  24. DEPENDS:=@IPV6 +libubox +libubus
  25. endef
  26. define Package/odhcp6c/conffiles
  27. /etc/odhcp6c.user
  28. /etc/odhcp6c.user.d/
  29. endef
  30. define Package/odhcp6c/install
  31. $(INSTALL_DIR) $(1)/usr/sbin/
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/
  33. $(INSTALL_DIR) $(1)/lib/netifd/proto
  34. $(INSTALL_BIN) ./files/dhcpv6.sh $(1)/lib/netifd/proto/dhcpv6.sh
  35. $(INSTALL_BIN) ./files/dhcpv6.script $(1)/lib/netifd/
  36. $(INSTALL_DIR) $(1)/etc/odhcp6c.user.d/
  37. $(INSTALL_CONF) ./files/odhcp6c.user $(1)/etc/
  38. endef
  39. $(eval $(call BuildPackage,odhcp6c))