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.

57 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.3.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/screen
  13. PKG_MD5SUM:=5bb3b0ff2674e29378c31ad3411170ad
  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. )
  34. # XXX: memmove() works well with overlapped memory areas
  35. echo "#define USEMEMMOVE 1" >>$(PKG_BUILD_DIR)/config.h
  36. endef
  37. define Package/screen/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/
  40. $(INSTALL_DIR) $(1)/etc
  41. $(INSTALL_DATA) ./files/etc/screenrc $(1)/etc/screenrc
  42. endef
  43. define Package/screen/conffiles
  44. /etc/screenrc
  45. endef
  46. $(eval $(call BuildPackage,screen))