2006-10-30 13:51:50 +00:00
|
|
|
#
|
2008-04-13 08:48:30 +00:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-07-31 05:00:07 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=autossh
|
2008-04-13 08:48:30 +00:00
|
|
|
PKG_VERSION:=1.4b
|
2006-07-31 05:00:07 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
|
2008-04-13 08:48:30 +00:00
|
|
|
PKG_MD5SUM:=8f9aa006f6f69e912d3c2f504622d6f7
|
2006-07-31 05:00:07 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/autossh
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Autossh client
|
2006-10-30 13:51:50 +00:00
|
|
|
URL:=http://www.harding.motd.ca/autossh/
|
2008-04-13 12:06:07 +00:00
|
|
|
SUBMENU:=SSH
|
2006-07-31 05:00:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-05-07 11:29:22 +00:00
|
|
|
$(call Build/Compile/Default, -f Makefile \
|
2006-08-20 23:29:29 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
|
|
|
|
all \
|
|
|
|
)
|
2006-07-31 05:00:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/autossh/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
|
2007-11-01 17:15:42 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
|
2006-07-31 05:00:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,autossh))
|