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