Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=ohybridproxy
  8. PKG_SOURCE_VERSION:=8a28ae92c97099e771c9ede5641e3782ae809c27
  9. PKG_VERSION:=2016-06-28-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/sbyx/ohybridproxy.git
  13. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. # Spammy debug builds for now
  20. CMAKE_OPTIONS += -DL_LEVEL=7
  21. define Package/ohybridproxy
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=IP Addresses and Names
  25. TITLE:=mdns/dns hybrid-proxy
  26. URL:=https://github.com/sbyx/ohybridproxy
  27. DEPENDS+=+libubox +mdnsd
  28. endef
  29. define Package/ohybridproxy/description
  30. This package provides a statically configured daemon for translating DNS
  31. requests to Multicast DNS and back again.
  32. endef
  33. define Package/ohybridproxy/install
  34. $(INSTALL_DIR) $(1)/usr/sbin/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ohybridproxy $(1)/usr/sbin/
  36. $(INSTALL_DIR) $(1)/etc/config/
  37. $(INSTALL_DATA) ./files/ohybridproxy.config $(1)/etc/config/ohybridproxy
  38. $(INSTALL_DIR) $(1)/etc/init.d/
  39. $(INSTALL_BIN) ./files/ohybridproxy.init $(1)/etc/init.d/ohybridproxy
  40. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  41. $(INSTALL_DATA) ./files/ohybridproxy.hotplug $(1)/etc/hotplug.d/iface/ohybridproxy
  42. endef
  43. $(eval $(call BuildPackage,ohybridproxy))
  44. define Package/zonestitcher
  45. SECTION:=net
  46. CATEGORY:=Network
  47. SUBMENU:=IP Addresses and Names
  48. TITLE:=dynamically combine multiple DNS zones into one
  49. URL:=https://github.com/sbyx/ohybridproxy
  50. DEPENDS+=+libubox
  51. endef
  52. define Package/zonestitcher/description
  53. This package provides a statically configured daemon for translating DNS
  54. requests to Multicast DNS and back again.
  55. endef
  56. define Package/zonestitcher/install
  57. $(INSTALL_DIR) $(1)/usr/sbin/
  58. $(INSTALL_BIN) $(PKG_BUILD_DIR)/zonestitcher $(1)/usr/sbin/
  59. endef
  60. $(eval $(call BuildPackage,zonestitcher))