2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
17 PKG_MD5SUM:=a5497938986f0c179926f1ebba603767
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
23 define Package/autossh
27 URL:=http://www.harding.motd.ca/autossh/
32 $(call Build/Compile/Default, -f Makefile \
33 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
38 define Package/autossh/install
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
43 $(INSTALL_DIR) $(1)/etc/config
44 $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
47 $(eval $(call BuildPackage,autossh))