From edb0243865cc011ee6454ca2b0127946f4e5098c Mon Sep 17 00:00:00 2001 From: zhao Date: Sat, 17 Jan 2026 12:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c4c262a --- /dev/null +++ b/Makefile @@ -0,0 +1,49 @@ +# +# Copyright (C) 2012-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=odhcp6c +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcp6c.git +PKG_SOURCE_DATE:=2025-12-29 +PKG_SOURCE_VERSION:=8abb45065f5ef9d176efa6bd151a1209b05852c4 +PKG_MIRROR_HASH:=e7ce2b3025dfc005b9fb960f53c1848c1864e026e11e336f7b017d6eb9c68cef + +PKG_MAINTAINER:=Álvaro Fernández Rojas +PKG_LICENSE:=GPL-2.0 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_OPTIONS += -DUBUS=1 + +define Package/odhcp6c + SECTION:=net + CATEGORY:=Network + TITLE:=Embedded DHCPv6-client for OpenWrt + DEPENDS:=@IPV6 +libubox +libubus +endef + +define Package/odhcp6c/conffiles +/etc/odhcp6c.user +/etc/odhcp6c.user.d/ +endef + +define Package/odhcp6c/install + $(INSTALL_DIR) $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/lib/netifd/proto + $(INSTALL_BIN) ./files/dhcpv6.sh $(1)/lib/netifd/proto/dhcpv6.sh + $(INSTALL_BIN) ./files/dhcpv6.script $(1)/lib/netifd/ + $(INSTALL_DIR) $(1)/etc/odhcp6c.user.d/ + $(INSTALL_CONF) ./files/odhcp6c.user $(1)/etc/ +endef + +$(eval $(call BuildPackage,odhcp6c)) \ No newline at end of file