Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 <[email protected]>
  15. include $(INCLUDE_DIR)/package.mk
  16. PKG_FIXUP:=autoreconf
  17. define Package/igmpproxy
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Routing and Redirection
  21. DEPENDS:=+USE_EGLIBC:librt
  22. TITLE:=Multicast Routing Daemon
  23. URL:=http://sourceforge.net/projects/igmpproxy
  24. endef
  25. define Package/igmpproxy/description
  26. IGMPproxy is a simple dynamic Multicast Routing Daemon using
  27. only IGMP signalling (Internet Group Management Protocol).
  28. endef
  29. define Package/igmpproxy/conffiles
  30. /etc/config/igmpproxy
  31. endef
  32. TARGET_CFLAGS += -Dlog=igmpproxy_log
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR)/src \
  35. CC="$(TARGET_CC)" \
  36. CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
  37. endef
  38. define Package/igmpproxy/install
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/igmpproxy.config $(1)/etc/config/igmpproxy
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/igmpproxy.init $(1)/etc/init.d/igmpproxy
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/igmpproxy $(1)/usr/sbin/
  45. endef
  46. $(eval $(call BuildPackage,igmpproxy))