You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 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. PKG_NAME:=vncrepeater
  9. PKG_VERSION:=0.14
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Jirka Spicak <robutek@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_SOURCE:=repeater014.zip
  14. PKG_SOURCE_URL:=http://jtko.mbnet.fi/uvncrepeater
  15. PKG_HASH:=79178e9baa9cac05f26e43f742933958707cb5c0632c51a5706b13922f3bb5b0
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/vncrepeater
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libstdcpp
  22. TITLE:=UltraVNC repeater for Linux
  23. URL:=http://www.uvnc.com/addons/repeater.html
  24. endef
  25. define Package/vncrepeater/conffiles
  26. /etc/vncrepeater.conf
  27. endef
  28. define Package/vncrepeater/description
  29. Viewer can be behind Nat router or directly connected to the internet
  30. instead of forwarding serveral ports, you only need to forward 1 port.
  31. If the PC that runs the Repeater has access to the local DNS server,
  32. you can use your local DNS names instead of 10.10.10.12.
  33. This could be handy when you have a dynamic DHCP server allocating
  34. ip adresses for your PC.
  35. endef
  36. define Build/Prepare
  37. mkdir -p $(PKG_BUILD_DIR)
  38. $(PKG_UNPACK)
  39. $(CP) $(PKG_BUILD_DIR)/../Ver014/* $(PKG_BUILD_DIR)/
  40. rm -rf $(PKG_BUILD_DIR)/../Ver014/
  41. $(Build/Patch)
  42. endef
  43. define Build/Compile
  44. $(call Build/Compile/Default, \
  45. CC="$(TARGET_CXX)" \
  46. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-rtti" \
  47. repeater \
  48. )
  49. endef
  50. define Package/vncrepeater/install
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
  53. $(INSTALL_DIR) $(1)/etc
  54. $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
  55. endef
  56. $(eval $(call BuildPackage,vncrepeater))