2006-08-08 09:38:23 +00:00
|
|
|
#
|
2014-04-30 21:08:05 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2006-08-08 09:38:23 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=screen
|
2014-04-30 21:08:05 +00:00
|
|
|
PKG_VERSION:=4.2.1
|
|
|
|
PKG_RELEASE:=1
|
2006-08-08 09:38:23 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2014-04-30 21:08:05 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/screen
|
|
|
|
PKG_MD5SUM:=419a0594e2b25039239af8b90eda7d92
|
2006-08-08 09:38:23 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/screen
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=Full-screen terminal window manager
|
|
|
|
URL:=http://www.gnu.org/software/screen/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/screen/description
|
|
|
|
Screen is a full-screen window manager that multiplexes a physical
|
|
|
|
terminal between several processes, typically interactive shells.
|
|
|
|
endef
|
|
|
|
|
2007-06-11 08:21:17 +00:00
|
|
|
define Build/Configure
|
2009-10-29 18:17:51 +00:00
|
|
|
$(call Build/Configure/Default,\
|
2014-04-30 21:08:05 +00:00
|
|
|
--with-sys-screenrc=/etc/screenrc \
|
2007-06-11 08:21:17 +00:00
|
|
|
)
|
2014-04-30 21:08:05 +00:00
|
|
|
# XXX: memmove() works well with overlapped memory areas
|
|
|
|
echo "#define USEMEMMOVE 1" >>$(PKG_BUILD_DIR)/config.h
|
2007-06-11 08:21:17 +00:00
|
|
|
endef
|
2006-08-08 09:38:23 +00:00
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/screen/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/
|
2009-10-29 18:17:51 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/etc/screenrc $(1)/etc/screenrc
|
2006-08-08 09:38:23 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/screen/conffiles
|
|
|
|
/etc/screenrc
|
|
|
|
endef
|
|
|
|
|
2006-08-08 09:38:23 +00:00
|
|
|
$(eval $(call BuildPackage,screen))
|