1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=netifd
  3. PKG_VERSION:=2016-11-21
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL=$(LEDE_GIT)/project/netifd.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=153a12143b9fef4b5d3c3a6597f6fe967a17c9d7
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  10. PKG_MIRROR_MD5SUM:=5d4126e26a88102bc06d36564b204a989a42a1e4aadf6b2776e123fd3f8883f7
  11. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=
  14. PKG_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/netifd
  18. SECTION:=base
  19. CATEGORY:=Base system
  20. DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn +libubox
  21. TITLE:=OpenWrt Network Interface Configuration Daemon
  22. endef
  23. TARGET_CFLAGS += \
  24. -I$(STAGING_DIR)/usr/include/libnl-tiny \
  25. -I$(STAGING_DIR)/usr/include
  26. CMAKE_OPTIONS += \
  27. -DLIBNL_LIBS=-lnl-tiny \
  28. -DDEBUG=1
  29. define Package/netifd/install
  30. $(INSTALL_DIR) $(1)/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
  32. $(CP) ./files/* $(1)/
  33. $(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
  34. endef
  35. $(eval $(call BuildPackage,netifd))