babels: add SPDX tag
[feed/routing.git] / mcast-tools / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mcast-tools
11 PKG_SOURCE_VERSION:=e5c860f174c6deb4cc30211e895831aca0a55b7f
12 PKG_VERSION:=2014-04-06
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/F0rth/mcast-tools.git
17 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
18
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 CONFIGURE_ARGS+=--enable-mldv2host --disable-pim6dd --disable-mcastread --disable-mcastsend --disable-mfc --disable-mtrace6 --disable-pmsft
25 TARGET_CFLAGS+=-DIP6OPT_RTALERT_LEN=4 -D_GNU_SOURCE
26
27 define Package/pim6sd
28 SECTION:=net
29 CATEGORY:=Network
30 SUBMENU:=Routing and Redirection
31 TITLE:=Sparse PIM IPv6 Multicast Routing Daemon
32 endef
33
34 define Package/pim6sd/description
35 pim6sd is an IPv6 multicast routing daemon, which supports PIMv2(Protocol
36 Independent Multicast Version 2) sparse mode and SSM(Source-Specific-
37 Multicast) for IPv6.
38 endef
39
40 define Package/pim6sd/conffiles
41 /etc/pim6sd.conf
42 endef
43
44 define Build/Prepare
45 $(call Build/Prepare/Default)
46 ( cd $(PKG_BUILD_DIR) ; \
47 aclocal ; \
48 autoheader ; \
49 automake --add-missing; \
50 autoconf ; \
51 )
52 endef
53
54 define Package/pim6sd/install
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_CONF) ./files/pim6sd.conf $(1)/etc
57 $(INSTALL_BIN) ./files/pim6sd.init $(1)/etc/init.d/pim6sd
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pim6sd/pim6sd $(1)/usr/sbin/pim6sd
60 endef
61
62 $(eval $(call BuildPackage,pim6sd))