2011-10-21 01:47:49 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=netifd
|
2018-01-09 06:13:29 +00:00
|
|
|
PKG_RELEASE:=2
|
2011-10-21 01:47:49 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-06-06 19:16:47 +00:00
|
|
|
PKG_SOURCE_URL=$(LEDE_GIT)/project/netifd.git
|
2018-01-04 08:47:07 +00:00
|
|
|
PKG_SOURCE_DATE:=2018-01-04
|
|
|
|
PKG_SOURCE_VERSION:=fd5c399c01ceb1bbede3ae8b0e1daaa7652a6fa1
|
|
|
|
PKG_MIRROR_HASH:=0040f94d11d0039505328a90b2ff48968db873e9e7967307631bf40ef5679275
|
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:=
|
|
|
|
|
2012-10-18 00:09:45 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
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
|
2014-02-23 17:32:15 +00:00
|
|
|
DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn +libubox
|
2011-10-21 01:47:49 +00:00
|
|
|
TITLE:=OpenWrt Network Interface Configuration Daemon
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += \
|
2011-11-08 10:12:31 +00:00
|
|
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
|
|
|
-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)/
|
2013-10-30 11:25:01 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
|
2011-10-21 01:47:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netifd))
|