Makefile 1.2 KB

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