diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-29 12:45:48 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-29 12:45:48 +0000 |
commit | 1bf1a98e7616526cde3198f63e1e1bace774e274 (patch) | |
tree | 8607be037bc70d6abdbb1637fd5c09c7eec6c24a /openwrt/package/autossh/Makefile | |
parent | c42f176ad2b435cfcd54c417e4ed62b1dcaa84ab (diff) |
add autossh from Robert Berkowitz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3547 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/autossh/Makefile')
-rw-r--r-- | openwrt/package/autossh/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/openwrt/package/autossh/Makefile b/openwrt/package/autossh/Makefile new file mode 100644 index 000000000..2d6e53901 --- /dev/null +++ b/openwrt/package/autossh/Makefile @@ -0,0 +1,39 @@ +# $Id$ +# +# Adjust SSH below to suit. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=autossh +PKG_VERSION:=1.3 +PKG_RELEASE:=1 +PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f +PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +VER=1.3 +SSH=/usr/bin/ssh + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,AUTOSSH,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + cp $(PKG_BUILD_DIR)/Makefile.linux $(PKG_BUILD_DIR)/Makefile + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \ + BINDIR=/usr/bin MANDIR=/usr/man + touch $@ + +$(IPKG_AUTOSSH): + mkdir -p $(IDIR_AUTOSSH)/usr/bin + cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_AUTOSSH)/usr/bin/ + $(RSTRIP) $(IDIR_AUTOSSH) + $(IPKG_BUILD) $(IDIR_AUTOSSH) $(PACKAGE_DIR) |