[csw-devel] SF.net SVN: gar:[6257] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Sep 10 16:30:51 CEST 2009


Revision: 6257
          http://gar.svn.sourceforge.net/gar/?rev=6257&view=rev
Author:   dmichelsen
Date:     2009-09-10 14:30:50 +0000 (Thu, 10 Sep 2009)

Log Message:
-----------
tcsh: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/tcsh/
    csw/mgar/pkg/tcsh/branches/
    csw/mgar/pkg/tcsh/tags/
    csw/mgar/pkg/tcsh/trunk/
    csw/mgar/pkg/tcsh/trunk/Makefile
    csw/mgar/pkg/tcsh/trunk/checksums
    csw/mgar/pkg/tcsh/trunk/files/
    csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postinstall
    csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postremove


Property changes on: csw/mgar/pkg/tcsh/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/tcsh/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tcsh/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/tcsh/trunk/Makefile	2009-09-10 14:30:50 UTC (rev 6257)
@@ -0,0 +1,33 @@
+GARNAME = tcsh
+GARVERSION = 6.17.00
+CATEGORIES = apps
+
+DESCRIPTION = Enhanced version of the Berkeley C shell (csh)
+define BLURB
+  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
+
+MASTER_SITES = ftp://ftp.astron.com/pub/tcsh/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += CSWtcsh.postinstall
+DISTFILES += CSWtcsh.postremove
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+SPKG_SOURCEURL = http://www.tcsh.org/
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+TEST_TARGET = check
+
+# Skip tests until this one is fixed:
+#   http://bugs.gw.com/view.php?id=87
+SKIPTEST = 1
+
+INSTALL_ARGS = install.man
+
+include gar/category.mk

Added: csw/mgar/pkg/tcsh/trunk/checksums
===================================================================
--- csw/mgar/pkg/tcsh/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/tcsh/trunk/checksums	2009-09-10 14:30:50 UTC (rev 6257)
@@ -0,0 +1,3 @@
+241bfedfd51c5a02581dc60caba3386d  download/CSWtcsh.postinstall
+9400adc4cb0311fd60635399760926bb  download/CSWtcsh.postremove
+c47de903e3d52f6824c8dd0c91eeb477  download/tcsh-6.17.00.tar.gz

Added: csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postinstall
===================================================================
--- csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postinstall	                        (rev 0)
+++ csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postinstall	2009-09-10 14:30:50 UTC (rev 6257)
@@ -0,0 +1,52 @@
+#!/bin/sh
+PATH=/usr/bin
+export PATH
+
+SHELLS=/etc/shells
+TCSH=/opt/csw/bin/tcsh
+
+if [ -z "${PKG_INSTALL_ROOT}" -o "${PKG_INSTALL_ROOT}" = "/" ]
+then
+	RSHELLS=${SHELLS}
+	RTCSH=${TCSH}
+else
+	RSHELLS=${PKG_INSTALL_ROOT}${SHELLS}
+	RTCSH=${TCSH}
+fi
+
+if [ -f "${RSHELLS}" ]; then
+	echo "${RSHELLS} already exists."
+else
+	cat > ${RSHELLS} <<EOF
+# This file created by CSWtcsh
+/bin/bash
+/bin/csh
+/bin/jsh
+/bin/ksh
+/bin/pfcsh
+/bin/pfksh
+/bin/pfsh
+/bin/sh
+/bin/tcsh
+/bin/zsh
+/sbin/jsh
+/sbin/sh
+/usr/bin/bash
+/usr/bin/csh
+/usr/bin/jsh
+/usr/bin/ksh
+/usr/bin/pfcsh
+/usr/bin/pfksh
+/usr/bin/pfsh
+/usr/bin/sh
+/usr/bin/tcsh
+/usr/bin/zsh
+EOF
+fi
+
+if /usr/bin/grep "^${RTCSH}" ${RSHELLS} > /dev/null 2>&1; then
+	echo "${RSHELLS} UNCHANGED because entry ${RTCSH} already exists."
+else
+	echo "${RTCSH}  # Added by CSWtcsh" >> ${RSHELLS}
+	echo "ADDED ${RTCSH} to ${RSHELLS}."
+fi

Added: csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postremove
===================================================================
--- csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postremove	                        (rev 0)
+++ csw/mgar/pkg/tcsh/trunk/files/CSWtcsh.postremove	2009-09-10 14:30:50 UTC (rev 6257)
@@ -0,0 +1,22 @@
+#!/bin/sh
+PATH=/usr/bin
+export PATH
+
+SHELLS=/etc/shells
+TCSH=/opt/csw/bin/tcsh
+
+if [ -z "${PKG_INSTALL_ROOT}" -o "${PKG_INSTALL_ROOT}" = "/" ]
+then
+	RSHELLS=${SHELLS}
+	RTCSH=${TCSH}
+else
+	RSHELLS=${PKG_INSTALL_ROOT}${SHELLS}
+	RTCSH=${TCSH}
+fi
+
+if /usr/bin/grep "^${RTCSH}" ${RSHELLS} > /dev/null 2>&1; then
+	/usr/bin/perl -i -pwe '$_ = "" if m%^'${RTCSH}'%' ${RSHELLS}
+	echo "REMOVED ${RTCSH} from ${RSHELLS}."
+else
+	echo "${RSHELLS} UNCHANGED because it did not contain entry ${RTCSH}."
+fi


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list