You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=screen
  9. PKG_VERSION:=4.6.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_HASH:=aba9af66cb626155d6abce4703f45cce0e30a5114a368bd6387c966cbbbb7c64
  13. PKG_SOURCE_URL:=@GNU/screen
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_LICENSE_FILES:=
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/screen
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. SUBMENU:=Terminal
  21. DEPENDS:=+libncurses
  22. TITLE:=Full-screen terminal window manager
  23. URL:=http://www.gnu.org/software/screen/
  24. MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
  25. endef
  26. define Package/screen/description
  27. Screen is a full-screen window manager that multiplexes a physical
  28. terminal between several processes, typically interactive shells.
  29. endef
  30. define Build/Configure
  31. $(call Build/Configure/Default,\
  32. --with-sys-screenrc=/etc/screenrc \
  33. --enable-colors256 \
  34. )
  35. # XXX: memmove() works well with overlapped memory areas
  36. echo "#define USEMEMMOVE 1" >>$(PKG_BUILD_DIR)/config.h
  37. endef
  38. define Package/screen/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/
  41. $(INSTALL_DIR) $(1)/etc
  42. $(INSTALL_DATA) ./files/etc/screenrc $(1)/etc/screenrc
  43. endef
  44. define Package/screen/conffiles
  45. /etc/screenrc
  46. endef
  47. $(eval $(call BuildPackage,screen))