[packages/lang/gst-python] fix typo in install
[openwrt/svn-archive/archive.git] / net / autossh / Makefile
1 #
2 # Copyright (C) 2006-2008 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.4b
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:=8f9aa006f6f69e912d3c2f504622d6f7
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/autossh
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Autossh client
25 URL:=http://www.harding.motd.ca/autossh/
26 SUBMENU:=SSH
27 endef
28
29 define Build/Compile
30 $(call Build/Compile/Default, -f Makefile \
31 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
32 all \
33 )
34 endef
35
36 define Package/autossh/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
41 $(INSTALL_DIR) $(1)/etc/config
42 $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
43 endef
44
45 $(eval $(call BuildPackage,autossh))