Merge pull request #1255 from samm-git/master
[feed/packages.git] / net / sshtunnel / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sshtunnel
12 PKG_VERSION:=3
13 PKG_RELEASE:=3
14 PKG_LICENSE:=GPL-2.0+
15
16 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sshtunnel
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=SSH
24 TITLE:=Manages Local and Remote openssh ssh(1) tunnels
25 DEPENDS:=+openssh-client
26 endef
27
28 define Package/sshtunnel/description
29 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
30 endef
31
32 define Package/sshtunnel/conffiles
33 /etc/config/sshtunnel
34 endef
35
36 define Build/Compile
37 endef
38
39 define Package/sshtunnel/install
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/sshtunnel.init $(1)/etc/init.d/sshtunnel
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) ./files/sshtunnel.sh $(1)/usr/bin/
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_DATA) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
46 endef
47
48 $(eval $(call BuildPackage,sshtunnel))