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.

55 lines
1.4 KiB

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