Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / utils / tcsh / Makefile
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
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=tcsh
10 PKG_VERSION:=6.20.00
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:= \
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_HASH:=b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d
20
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=Copyright
23
24 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/tcsh
29 SECTION:=utils
30 CATEGORY:=Utilities
31 SUBMENU:=Shells
32 TITLE:=Enhanced Berkeley UNIX C shell
33 DEPENDS:=+libncurses
34 URL:=http://www.tcsh.org/
35 endef
36
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.
46 endef
47
48 define Package/tcsh/postinst
49 #!/bin/sh
50 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
51 echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
52 echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
53 endef
54
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
59 endef
60
61 $(eval $(call BuildPackage,tcsh))