2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-07-31 05:00:07 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=autossh
|
2007-05-07 11:29:22 +00:00
|
|
|
PKG_VERSION:=1.4a
|
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/
|
2007-05-07 11:29:22 +00:00
|
|
|
PKG_MD5SUM:=a5497938986f0c179926f1ebba603767
|
2006-07-31 05:00:07 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
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/
|
2007-10-18 18:37:22 +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))
|