fix autossh, standardize
[openwrt/svn-archive/archive.git] / net / autossh / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=autossh
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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 DESCRIPTION:=Autossh client
30 URL:=http://www.harding.motd.ca/autossh
31 endef
32
33 define Build/Compile
34 $(call Build/Compile/Default, -f Makefile.linux \
35 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
36 all \
37 )
38 endef
39
40 define Package/autossh/install
41 install -d -m0755 $(1)/usr/sbin
42 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,autossh))