packages/net/autossh/Makefile
florian 0fb2eccbac Add init and config files from #2624
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9475 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-01 17:15:42 +00:00

48 lines
1.1 KiB
Makefile

#
# Copyright (C) 2006 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.4a
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
PKG_MD5SUM:=a5497938986f0c179926f1ebba603767
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/autossh
SECTION:=net
CATEGORY:=Network
TITLE:=Autossh client
URL:=http://www.harding.motd.ca/autossh/
SUBMENU:=ssh
endef
define Build/Compile
$(call Build/Compile/Default, -f Makefile \
CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
all \
)
endef
define Package/autossh/install
$(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
endef
$(eval $(call BuildPackage,autossh))