Add more license tags with SPDX identifiers
[openwrt.git] / package / network / services / igmpproxy / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=8
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/igmpproxy
16 PKG_MD5SUM:=c56f41ec195bc1fe016369bf74efc5a1
17 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
18
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=GPL.txt
21
22 include $(INCLUDE_DIR)/package.mk
23
24 PKG_FIXUP:=autoreconf
25 PKG_LICENSE:=GPL-2.0+
26
27 define Package/igmpproxy
28   SECTION:=net
29   CATEGORY:=Network
30   SUBMENU:=Routing and Redirection
31   DEPENDS:=+USE_EGLIBC:librt
32   TITLE:=Multicast Routing Daemon
33   URL:=http://sourceforge.net/projects/igmpproxy
34 endef
35
36 define Package/igmpproxy/description
37         IGMPproxy is a simple dynamic Multicast Routing Daemon using
38         only IGMP signalling (Internet Group Management Protocol).
39 endef
40
41 define Package/igmpproxy/conffiles
42 /etc/config/igmpproxy
43 endef
44
45 TARGET_CFLAGS += -Dlog=igmpproxy_log
46
47 define Build/Compile
48         $(MAKE) -C $(PKG_BUILD_DIR)/src \
49                 CC="$(TARGET_CC)" \
50                 CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
51 endef
52
53 define Package/igmpproxy/install
54         $(INSTALL_DIR) $(1)/etc/config
55         $(INSTALL_CONF) ./files/igmpproxy.config $(1)/etc/config/igmpproxy
56         $(INSTALL_DIR) $(1)/etc/init.d
57         $(INSTALL_BIN) ./files/igmpproxy.init $(1)/etc/init.d/igmpproxy
58         $(INSTALL_DIR) $(1)/usr/sbin
59         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
60 endef
61
62 $(eval $(call BuildPackage,igmpproxy))