Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / net / smcroute / Makefile
1 #
2 # Copyright (C) 2019 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:=smcroute
11 PKG_VERSION:=2.4.4
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-2.0-or-later
14 PKG_LICENSE_FILES:=COPYING
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=https://github.com/troglobit/smcroute/releases/download/$(PKG_VERSION)
18 PKG_HASH:=431be94c46646767f69c85fee445277b7e765a55177d3ee29522416cfe2cc067
19
20 PKG_FIXUP:=autoreconf
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/smcroute
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Routing and Redirection
28 TITLE:=Static Multicast Routing Daemon
29 URL:=http://troglobit.com/smcroute.html
30 MAINTAINER:=Moritz Warning <moritzwarning@web.de>
31 endef
32
33 define Package/smcroute/description
34 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
35 endef
36
37 define Package/smcroute/conffiles
38 /etc/smcroute.conf
39 endef
40
41 CONFIGURE_ARGS += \
42 --without-libcap
43
44 define Package/smcroute/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_DIR) $(1)/etc/init.d/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcrouted $(1)/usr/sbin/
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcroutectl $(1)/usr/bin/
50 $(INSTALL_CONF) $(PKG_BUILD_DIR)/smcroute.conf $(1)/etc
51 $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
52 endef
53
54 $(eval $(call BuildPackage,smcroute))