eafa28922a15fa15487ab71854db56a71318fbd4
[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_VERSION:=2015-08-24
12 PKG_RELEASE:=3
13
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
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=8de9fa84e018e152e45c342f10b5b5140b63e4b1
19 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
20 PKG_LICENSE:=APACHE-2.0
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/omcproxy
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libubox +libubus
29 TITLE:=IGMPv3 and MLDv2 Multicast Proxy
30 endef
31
32 CMAKE_OPTIONS += -DWITH_LIBUBOX=1
33
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/
41 endef
42
43 $(eval $(call BuildPackage,omcproxy))