X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fautossh%2FMakefile;h=70c4c766003acc32a7e9faf7e6db8a2acc054aaf;hp=670c7ffe963d1a2307ba235138a3023452bd6be2;hb=2216dbf4f065c4818bee971138e7e6a2efc10f36;hpb=a7f962687005e09bf2ec54d3d43c04b1a0d6ca19 diff --git a/net/autossh/Makefile b/net/autossh/Makefile index 670c7ffe96..70c4c76600 100644 --- a/net/autossh/Makefile +++ b/net/autossh/Makefile @@ -1,44 +1,50 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 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 +PKG_VERSION:=1.4b +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/ -PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f -PKG_CAT:=zcat - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_MD5SUM:=8f9aa006f6f69e912d3c2f504622d6f7 include $(INCLUDE_DIR)/package.mk define Package/autossh SECTION:=net CATEGORY:=Network - DEPENDS:=+openssh-client TITLE:=Autossh client URL:=http://www.harding.motd.ca/autossh/ + SUBMENU:=SSH endef define Build/Compile - $(call Build/Compile/Default, -f Makefile.linux \ + $(call Build/Compile/Default, -f Makefile \ CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \ all \ ) endef define Package/autossh/install - install -d -m0755 $(1)/usr/sbin - install -m0755 $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/ + $(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 + $(INSTALL_DIR) $(1)/etc/hotplug.d/iface + $(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh +endef + +define Package/autossh/conffiles +/etc/config/autossh endef $(eval $(call BuildPackage,autossh))