olsrd: change name of PID-file for olsrd4 from '/var/run/olsrd4.pid' to '/var/run...
[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:=3a9489615c488afa85a823a40aea89b39bbac391
11 PKG_VERSION:=2014-06-19-$(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 # Spammy debug builds for now
25 CMAKE_OPTIONS += -DL_LEVEL=7
26
27 define Package/ohybridproxy
28 SECTION:=net
29 CATEGORY:=Network
30 SUBMENU:=IP Addresses and Names
31 TITLE:=mdns/dns hybrid-proxy
32 URL:=https://github.com/sbyx/ohybridproxy
33 DEPENDS+=+libubox +mdnsd
34 endef
35
36 define Package/ohybridproxy/description
37 This package provides a statically configured daemon for translating DNS
38 requests to Multicast DNS and back again.
39 endef
40
41 define Package/ohybridproxy/install
42 $(INSTALL_DIR) $(1)/usr/sbin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ohybridproxy $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/config/
45 $(INSTALL_DATA) ./files/ohybridproxy.config $(1)/etc/config/ohybridproxy
46 $(INSTALL_DIR) $(1)/etc/init.d/
47 $(INSTALL_BIN) ./files/ohybridproxy.init $(1)/etc/init.d/ohybridproxy
48 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
49 $(INSTALL_DATA) ./files/ohybridproxy.hotplug $(1)/etc/hotplug.d/iface/ohybridproxy
50 endef
51
52 $(eval $(call BuildPackage,ohybridproxy))