1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
  13. PKG_MD5SUM:=f86684b96e99d22b2e9d35dc63b0aa29
  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))