2011-10-21 01:47:49 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=netifd
|
2023-11-09 14:10:03 +00:00
|
|
|
PKG_RELEASE:=1
|
2011-10-21 01:47:49 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-01-05 09:46:06 +00:00
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/netifd.git
|
2024-01-04 11:30:19 +00:00
|
|
|
PKG_SOURCE_DATE:=2024-01-04
|
|
|
|
PKG_SOURCE_VERSION:=f01345ec13b9b27ffd314d8689fb2d3f9c81a47d
|
2024-03-25 09:03:26 +00:00
|
|
|
PKG_MIRROR_HASH:=b051aa94e6413f520b711372f8cae4574cad26cba880ff6ab2d415713d06e592
|
2016-06-07 06:58:31 +00:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2011-10-21 01:47:49 +00:00
|
|
|
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
2023-02-02 20:33:38 +00:00
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
|
2011-10-21 01:47:49 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/netifd
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
2024-04-12 19:51:50 +00:00
|
|
|
DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn +libubox +libudebug +ucode +ucode-mod-fs
|
2011-10-21 01:47:49 +00:00
|
|
|
TITLE:=OpenWrt Network Interface Configuration Daemon
|
|
|
|
endef
|
|
|
|
|
2021-03-09 22:22:09 +00:00
|
|
|
define Package/netifd/conffiles
|
|
|
|
/etc/udhcpc.user
|
2021-03-23 10:02:36 +00:00
|
|
|
/etc/udhcpc.user.d/
|
2021-03-09 22:22:09 +00:00
|
|
|
endef
|
|
|
|
|
2011-10-21 01:47:49 +00:00
|
|
|
TARGET_CFLAGS += \
|
2011-11-08 10:12:31 +00:00
|
|
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
2023-02-02 20:33:38 +00:00
|
|
|
-I$(STAGING_DIR)/usr/include
|
2011-10-21 01:47:49 +00:00
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DLIBNL_LIBS=-lnl-tiny \
|
|
|
|
-DDEBUG=1
|
|
|
|
|
|
|
|
define Package/netifd/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
|
|
|
|
$(CP) ./files/* $(1)/
|
2021-03-23 10:02:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/udhcpc.user.d/
|
2024-01-26 10:03:39 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/scripts/utils.sh \
|
|
|
|
$(PKG_BUILD_DIR)/scripts/netifd-proto.sh \
|
|
|
|
$(1)/lib/netifd/
|
2011-10-21 01:47:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netifd))
|