Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Copyright (C) 2011-2016 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:=1
  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:=59d40ef40a68e790d95e182069431834
  17. PKG_LICENSE:=BSD-3-Clause
  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. SUBMENU:=Shells
  25. TITLE:=Enhanced Berkeley UNIX C shell
  26. DEPENDS:=+libncurses
  27. URL:=http://www.tcsh.org/
  28. endef
  29. define Package/tcsh/description
  30. Tcsh is an enhanced, but completely compatible
  31. version of the Berkeley UNIX C shell (csh). It
  32. is a command language interpreter usable both
  33. as an interactive login shell and a shell
  34. script command processor. It includes a
  35. command-line editor, programmable word
  36. completion, spelling correction, a history
  37. mechanism, job control and a C-like syntax.
  38. endef
  39. define Package/tcsh/postinst
  40. #!/bin/sh
  41. grep tcsh $${IPKG_INSTROOT}/etc/shells || \
  42. echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
  43. echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
  44. endef
  45. define Package/tcsh/install
  46. $(INSTALL_DIR) $(1)/bin
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
  48. ln -sf tcsh $(1)/bin/csh
  49. endef
  50. $(eval $(call BuildPackage,tcsh))