7d08806e44a49f6e4b83e5c79a5a471cd77b91a1
[feed/routing.git] / ohybridproxy / Makefile
1 #
2 # Copyright (C) 2012-2013 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
9 PKG_NAME:=ohybridproxy
10 PKG_SOURCE_VERSION:=504f334e7e718ef696c208f69da35f08f75aeb6c
11 PKG_VERSION:=2014-02-20-$(PKG_SOURCE_VERSION)
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://github.com/sbyx/ohybridproxy.git
16 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/ohybridproxy
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=IP Addresses and Names
28 TITLE:=mdns/dns hybrid-proxy
29 URL:=https://github.com/sbyx/ohybridproxy
30 DEPENDS+=+libubox +mdnsd
31 endef
32
33 define Package/ohybridproxy/description
34 This package provides a statically configured daemon for translating DNS
35 requests to Multicast DNS and back again.
36 endef
37
38 define Package/ohybridproxy/install
39 $(INSTALL_DIR) $(1)/usr/sbin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ohybridproxy $(1)/usr/sbin/
41 $(INSTALL_DIR) $(1)/etc/config/
42 $(INSTALL_DATA) ./files/ohybridproxy.config $(1)/etc/config/ohybridproxy
43 $(INSTALL_DIR) $(1)/etc/init.d/
44 $(INSTALL_BIN) ./files/ohybridproxy.init $(1)/etc/init.d/ohybridproxy
45 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
46 $(INSTALL_DATA) ./files/ohybridproxy.hotplug $(1)/etc/hotplug.d/iface/ohybridproxy
47 endef
48
49 $(eval $(call BuildPackage,ohybridproxy))