You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=autossh
  9. PKG_VERSION:=1.4g
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=https://www.harding.motd.ca/autossh/
  13. PKG_HASH:=5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277
  14. PKG_LICENSE:=0BSD
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/autossh
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=Autossh client
  20. URL:=https://www.harding.motd.ca/autossh/
  21. MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
  22. SUBMENU:=SSH
  23. endef
  24. CONFIGURE_VARS += \
  25. ac_cv_path_ssh=/usr/bin/ssh
  26. define Package/autossh/install
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
  31. $(INSTALL_DIR) $(1)/etc/config
  32. $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
  33. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  34. $(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh
  35. endef
  36. define Package/autossh/conffiles
  37. /etc/config/autossh
  38. endef
  39. $(eval $(call BuildPackage,autossh))