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
|
|
|
|
PKG_VERSION:=1.3
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-08-20 23:29:29 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-31 05:00:07 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2006-08-20 23:29:29 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh
|
|
|
|
PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f
|
2006-07-31 05:00:07 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/autossh
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+openssh-client
|
|
|
|
TITLE:=Autossh client
|
|
|
|
DESCRIPTION:=Autossh client
|
|
|
|
URL:=http://www.harding.motd.ca/autossh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-08-20 23:29:29 +00:00
|
|
|
$(call Build/Compile/Default, -f Makefile.linux \
|
|
|
|
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-08-20 23:29:29 +00:00
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
|
2006-07-31 05:00:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,autossh))
|