2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2015-08-24
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=https://github.com/sbyx/omcproxy.git
18 PKG_SOURCE_VERSION:=8df8017b8bc6d31e975d72361d8f9512e743d0c7
19 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
20 PKG_LICENSE:=APACHE-2.0
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
25 define Package/omcproxy
28 DEPENDS:=+libubox +libubus
29 TITLE:=IGMPv3 and MLDv2 Multicast Proxy
32 CMAKE_OPTIONS += -DWITH_LIBUBOX=1 -DWITH_UBUS=1
34 define Package/omcproxy/install
35 $(INSTALL_DIR) $(1)/etc/config
36 $(INSTALL_CONF) ./files/omcproxy.config $(1)/etc/config/omcproxy
37 $(INSTALL_DIR) $(1)/etc/init.d
38 $(INSTALL_BIN) ./files/omcproxy.init $(1)/etc/init.d/omcproxy
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/omcproxy $(1)/usr/sbin/
43 $(eval $(call BuildPackage,omcproxy))