add myself as a maintainer for various packages
[openwrt.git] / package / netifd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=netifd
4 PKG_VERSION:=2012-09-29
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:=6653b861748719ab58e21a81e01d59d4d8afe10c
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
13 # PKG_MIRROR_MD5SUM:=
14 # CMAKE_INSTALL:=1
15
16 include $(INCLUDE_DIR)/package.mk
17 include $(INCLUDE_DIR)/cmake.mk
18
19 define Package/netifd
20   SECTION:=base
21   CATEGORY:=Base system
22   DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn
23   TITLE:=OpenWrt Network Interface Configuration Daemon
24 endef
25
26 TARGET_CFLAGS += \
27         -I$(STAGING_DIR)/usr/include/libnl-tiny \
28         -I$(STAGING_DIR)/usr/include
29
30 CMAKE_OPTIONS += \
31         -DLIBNL_LIBS=-lnl-tiny \
32         -DDEBUG=1
33
34 define Package/netifd/install
35         $(INSTALL_DIR) $(1)/sbin
36         $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
37         $(CP) ./files/* $(1)/
38         $(CP) $(PKG_BUILD_DIR)/dummy/netifd-proto.sh $(1)/lib/netifd/
39 endef
40
41 $(eval $(call BuildPackage,netifd))