Makefile 1.1 KB

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