kismet: moved to github
[packages.git] / net / smcroute / Makefile
1 #
2 # Copyright (C) 2010 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:=0.92
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
14 PKG_SOURCE_URL:=http://www.cschill.de/smcroute
15 PKG_MD5SUM:=2b50e7166606ec90e09682399e69c4a6
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/smcroute
20         SECTION:=net
21         CATEGORY:=Network
22         SUBMENU:=Routing and Redirection
23         TITLE:=Static multicast routing daemon
24         URL:=http://www.cschill.de/smcroute/
25 endef
26
27 define Package/smcroute/description
28  SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
29 endef
30
31
32 ifeq ($(HOST_OS),FreeBSD)
33   TARGET_CFLAGS += -fno-builtin-log
34   TARGET_LDFLAGS += -fno-builtin-log
35 endif
36
37 define Build/Compile
38          $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C $(PKG_BUILD_DIR)/src all
39 endef
40
41 define Package/smcroute/install
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(INSTALL_DIR) $(1)/usr/bin
44         $(INSTALL_DIR) $(1)/etc/init.d/
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcroute $(1)/usr/sbin/
46         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mcsender $(1)/usr/bin/
47         $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
48 endef
49
50 $(eval $(call BuildPackage,smcroute))