2010-04-23 14:48:26 +00:00
|
|
|
#
|
2011-11-17 11:09:00 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
2010-04-23 14:48:26 +00:00
|
|
|
# Copyright (C) 2010 segal.di.ubi.pt
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sshtunnel
|
2010-12-18 23:50:38 +00:00
|
|
|
PKG_VERSION:=3
|
2011-11-17 11:09:00 +00:00
|
|
|
PKG_RELEASE:=3
|
2010-04-23 14:48:26 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/sshtunnel
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-10-05 21:51:46 +00:00
|
|
|
SUBMENU:=SSH
|
2010-04-23 14:48:26 +00:00
|
|
|
TITLE:=Manages Local and Remote openssh ssh(1) tunnels
|
|
|
|
MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
|
|
|
DEPENDS:=+openssh-client
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sshtunnel/description
|
2010-10-05 21:51:46 +00:00
|
|
|
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
|
2010-04-23 14:48:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sshtunnel/conffiles
|
|
|
|
/etc/config/sshtunnel
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sshtunnel/install
|
2010-12-19 01:09:10 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2011-11-17 11:09:00 +00:00
|
|
|
$(INSTALL_BIN) ./files/sshtunnel.init $(1)/etc/init.d/sshtunnel
|
2010-12-19 01:09:10 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) ./files/sshtunnel.sh $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
|
2010-04-23 14:48:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sshtunnel))
|