1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2015 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:=omcproxy
  9. PKG_RELEASE:=3
  10. PKG_SOURCE_URL:=https://github.com/sbyx/omcproxy.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2015-08-24
  13. PKG_SOURCE_VERSION:=8de9fa84e018e152e45c342f10b5b5140b63e4b1
  14. PKG_MIRROR_HASH:=2c9768170235f91a48252c83ef944e6ed925c167c8fe30c0dacf42c3daba86fc
  15. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  16. PKG_LICENSE:=Apache-2.0
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/omcproxy
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libubox +libubus
  23. TITLE:=IGMPv3 and MLDv2 Multicast Proxy
  24. endef
  25. CMAKE_OPTIONS += -DWITH_LIBUBOX=1
  26. define Package/omcproxy/install
  27. $(INSTALL_DIR) $(1)/etc/config
  28. $(INSTALL_CONF) ./files/omcproxy.config $(1)/etc/config/omcproxy
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/omcproxy.init $(1)/etc/init.d/omcproxy
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/omcproxy $(1)/usr/sbin/
  33. endef
  34. $(eval $(call BuildPackage,omcproxy))