Upgrade dtach to 0.8 (#3680)
[openwrt/svn-archive/archive.git] / utils / dtach / 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:=dtach
12 PKG_VERSION:=0.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/dtach
17 PKG_MD5SUM:=ec5999f3b6bb67da19754fcb2e5221f3
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/dtach
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=A program that emulates the dtach feature of screen
25 URL:=http://dtach.sourceforge.net/
26 endef
27
28 define Package/dtach/description
29 dtach is a tiny program that emulates the detach feature of screen,
30 allowing you to run a program in an environment that is protected from
31 the controlling terminal and attach to it later. dtach does not keep
32 track of the contents of the screen, and thus works best with programs
33 that know how to redraw themselves.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default)
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR)
42 endef
43
44 define Package/dtach/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dtach $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,dtach))