Add a default configuration file
[openwrt/svn-archive/archive.git] / net / igmpproxy / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=igmpproxy
12 PKG_VERSION:=0.1-beta2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/igmpproxy
17 PKG_MD5SUM:=2a5a59480f44d4b14077a6b5319e9940
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/igmpproxy
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Multicast Routing Daemon
28 DESCRIPTION:=\
29 IGMPproxy is a simple dynamic Multicast Routing Daemon using \\\
30 only IGMP signalling (Internet Group Management Protocol).
31 URL:=http://sourceforge.net/projects/igmpproxy
32 endef
33
34 define Package/igmpproxy/conffiles
35 /etc/igmpproxy.conf
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)/src \
40 CC="$(TARGET_CC)" \
41 CFLAGS="$(TARGET_CFLAGS)"
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)/usr/sbin $(1)/etc
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,igmpproxy))