2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://www.harding.motd.ca
/autossh
/
16 PKG_MD5SUM
:=8f9aa006f6f69e912d3c2f504622d6f7
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/autossh
24 URL
:=http
://www.harding.motd.ca
/autossh
/
29 $(call Build
/Compile
/Default
, -f Makefile \
30 CFLAGS
="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
35 define Package
/autossh
/install
36 $(INSTALL_DIR
) $(1)/usr
/sbin
37 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/autossh
$(1)/usr
/sbin
/
38 $(INSTALL_DIR
) $(1)/etc
/init.d
39 $(INSTALL_BIN
) .
/files
/autossh.init
$(1)/etc
/init.d
/autossh
40 $(INSTALL_DIR
) $(1)/etc
/config
41 $(INSTALL_DATA
) .
/files
/autossh.config
$(1)/etc
/config
/autossh
44 $(eval
$(call BuildPackage
,autossh
))