a67cce16270f6345752d18ec843aa5765a297e98
[openwrt/openwrt.git] / package / netifd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=netifd
4 PKG_VERSION:=2011-10-24
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/luci2/netifd.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=e8f450ba2e67716cf3ed70060a309b80aa24cf00
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 # PKG_MIRROR_MD5SUM:=
13 # CMAKE_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/netifd
19 SECTION:=base
20 CATEGORY:=Base system
21 DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn @USE_NETIFD
22 TITLE:=OpenWrt Network Interface Configuration Daemon
23 endef
24
25 TARGET_CFLAGS += \
26 -I$(STAGING_DIR)/usr/include \
27 -I$(STAGING_DIR)/usr/include/libnl-tiny
28
29 CMAKE_OPTIONS += \
30 -DLIBNL_LIBS=-lnl-tiny \
31 -DDEBUG=1
32
33 define 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/
38 endef
39
40 $(eval $(call BuildPackage,netifd))