openwrt-routing/ohybridproxy/Makefile

50 lines
1.5 KiB
Makefile
Raw Normal View History

2014-02-18 23:37:57 +01:00
#
# Copyright (C) 2012-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=ohybridproxy
PKG_SOURCE_VERSION:=504f334e7e718ef696c208f69da35f08f75aeb6c
PKG_VERSION:=2014-02-20-$(PKG_SOURCE_VERSION)
2014-02-18 23:37:57 +01:00
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/sbyx/ohybridproxy.git
PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/ohybridproxy
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=mdns/dns hybrid-proxy
URL:=https://github.com/sbyx/ohybridproxy
DEPENDS+=+libubox +mdnsd
endef
define Package/ohybridproxy/description
This package provides a statically configured daemon for translating DNS
requests to Multicast DNS and back again.
endef
define Package/ohybridproxy/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ohybridproxy $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_DATA) ./files/ohybridproxy.config $(1)/etc/config/ohybridproxy
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/ohybridproxy.init $(1)/etc/init.d/ohybridproxy
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_DATA) ./files/ohybridproxy.hotplug $(1)/etc/hotplug.d/iface/ohybridproxy
endef
$(eval $(call BuildPackage,ohybridproxy))