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.

70 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:=1
  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_MD5SUM:=3005ebbb2f9442cbea4cbcaa71925dbf
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/uclibc++.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/vncrepeater
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=$(CXX_DEPENDS)
  23. TITLE:=UltraVNC repeater for Linux
  24. URL:=http://www.uvnc.com/addons/repeater.html
  25. endef
  26. define Package/vncrepeater/conffiles
  27. /etc/vncrepeater.conf
  28. endef
  29. define Package/vncrepeater/description
  30. Viewer can be behind Nat router or directly connected to the internet
  31. instead of forwarding serveral ports, you only need to forward 1 port.
  32. If the PC that runs the Repeater has access to the local DNS server,
  33. you can use your local DNS names instead of 10.10.10.12.
  34. This could be handy when you have a dynamic DHCP server allocating
  35. ip adresses for your PC.
  36. endef
  37. define Build/Prepare
  38. mkdir -p $(PKG_BUILD_DIR)
  39. $(PKG_UNPACK)
  40. $(CP) $(PKG_BUILD_DIR)/../Ver014/* $(PKG_BUILD_DIR)/
  41. rm -rf $(PKG_BUILD_DIR)/../Ver014/
  42. $(Build/Patch)
  43. endef
  44. define Build/Compile
  45. $(call Build/Compile/Default, \
  46. CC="$(TARGET_CXX)" \
  47. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-rtti" \
  48. repeater \
  49. )
  50. endef
  51. define Package/vncrepeater/install
  52. $(INSTALL_DIR) $(1)/usr/sbin
  53. $(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
  54. $(INSTALL_DIR) $(1)/etc
  55. $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
  56. endef
  57. $(eval $(call BuildPackage,vncrepeater))