treewide: refresh hashes after move to use ZSTD as default
[feed/routing.git] / smcroute / 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 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=smcroute
10 PKG_VERSION:=2.0.0
11 PKG_RELEASE:=2
12 PKG_LICENSE:=GPL-2.0+
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/troglobit/smcroute/releases/download/$(PKG_VERSION)
16 PKG_MD5SUM:=cbf478e52ab9ae411adca41b9d22f68a
17
18 PKG_FIXUP:=autoreconf
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/smcroute
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Routing and Redirection
26 TITLE:=Static Multicast Routing Daemon
27 URL:=http://troglobit.com/smcroute.html
28 MAINTAINER:=Leonardo Brondani Schenkel <leonardo@schenkel.net>
29 endef
30
31 define Package/smcroute/description
32 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
33 endef
34
35 ifeq ($(HOST_OS),FreeBSD)
36 TARGET_CFLAGS += -fno-builtin-log
37 TARGET_LDFLAGS += -fno-builtin-log
38 endif
39
40 define Build/Compile
41 $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C $(PKG_BUILD_DIR) all
42 endef
43
44 define Package/smcroute/conffiles
45 /etc/smcroute.conf
46 endef
47
48 define Package/smcroute/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_DIR) $(1)/etc/init.d/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/smcroute $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mcsender $(1)/usr/bin/
54 $(INSTALL_CONF) $(PKG_BUILD_DIR)/smcroute.conf $(1)/etc
55 $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
56 endef
57
58 $(eval $(call BuildPackage,smcroute))