aboutsummaryrefslogtreecommitdiff
path: root/utils/tcsh/Makefile
diff options
context:
space:
mode:
authorNuno Goncalves <nunojpg@gmail.com>2014-09-16 01:13:23 +0100
committerNuno Goncalves <nunojpg@gmail.com>2014-09-16 01:13:23 +0100
commit8f52a803a4abcc1bb054680b4c8f070e104a367f (patch)
treed77e0a442c343bd716d0dc99512d2f77dcbcaf7d /utils/tcsh/Makefile
parentc7ad47cd514b7354d2954c4b6bb1ce55e4fa9b4e (diff)
tcsh: move to github, bump version to 6.18.01
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
Diffstat (limited to 'utils/tcsh/Makefile')
-rw-r--r--utils/tcsh/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/utils/tcsh/Makefile b/utils/tcsh/Makefile
new file mode 100644
index 000000000..c77eb8af3
--- /dev/null
+++ b/utils/tcsh/Makefile
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2011-2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=tcsh
+PKG_VERSION:=6.18.01
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/tcsh/
+PKG_MD5SUM:=6eed09dbd4223ab5b6955378450d228a
+PKG_LICENSE:=BSD-4-Clause-UC
+PKG_LICENSE_FILE:=Copyright
+
+PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/tcsh
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=Enhanced Berkeley UNIX C shell
+ DEPENDS:=+libncurses
+ URL:=http://www.tcsh.org/
+endef
+
+define Package/tcsh/description
+ Tcsh is an enhanced, but completely compatible
+ version of the Berkeley UNIX C shell (csh). It
+ is a command language interpreter usable both
+ as an interactive login shell and a shell
+ script command processor. It includes a
+ command-line editor, programmable word
+ completion, spelling correction, a history
+ mechanism, job control and a C-like syntax.
+endef
+
+define Package/tcsh/postinst
+#!/bin/sh
+grep tcsh $${IPKG_INSTROOT}/etc/shells || \
+ echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
+ echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
+endef
+
+define Package/tcsh/install
+ $(INSTALL_DIR) $(1)/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
+ ln -sf tcsh $(1)/bin/csh
+endef
+
+$(eval $(call BuildPackage,tcsh))