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
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/smcroute
23 SUBMENU
:=Routing and Redirection
24 TITLE
:=Static Multicast Routing Daemon
25 URL
:=http
://troglobit.com
/smcroute.html
26 MAINTAINER
:=Leonardo Brondani Schenkel
<leonardo@schenkel.net
>
29 define Package
/smcroute
/description
30 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
33 ifeq ($(HOST_OS
),FreeBSD
)
34 TARGET_CFLAGS
+= -fno-builtin-log
35 TARGET_LDFLAGS
+= -fno-builtin-log
39 $(MAKE
) CC
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C
$(PKG_BUILD_DIR
) all
42 define Package
/smcroute
/conffiles
46 define Package
/smcroute
/install
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_DIR
) $(1)/usr
/bin
49 $(INSTALL_DIR
) $(1)/etc
/init.d
/
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smcroute
$(1)/usr
/sbin
/
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mcsender
$(1)/usr
/bin
/
52 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/smcroute.conf
$(1)/etc
53 $(INSTALL_BIN
) .
/files
/smcroute.init
$(1)/etc
/init.d
/smcroute
56 $(eval
$(call BuildPackage
,smcroute
))