2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=ftp
://troglobit.com
/smcroute
/
16 PKG_MD5SUM
:=cbf478e52ab9ae411adca41b9d22f68a
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/smcroute
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
>
31 define Package
/smcroute
/description
32 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
35 ifeq ($(HOST_OS
),FreeBSD
)
36 TARGET_CFLAGS
+= -fno-builtin-log
37 TARGET_LDFLAGS
+= -fno-builtin-log
41 $(MAKE
) CC
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C
$(PKG_BUILD_DIR
) all
44 define Package
/smcroute
/conffiles
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
58 $(eval
$(call BuildPackage
,smcroute
))