2 # Copyright (C) 2011-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/ \
16 http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old/ \
17 ftp://ftp.astron.com/pub/tcsh/ \
18 ftp://ftp.astron.com/pub/tcsh/old
19 PKG_MD5SUM:=59d40ef40a68e790d95e182069431834
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=Copyright
24 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
26 include $(INCLUDE_DIR)/package.mk
32 TITLE:=Enhanced Berkeley UNIX C shell
34 URL:=http://www.tcsh.org/
37 define Package/tcsh/description
38 Tcsh is an enhanced, but completely compatible
39 version of the Berkeley UNIX C shell (csh). It
40 is a command language interpreter usable both
41 as an interactive login shell and a shell
42 script command processor. It includes a
43 command-line editor, programmable word
44 completion, spelling correction, a history
45 mechanism, job control and a C-like syntax.
48 define Package/tcsh/postinst
50 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
51 echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
52 echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
55 define Package/tcsh/install
56 $(INSTALL_DIR) $(1)/bin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
58 ln -sf tcsh $(1)/bin/csh
61 $(eval $(call BuildPackage,tcsh))