source: trunk/package/netifd/Makefile @ 28499

Last change on this file since 28499 was 28499, checked in by nbd, 5 years ago

add an initial (experimental) version of netifd, disabled by default

File size: 1.0 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=netifd
4PKG_VERSION:=2011-10-21
5PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7PKG_SOURCE_PROTO:=git
8PKG_SOURCE_URL:=git://nbd.name/luci2/netifd.git
9PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10PKG_SOURCE_VERSION:=986c4a1434cc61d2de560690ecc0d532a157d40a
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12PKG_MIRROR_MD5SUM:=627677df83aa7844f72caa8ad4f7eea9
13# CMAKE_INSTALL:=1
14
15include $(INCLUDE_DIR)/package.mk
16include $(INCLUDE_DIR)/cmake.mk
17
18define Package/netifd
19  SECTION:=base
20  CATEGORY:=Base system
21  DEPENDS:=+libubus +ubus +ubusd @USE_NETIFD
22  TITLE:=OpenWrt Network Interface Configuration Daemon
23endef
24
25TARGET_CFLAGS += \
26        -I$(STAGING_DIR)/usr/include \
27        -I$(STAGING_DIR)/usr/include/libnl-tiny
28
29CMAKE_OPTIONS += \
30        -DLIBNL_LIBS=-lnl-tiny \
31        -DDEBUG=1
32
33define Package/netifd/install
34        $(INSTALL_DIR) $(1)/sbin
35        $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
36        $(CP) ./files/* $(1)/
37        $(CP) $(PKG_BUILD_DIR)/dummy/netifd-proto.sh $(1)/lib/netifd/
38endef
39
40$(eval $(call BuildPackage,netifd))
Note: See TracBrowser for help on using the repository browser.