ohybridproxy: fix up Makefile
[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:=0dfef1eb5f067250a5f24a899536879ea4fdc4c5
11 PKG_SOURCE_DATE:=2020-05-22
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/sbyx/ohybridproxy.git
16 PKG_MIRROR_HASH:=f47904d8ac860b8b80cb9f99e094cd74e95464b5ed011a7adbfc3445dab598b3
17
18 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
19 PKG_LICENSE:=GPL-2.0-only
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 # Spammy debug builds for now
28 CMAKE_OPTIONS += -DL_LEVEL=7
29
30 define Package/ohybridproxy
31 SECTION:=net
32 CATEGORY:=Network
33 SUBMENU:=IP Addresses and Names
34 TITLE:=mdns/dns hybrid-proxy
35 URL:=https://github.com/sbyx/ohybridproxy
36 DEPENDS+=+libubox +mdnsd
37 endef
38
39 define Package/ohybridproxy/description
40 This package provides a statically configured daemon for translating DNS
41 requests to Multicast DNS and back again.
42 endef
43
44 define Package/ohybridproxy/install
45 $(INSTALL_DIR) $(1)/usr/sbin/
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ohybridproxy $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/config/
48 $(INSTALL_DATA) ./files/ohybridproxy.config $(1)/etc/config/ohybridproxy
49 $(INSTALL_DIR) $(1)/etc/init.d/
50 $(INSTALL_BIN) ./files/ohybridproxy.init $(1)/etc/init.d/ohybridproxy
51 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
52 $(INSTALL_DATA) ./files/ohybridproxy.hotplug $(1)/etc/hotplug.d/iface/ohybridproxy
53 endef
54
55 $(eval $(call BuildPackage,ohybridproxy))
56
57 define Package/zonestitcher
58 SECTION:=net
59 CATEGORY:=Network
60 SUBMENU:=IP Addresses and Names
61 TITLE:=dynamically combine multiple DNS zones into one
62 URL:=https://github.com/sbyx/ohybridproxy
63 DEPENDS+=+libubox
64 endef
65
66 define Package/zonestitcher/description
67 This package provides a statically configured daemon for translating DNS
68 requests to Multicast DNS and back again.
69 endef
70
71 define Package/zonestitcher/install
72 $(INSTALL_DIR) $(1)/usr/sbin/
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/zonestitcher $(1)/usr/sbin/
74 endef
75
76 $(eval $(call BuildPackage,zonestitcher))