Branch oldpackages for 14.07
[14.07/packages.git] / net / sshtunnel / Makefile
1 #
2 # Copyright (C) 2010-2011 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sshtunnel
12 PKG_VERSION:=3
13 PKG_RELEASE:=3
14
15 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/sshtunnel
20   SECTION:=net
21   CATEGORY:=Network
22   SUBMENU:=SSH
23   TITLE:=Manages Local and Remote openssh ssh(1) tunnels
24   DEPENDS:=+openssh-client
25 endef
26
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
29 endef
30
31 define Package/sshtunnel/conffiles
32 /etc/config/sshtunnel
33 endef
34
35 define Build/Compile
36 endef
37
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
45 endef
46
47 $(eval $(call BuildPackage,sshtunnel))