c704004c68bcafa43e020f4a2408776bb112d471
[packages.git] / net / sshtunnel / Makefile
1
2 # Copyright (C) 2010 segal.di.ubi.pt 
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sshtunnel
11 PKG_VERSION:=3
12 PKG_RELEASE:=2
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/sshtunnel
17   SECTION:=net
18   CATEGORY:=Network
19   SUBMENU:=SSH
20   TITLE:=Manages Local and Remote openssh ssh(1) tunnels
21   MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
22   DEPENDS:=+openssh-client
23 endef
24
25 define Package/sshtunnel/description
26 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
27 endef
28
29 define Package/sshtunnel/conffiles
30 /etc/config/sshtunnel
31 endef
32
33 define Build/Compile
34 endef
35
36 define Package/sshtunnel/install
37         $(INSTALL_DIR) $(1)/etc/init.d
38         $(INSTALL_BIN) ./files/initd_sshtunnel $(1)/etc/init.d/sshtunnel
39         $(INSTALL_DIR) $(1)/usr/bin
40         $(INSTALL_BIN) ./files/sshtunnel.sh $(1)/usr/bin/
41         $(INSTALL_DIR) $(1)/etc/config
42         $(INSTALL_DATA) ./files/uci_sshtunnel $(1)/etc/config/sshtunnel
43 endef
44
45 $(eval $(call BuildPackage,sshtunnel))