rtl-sdr: switch to git tarball
[feed/packages.git] / net / autossh / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
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:=autossh
11 PKG_VERSION:=1.4g
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=https://www.harding.motd.ca/autossh/
16 PKG_HASH:=5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277
17 PKG_LICENSE:=0BSD
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/autossh
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Autossh client
25 URL:=https://www.harding.motd.ca/autossh/
26 MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
27 SUBMENU:=SSH
28 endef
29
30 CONFIGURE_VARS += \
31 ac_cv_path_ssh=/usr/bin/ssh
32
33 define Package/autossh/install
34 $(INSTALL_DIR) $(1)/usr/sbin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
36 $(INSTALL_DIR) $(1)/etc/init.d
37 $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
38 $(INSTALL_DIR) $(1)/etc/config
39 $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
40 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
41 $(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh
42 endef
43
44 define Package/autossh/conffiles
45 /etc/config/autossh
46 endef
47
48 $(eval $(call BuildPackage,autossh))