replace lots of manual install commands with INSTALL_* variables
[openwrt/svn-archive/archive.git] / net / autossh / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=autossh
12 PKG_VERSION:=1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
17 PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/autossh
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+openssh-client
28 TITLE:=Autossh client
29 URL:=http://www.harding.motd.ca/autossh/
30 endef
31
32 define Build/Compile
33 $(call Build/Compile/Default, -f Makefile.linux \
34 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
35 all \
36 )
37 endef
38
39 define Package/autossh/install
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
42 endef
43
44 $(eval $(call BuildPackage,autossh))