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.

48 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. # Copyright (C) 2010 segal.di.ubi.pt
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=sshtunnel
  10. PKG_VERSION:=3
  11. PKG_RELEASE:=3
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/sshtunnel
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=SSH
  19. TITLE:=Manages Local and Remote openssh ssh(1) tunnels
  20. DEPENDS:=+openssh-client
  21. endef
  22. define Package/sshtunnel/description
  23. Creates openssh ssh(1) Local and Remote tunnels configured in UCI file. Can be used to allow remote connections, possibly over NATed connections or without public IP/DNS
  24. endef
  25. define Package/sshtunnel/conffiles
  26. /etc/config/sshtunnel
  27. endef
  28. define Build/Compile
  29. endef
  30. define Package/sshtunnel/install
  31. $(INSTALL_DIR) $(1)/etc/init.d
  32. $(INSTALL_BIN) ./files/sshtunnel.init $(1)/etc/init.d/sshtunnel
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) ./files/sshtunnel.sh $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/etc/config
  36. $(INSTALL_DATA) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
  37. endef
  38. $(eval $(call BuildPackage,sshtunnel))