[packages] igmpproxy: fix initscript (closes: #7577), bump release number
[openwrt/svn-archive/archive.git] / net / igmpproxy / Makefile
1 #
2 # Copyright (C) 2006-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=igmpproxy
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/igmpproxy
16 PKG_MD5SUM:=c56f41ec195bc1fe016369bf74efc5a1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/igmpproxy
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Multicast Routing Daemon
24 URL:=http://sourceforge.net/projects/igmpproxy
25 endef
26
27 define Package/igmpproxy/description
28 IGMPproxy is a simple dynamic Multicast Routing Daemon using
29 only IGMP signalling (Internet Group Management Protocol).
30 endef
31
32 define Package/igmpproxy/conffiles
33 /etc/igmpproxy.conf
34 endef
35
36 TARGET_CFLAGS += -Dlog=igmpproxy_log
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)/src \
40 CC="$(TARGET_CC)" \
41 CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
42 endef
43
44 define Package/igmpproxy/install
45 $(INSTALL_DIR) $(1)/etc
46 $(INSTALL_CONF) ./files/igmpproxy.conf $(1)/etc/
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/igmpproxy.init $(1)/etc/init.d/igmpproxy
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,igmpproxy))