Merge pull request #453 from ecsv/batadv-2019.0
[feed/routing.git] / pimbd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pimbd
4 PKG_SOURCE_VERSION:=dbf4e5913b06e3160f506df15e6a047a403a5f21
5 PKG_VERSION:=2018-06-19-$(PKG_SOURCE_VERSION)
6 PKG_RELEASE:=1
7
8 PKG_SOURCE_PROTO:=git
9 PKG_SOURCE_URL:=https://github.com/Oryon/pimbd.git
10 PKG_MAINTAINER:=Pierre Pfister <pierre.pfister@darou.fr>
11 PKG_LICENSE:=Apache-2.0
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(INCLUDE_DIR)/package.mk
17 include $(INCLUDE_DIR)/cmake.mk
18
19 # Spammy debug builds for now
20 CMAKE_OPTIONS += -DL_LEVEL=7 \
21 -DWITH_LIBUBOX=1
22
23 define Package/pimbd
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=PIM BIDIR daemon
27 URL:=https://github.com/Oryon/pimbd.git
28 DEPENDS+=@IPV6
29 DEPENDS+=netifd
30 endef
31
32 define Package/pimbd/description
33 This package provides a daemon which implements the Protocol Independent
34 Multicast BIDIR routing protocol. Note that a routing protocol must be
35 installed and running in order for PIM to function.
36 endef
37
38 define Package/pimbd/install
39 $(INSTALL_DIR) $(1)/usr/sbin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pimbd $(1)/usr/sbin/pimbd
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/generic/pimbc.sh $(1)/usr/sbin/pimbc
42 ln -s pimbd $(1)/usr/sbin/pimb-ipc
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/pimbd.init $(1)/etc/init.d/pimbd
45 $(INSTALL_DIR) $(1)/etc/uci-defaults
46 $(INSTALL_BIN) files/firewall-uci.sh $(1)/etc/uci-defaults/99_pimbd_firewall
47 endef
48
49 $(eval $(call BuildPackage,pimbd))