source: trunk/package/netifd/Makefile @ 30750

Last change on this file since 30750 was 30750, checked in by nbd, 4 years ago

netifd: update, fix some mac address handling issues

File size: 1.0 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=netifd
4PKG_VERSION:=2012-02-28
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:=93ddba72304f8267f8ca63dce2235a154227cd99
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12# PKG_MIRROR_MD5SUM:=
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:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn @USE_NETIFD
22  TITLE:=OpenWrt Network Interface Configuration Daemon
23endef
24
25TARGET_CFLAGS += \
26        -I$(STAGING_DIR)/usr/include/libnl-tiny \
27        -I$(STAGING_DIR)/usr/include
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.