2 # Copyright (C) 2010-2011 OpenWrt.org
3 # Copyright (C) 2010 segal.di.ubi.pt
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
17 include $(INCLUDE_DIR)/package.mk
19 define Package/sshtunnel
23 TITLE:=Manages Local and Remote openssh ssh(1) tunnels
24 DEPENDS:=+openssh-client
27 define Package/sshtunnel/description
28 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
31 define Package/sshtunnel/conffiles
38 define Package/sshtunnel/install
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/sshtunnel.init $(1)/etc/init.d/sshtunnel
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) ./files/sshtunnel.sh $(1)/usr/bin/
43 $(INSTALL_DIR) $(1)/etc/config
44 $(INSTALL_DATA) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
47 $(eval $(call BuildPackage,sshtunnel))