From: Nuno Goncalves Date: Wed, 19 Jan 2011 15:19:16 +0000 (+0000) Subject: [packages] added tcsh: Enhanced Berkeley UNIX C shell X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=566005d5af799a9b5bd6e44e8297b37ca27be70f;p=openwrt%2Fsvn-archive%2Farchive.git [packages] added tcsh: Enhanced Berkeley UNIX C shell SVN-Revision: 25046 --- diff --git a/utils/tcsh/Makefile b/utils/tcsh/Makefile new file mode 100644 index 0000000000..b1b431fac0 --- /dev/null +++ b/utils/tcsh/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2011 Nuno Goncalves +# +# 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.17.00 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/tcsh/ +PKG_MD5SUM:=c47de903e3d52f6824c8dd0c91eeb477 + +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/ + MAINTAINER:=Nuno Goncalves +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)) diff --git a/utils/tcsh/patches/001-gethost b/utils/tcsh/patches/001-gethost new file mode 100644 index 0000000000..62342e2a9f --- /dev/null +++ b/utils/tcsh/patches/001-gethost @@ -0,0 +1,11 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -365,7 +365,7 @@ + + gethost: gethost.c sh.err.h tc.const.h sh.h + rm -f gethost +- ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} $(srcdir)/gethost.c ${LIBES} ${EXTRALIBS} ++ gcc -o gethost -g -O2 -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' $(srcdir)/gethost.c ${LIBES} ${EXTRALIBS} + + tc.defs.c: gethost host.defs + @rm -f $@.tmp diff --git a/utils/tcsh/patches/002-NLS b/utils/tcsh/patches/002-NLS new file mode 100644 index 0000000000..9c52afd8ad --- /dev/null +++ b/utils/tcsh/patches/002-NLS @@ -0,0 +1,9 @@ +--- a/config/linux ++++ b/config/linux +@@ -106,6 +106,4 @@ + #endif + #define ECHO_STYLE BOTH_ECHO + +-#define NLS_CATALOGS +- + #endif /* _h_config */