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.

59 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2011-2015 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.19.00
  9. PKG_RELEASE:=4
  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_MD5SUM:=f5f854833578647795bc906dd4bcb5d5
  17. PKG_LICENSE:=BSD-4-Clause-UC
  18. PKG_LICENSE_FILES:=Copyright
  19. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/tcsh
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Enhanced Berkeley UNIX C shell
  25. DEPENDS:=+libncurses
  26. URL:=http://www.tcsh.org/
  27. endef
  28. define Package/tcsh/description
  29. Tcsh is an enhanced, but completely compatible
  30. version of the Berkeley UNIX C shell (csh). It
  31. is a command language interpreter usable both
  32. as an interactive login shell and a shell
  33. script command processor. It includes a
  34. command-line editor, programmable word
  35. completion, spelling correction, a history
  36. mechanism, job control and a C-like syntax.
  37. endef
  38. define Package/tcsh/postinst
  39. #!/bin/sh
  40. grep tcsh $${IPKG_INSTROOT}/etc/shells || \
  41. echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
  42. echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
  43. endef
  44. define Package/tcsh/install
  45. $(INSTALL_DIR) $(1)/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
  47. ln -sf tcsh $(1)/bin/csh
  48. endef
  49. $(eval $(call BuildPackage,tcsh))