omcproxy: switch to OpenWrt github repo
[openwrt/openwrt.git] / package / network / services / omcproxy / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=omcproxy
11 PKG_RELEASE:=6
12
13 PKG_SOURCE_URL:=https://github.com/openwrt/omcproxy.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_DATE:=2018-12-14
16 PKG_SOURCE_VERSION:=722151f04348cf1b759613c087bced52fb45790a
17 PKG_MIRROR_HASH:=4d218923c149e2dc9010b8932ea92ab7e06f30df06814ffedaba7e081f2d4640
18 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
19 PKG_LICENSE:=Apache-2.0
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/omcproxy
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libubox +libubus
28 TITLE:=IGMPv3 and MLDv2 Multicast Proxy
29 endef
30
31 CMAKE_OPTIONS += -DWITH_LIBUBOX=1
32
33 define Package/omcproxy/install
34 $(INSTALL_DIR) $(1)/etc/config
35 $(INSTALL_CONF) ./files/omcproxy.config $(1)/etc/config/omcproxy
36 $(INSTALL_DIR) $(1)/etc/init.d
37 $(INSTALL_BIN) ./files/omcproxy.init $(1)/etc/init.d/omcproxy
38 $(INSTALL_DIR) $(1)/usr/sbin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/omcproxy $(1)/usr/sbin/
40 endef
41
42 $(eval $(call BuildPackage,omcproxy))