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.

62 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2011-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=tcsh
  8. PKG_VERSION:=6.20.00
  9. PKG_RELEASE:=2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:= \
  12. http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/ \
  13. http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old/ \
  14. ftp://ftp.astron.com/pub/tcsh/ \
  15. ftp://ftp.astron.com/pub/tcsh/old
  16. PKG_HASH:=b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d
  17. PKG_LICENSE:=BSD-3-Clause
  18. PKG_LICENSE_FILES:=Copyright
  19. PKG_CPE_ID:=cpe:/a:tcsh:tcsh
  20. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/tcsh
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. SUBMENU:=Shells
  26. TITLE:=Enhanced Berkeley UNIX C shell
  27. DEPENDS:=+libncurses
  28. URL:=http://www.tcsh.org/
  29. endef
  30. define Package/tcsh/description
  31. Tcsh is an enhanced, but completely compatible
  32. version of the Berkeley UNIX C shell (csh). It
  33. is a command language interpreter usable both
  34. as an interactive login shell and a shell
  35. script command processor. It includes a
  36. command-line editor, programmable word
  37. completion, spelling correction, a history
  38. mechanism, job control and a C-like syntax.
  39. endef
  40. define Package/tcsh/postinst
  41. #!/bin/sh
  42. grep tcsh $${IPKG_INSTROOT}/etc/shells || \
  43. echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
  44. echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
  45. endef
  46. define Package/tcsh/install
  47. $(INSTALL_DIR) $(1)/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
  49. ln -sf tcsh $(1)/bin/csh
  50. endef
  51. $(eval $(call BuildPackage,tcsh))