e9894bda6fa64ad97edb2dcf4bd59f53bebe904f
[openwrt/svn-archive/archive.git] / utils / dtach / 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:=dtach
11 PKG_VERSION:=0.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/dtach
16 PKG_MD5SUM:=13d5b834a7855f2448dbf33e0d3d3af8
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/dtach
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=A program that emulates the dtach feature of screen
27 URL:=http://dtach.sourceforge.net/
28 endef
29
30 define Build/Configure
31 $(call Build/Configure/Default)
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)
36 endef
37
38 define Package/dtach/install
39 install -d -m0755 $(1)/usr/bin
40 install -m0755 $(PKG_BUILD_DIR)/dtach $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,dtach))