net/quagga: fix memory leak when deleting a community
[openwrt/svn-archive/archive.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 TITLE:=Static multicast routing daemon
23 URL:=http://www.cschill.de/smcroute/
24 endef
25
26 define Package/smcroute/description
27 SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
28 endef
29
30
31 ifeq ($(HOST_OS),FreeBSD)
32 TARGET_CFLAGS += -fno-builtin-log
33 TARGET_LDFLAGS += -fno-builtin-log
34 endif
35
36 define Build/Compile
37 $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C $(PKG_BUILD_DIR)/src all
38 endef
39
40 define Package/smcroute/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_DIR) $(1)/etc/init.d/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcroute $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mcsender $(1)/usr/bin/
46 $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
47 endef
48
49 $(eval $(call BuildPackage,smcroute))