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
:=0e7ec62eeca5d1b197f3ef2d0f0d417f
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/autossh
28 DEPENDS
:=+openssh-client
30 URL
:=http
://www.harding.motd.ca
/autossh
/
34 $(call Build
/Compile
/Default
, -f Makefile.linux \
35 CFLAGS
="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
40 define Package
/autossh
/install
41 install -d
-m0755
$(1)/usr
/sbin
42 install -m0755
$(PKG_BUILD_DIR
)/autossh
$(1)/usr
/sbin
/
45 $(eval
$(call BuildPackage
,autossh
))