Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:=9
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(PROJECT_GIT)/omcproxy.git
  12. PKG_SOURCE_DATE:=2018-12-14
  13. PKG_SOURCE_VERSION:=722151f04348cf1b759613c087bced52fb45790a
  14. PKG_MIRROR_HASH:=4d218923c149e2dc9010b8932ea92ab7e06f30df06814ffedaba7e081f2d4640
  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. define Package/omcproxy/conffiles
  26. /etc/config/omcproxy
  27. endef
  28. CMAKE_OPTIONS += -DWITH_LIBUBOX=1
  29. define Package/omcproxy/install
  30. $(INSTALL_DIR) $(1)/etc/config
  31. $(INSTALL_CONF) ./files/omcproxy.config $(1)/etc/config/omcproxy
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/omcproxy.init $(1)/etc/init.d/omcproxy
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/omcproxy $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,omcproxy))