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