Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=igmpproxy
  9. PKG_VERSION:=0.1
  10. PKG_RELEASE:=8
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/igmpproxy
  13. PKG_MD5SUM:=c56f41ec195bc1fe016369bf74efc5a1
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
  15. include $(INCLUDE_DIR)/package.mk
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=GPL-2.0+
  18. define Package/igmpproxy
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Routing and Redirection
  22. DEPENDS:=+USE_GLIBC:librt
  23. TITLE:=Multicast Routing Daemon
  24. URL:=http://sourceforge.net/projects/igmpproxy
  25. endef
  26. define Package/igmpproxy/description
  27. IGMPproxy is a simple dynamic Multicast Routing Daemon using
  28. only IGMP signalling (Internet Group Management Protocol).
  29. endef
  30. define Package/igmpproxy/conffiles
  31. /etc/config/igmpproxy
  32. endef
  33. TARGET_CFLAGS += -Dlog=igmpproxy_log
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR)/src \
  36. CC="$(TARGET_CC)" \
  37. CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
  38. endef
  39. define Package/igmpproxy/install
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) ./files/igmpproxy.config $(1)/etc/config/igmpproxy
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/igmpproxy.init $(1)/etc/init.d/igmpproxy
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
  46. endef
  47. $(eval $(call BuildPackage,igmpproxy))