Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2010-2015 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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sshtunnel
  9. PKG_VERSION:=4
  10. PKG_RELEASE:=5
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/sshtunnel
  15. SECTION:=net
  16. CATEGORY:=Network
  17. SUBMENU:=SSH
  18. TITLE:=Manages local and remote openssh ssh(1) tunnels
  19. DEPENDS:=+openssh-client
  20. PKGARCH:=all
  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)/etc/config
  34. $(INSTALL_CONF) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
  35. endef
  36. $(eval $(call BuildPackage,sshtunnel))