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.

52 lines
1.3 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.4e
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
  13. PKG_HASH:=9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156
  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:=http://www.harding.motd.ca/autossh/
  21. MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
  22. SUBMENU:=SSH
  23. endef
  24. define Build/Compile
  25. $(call Build/Compile/Default, -f Makefile \
  26. CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
  27. all \
  28. )
  29. endef
  30. define Package/autossh/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
  35. $(INSTALL_DIR) $(1)/etc/config
  36. $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
  37. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  38. $(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh
  39. endef
  40. define Package/autossh/conffiles
  41. /etc/config/autossh
  42. endef
  43. $(eval $(call BuildPackage,autossh))