summaryrefslogtreecommitdiff
path: root/shells/tcsh
diff options
context:
space:
mode:
authoragc <agc>1997-10-24 14:14:32 +0000
committeragc <agc>1997-10-24 14:14:32 +0000
commit82ae7e09200180dfc206e630f9d840a178be687c (patch)
tree17704e85e052efa5bb5d390c0f0114e40811e48f /shells/tcsh
parent20159f40514dcaeee691b3c22cbd2977c4b23ddd (diff)
downloadpkgsrc-82ae7e09200180dfc206e630f9d840a178be687c.tar.gz
Initial import of FreeBSD's shells ports category into NetBSD package
system.
Diffstat (limited to 'shells/tcsh')
-rw-r--r--shells/tcsh/Makefile36
-rw-r--r--shells/tcsh/files/md51
-rw-r--r--shells/tcsh/patches/patch-aa56
-rw-r--r--shells/tcsh/patches/patch-ab19
-rw-r--r--shells/tcsh/patches/patch-ac19
-rw-r--r--shells/tcsh/patches/patch-ad83
-rw-r--r--shells/tcsh/patches/patch-ae67
-rw-r--r--shells/tcsh/patches/patch-af23
-rw-r--r--shells/tcsh/patches/patch-ag44
-rw-r--r--shells/tcsh/pkg/COMMENT1
-rw-r--r--shells/tcsh/pkg/DESCR2
-rw-r--r--shells/tcsh/pkg/PLIST13
12 files changed, 364 insertions, 0 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile
new file mode 100644
index 00000000000..e5cfc77226d
--- /dev/null
+++ b/shells/tcsh/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: tcsh
+# Version required: 6.07.02
+# Date created: 22 August 1994
+# Whom: jkh
+#
+# FreeBSD Id: Makefile,v 1.17 1996/12/17 05:18:09 asami Exp
+#
+
+DISTNAME= tcsh-6.07
+PKGNAME= tcsh-6.07.02
+CATEGORIES= shells
+MASTER_SITES= ftp://ftp.deshaw.com/pub/tcsh/
+
+MAINTAINER= ache@FreeBSD.ORG
+
+GNU_CONFIGURE= yes
+WRKSRC= ${WRKDIR}/${PKGNAME}
+ALL_TARGET= all catalogs
+INSTALL_TARGET= install install.man
+MAN1= tcsh.1
+
+post-install:
+ chown bin.bin ${PREFIX}/bin/tcsh
+ chown bin.bin ${PREFIX}/man/man1/tcsh.1
+ cd ${WRKSRC}; ${INSTALL_DATA} tcsh.C.cat ${PREFIX}/share/nls/C/tcsh.cat
+ cd ${WRKSRC}; ${INSTALL_DATA} tcsh.french.cat ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat
+ ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_BE.ISO_8859-1/tcsh.cat
+ ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_CA.ISO_8859-1/tcsh.cat
+ ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_CH.ISO_8859-1/tcsh.cat
+ cd ${WRKSRC}; ${INSTALL_DATA} tcsh.german.cat ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat
+ ln -sf ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/de_AT.ISO_8859-1/tcsh.cat
+ ln -sf ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/de_CH.ISO_8859-1/tcsh.cat
+ install -d -o ${BINOWN} -g ${BINGRP} -m 755 ${PREFIX}/share/nls/el_GR.ISO_8859-7
+ cd ${WRKSRC}; ${INSTALL_DATA} tcsh.greek.cat ${PREFIX}/share/nls/el_GR.ISO_8859-7/tcsh.cat
+
+.include <bsd.port.mk>
diff --git a/shells/tcsh/files/md5 b/shells/tcsh/files/md5
new file mode 100644
index 00000000000..87e4635683b
--- /dev/null
+++ b/shells/tcsh/files/md5
@@ -0,0 +1 @@
+MD5 (tcsh-6.07.tar.gz) = 18a9d8091c6da38ebdd63ab509324eb5
diff --git a/shells/tcsh/patches/patch-aa b/shells/tcsh/patches/patch-aa
new file mode 100644
index 00000000000..00182738a6a
--- /dev/null
+++ b/shells/tcsh/patches/patch-aa
@@ -0,0 +1,56 @@
+*** configure.in.orig Sun Oct 27 08:58:56 1996
+--- configure.in Sat Apr 19 21:37:17 1997
+***************
+*** 76,81 ****
+--- 76,91 ----
+ tcsh_config_file=sysV88
+ ;;
+
++ ## FreeBSD
++ *-*-freebsd*)
++ tcsh_config_file=bsd4.4
++ ;;
++
++ ## OpenBSD
++ *-*-openbsd*)
++ tcsh_config_file=bsd4.4
++ ;;
++
+ ## NetBSD systems
+ *-*-netbsd*)
+ tcsh_config_file=bsd4.4
+*** configure.orig Sun Oct 27 08:58:55 1996
+--- configure Sat Apr 19 21:39:29 1997
+***************
+*** 582,587 ****
+--- 582,597 ----
+ tcsh_config_file=sysV88
+ ;;
+
++ ## FreeBSD
++ *-*-freebsd*)
++ tcsh_config_file=bsd4.4
++ ;;
++
++ ## OpenBSD
++ *-*-openbsd*)
++ tcsh_config_file=bsd4.4
++ ;;
++
+ ## NetBSD systems
+ *-*-netbsd*)
+ tcsh_config_file=bsd4.4
+*** config.guess.dist Sat Oct 19 10:54:43 1996
+--- config.guess Sat Apr 19 22:52:46 1997
+***************
+*** 308,313 ****
+--- 308,316 ----
+ *:FreeBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit 0 ;;
++ *:OpenBSD:*:*)
++ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
++ exit 0 ;;
+ *:NetBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ exit 0 ;;
diff --git a/shells/tcsh/patches/patch-ab b/shells/tcsh/patches/patch-ab
new file mode 100644
index 00000000000..666000918fe
--- /dev/null
+++ b/shells/tcsh/patches/patch-ab
@@ -0,0 +1,19 @@
+*** nls/greek/set20.bak Fri Apr 26 23:24:30 1996
+--- nls/greek/set20 Mon Dec 16 02:56:43 1996
+***************
+*** 13,19 ****
+ 10 %-15s-> δεν έχει οριστεί\n
+ 11 BUG!!! το %s δεν είναι συσχετισμένο με τίποτα.\n
+ 12 Χρήση: bindkey [επιλογές] [--] [ΠΛΗΚΤΡΟ [ΕΝΤΟΛΗ]]\n
+! 13 -a εμφάνιση ή συσχέτιση ΠΛΗΚΤΡΟυ στον εναλλακτικό χάρτη πλήκτρων\ν
+ 14 -b ερμηνεία ΠΛΗΚΤΡΟυ ως C-, M-, F- or X- όνομα πλήκτρου\n
+ 15 -s ερμηνεία ΕΝΤΟΛΗς ως κυριολεκτικού string γιά εμφάνιση\n
+ 16 -c ερμηνεία ΕΝΤΟΛΗς ως εσωτερικής ή εξωτερικής εντολής\n
+--- 13,19 ----
+ 10 %-15s-> δεν έχει οριστεί\n
+ 11 BUG!!! το %s δεν είναι συσχετισμένο με τίποτα.\n
+ 12 Χρήση: bindkey [επιλογές] [--] [ΠΛΗΚΤΡΟ [ΕΝΤΟΛΗ]]\n
+! 13 -a εμφάνιση ή συσχέτιση ΠΛΗΚΤΡΟυ στον εναλλακτικό χάρτη πλήκτρων\n
+ 14 -b ερμηνεία ΠΛΗΚΤΡΟυ ως C-, M-, F- or X- όνομα πλήκτρου\n
+ 15 -s ερμηνεία ΕΝΤΟΛΗς ως κυριολεκτικού string γιά εμφάνιση\n
+ 16 -c ερμηνεία ΕΝΤΟΛΗς ως εσωτερικής ή εξωτερικής εντολής\n
diff --git a/shells/tcsh/patches/patch-ac b/shells/tcsh/patches/patch-ac
new file mode 100644
index 00000000000..32a0e6c9522
--- /dev/null
+++ b/shells/tcsh/patches/patch-ac
@@ -0,0 +1,19 @@
+*** sh.h.bak Sat Oct 19 21:54:12 1996
+--- sh.h Mon Dec 16 03:02:35 1996
+***************
+*** 1085,1091 ****
+ /*
+ * To print system call errors...
+ */
+! #ifdef __NetBSD__
+ # include <errno.h>
+ #else
+ # ifndef linux
+--- 1085,1091 ----
+ /*
+ * To print system call errors...
+ */
+! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+ # include <errno.h>
+ #else
+ # ifndef linux
diff --git a/shells/tcsh/patches/patch-ad b/shells/tcsh/patches/patch-ad
new file mode 100644
index 00000000000..490b9f6b044
--- /dev/null
+++ b/shells/tcsh/patches/patch-ad
@@ -0,0 +1,83 @@
+*** glob.c.orig Sat Nov 13 03:40:56 1993
+--- glob.c Mon Dec 16 03:09:07 1996
+***************
+*** 139,144 ****
+--- 139,165 ----
+ #define M_SET META('[')
+ #define ismeta(c) (((c)&M_META) != 0)
+
++ int collate_range_cmp (c1, c2)
++ int c1, c2;
++ {
++ #if defined(NLS) && defined(LC_COLLATE)
++ static char s1[2], s2[2];
++ int ret;
++ #endif
++
++ c1 &= 0xFF;
++ c2 &= 0xFF;
++ #if defined(NLS) && defined(LC_COLLATE)
++ if (c1 == c2)
++ return (0);
++ s1[0] = c1;
++ s2[0] = c2;
++ if ((ret = strcoll(s1, s2)) != 0)
++ return (ret);
++ #endif
++ return (c1 - c2);
++ }
++
+ /*
+ * Need to dodge two kernel bugs:
+ * opendir("") != opendir(".")
+***************
+*** 646,652 ****
+ ++pat;
+ while (((c = *pat++) & M_MASK) != M_END) {
+ if ((*pat & M_MASK) == M_RNG) {
+! if (c <= k && k <= pat[1])
+ ok = 1;
+ pat += 2;
+ }
+--- 667,675 ----
+ ++pat;
+ while (((c = *pat++) & M_MASK) != M_END) {
+ if ((*pat & M_MASK) == M_RNG) {
+! if ( collate_range_cmp(CHAR(c), CHAR(k)) <= 0
+! && collate_range_cmp(CHAR(k), CHAR(pat[1])) <= 0
+! )
+ ok = 1;
+ pat += 2;
+ }
+*** sh.glob.c.orig Sun May 14 00:49:17 1995
+--- sh.glob.c Thu Oct 31 18:04:28 1996
+***************
+*** 85,90 ****
+--- 85,91 ----
+ static void pword __P((int));
+ static void psave __P((int));
+ static void backeval __P((Char *, bool));
++ extern int collate_range_cmp __P((int, int));
+
+ static Char *
+ globtilde(nv, s)
+***************
+*** 1038,1045 ****
+ if (match)
+ continue;
+ if (rangec == '-' && *(pattern-2) != '[' && *pattern != ']') {
+! match = (stringc <= (*pattern & TRIM) &&
+! (*(pattern-2) & TRIM) <= stringc);
+ pattern++;
+ }
+ else
+--- 1039,1047 ----
+ if (match)
+ continue;
+ if (rangec == '-' && *(pattern-2) != '[' && *pattern != ']') {
+! match = ( collate_range_cmp(stringc, *pattern & TRIM) <= 0
+! && collate_range_cmp(*(pattern-2) & TRIM, stringc) <= 0
+! );
+ pattern++;
+ }
+ else
diff --git a/shells/tcsh/patches/patch-ae b/shells/tcsh/patches/patch-ae
new file mode 100644
index 00000000000..51d93eddeb1
--- /dev/null
+++ b/shells/tcsh/patches/patch-ae
@@ -0,0 +1,67 @@
+*** tc.os.h.old Sun May 14 00:49:26 1995
+--- tc.os.h Sat Jun 17 06:02:53 1995
+***************
+*** 417,423 ****
+ # define NEEDgethostname
+ #endif /* _SEQUENT_ */
+
+! #if defined(BSD) && defined(POSIXJOBS) && !defined(__hp_osf)
+ # define setpgid(pid, pgrp) setpgrp(pid, pgrp)
+ #endif /* BSD && POSIXJOBS && !__hp_osf */
+
+--- 417,423 ----
+ # define NEEDgethostname
+ #endif /* _SEQUENT_ */
+
+! #if defined(BSD) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && defined(POSIXJOBS) && !defined(__hp_osf)
+ # define setpgid(pid, pgrp) setpgrp(pid, pgrp)
+ #endif /* BSD && POSIXJOBS && !__hp_osf */
+
+***************
+*** 468,474 ****
+ #ifndef POSIX
+ # define mygetpgrp() getpgrp(0)
+ #else /* POSIX */
+! # if defined(BSD) || defined(SUNOS4) || defined(IRIS4D) || defined(DGUX)
+ # define mygetpgrp() getpgrp(0)
+ # else /* !(BSD || SUNOS4 || IRIS4D || DGUX) */
+ # define mygetpgrp() getpgrp()
+--- 468,474 ----
+ #ifndef POSIX
+ # define mygetpgrp() getpgrp(0)
+ #else /* POSIX */
+! # if (defined(BSD) && !defined(__FreeBSD__)) || defined(SUNOS4) || defined(IRIS4D) || defined(DGUX)
+ # define mygetpgrp() getpgrp(0)
+ # else /* !(BSD || SUNOS4 || IRIS4D || DGUX) */
+ # define mygetpgrp() getpgrp()
+***************
+*** 657,670 ****
+ # endif /* REMOTEHOST */
+ #endif /* SUNOS4 && __GNUC__ == 2 */
+
+! #if (defined(BSD) && !defined(__386BSD__)) || defined(SUNOS4)
+ # if defined(__alpha) && defined(__osf__) && DECOSF1 < 200
+ extern void bcopy __P((const void *, void *, size_t));
+ # define memmove(a, b, c) (bcopy((char *) (b), (char *) (a), (int) (c)), a)
+ # endif /* __alpha && __osf__ && DECOSF1 < 200 */
+ #endif /* (BSD && !__386BSD__) || SUNOS4 */
+
+! #if !defined(hpux) && !defined(COHERENT) && ((SYSVREL < 4) || defined(_SEQUENT_)) && !defined(__386BSD__) && !defined(memmove)
+ # define NEEDmemmove
+ #endif /* !hpux && !COHERENT && (SYSVREL < 4 || _SEQUENT_) && !__386BSD__ && !memmove */
+
+--- 657,670 ----
+ # endif /* REMOTEHOST */
+ #endif /* SUNOS4 && __GNUC__ == 2 */
+
+! #if (defined(BSD) && !defined(__386BSD__) && !defined(__FreeBSD__)) || defined(SUNOS4)
+ # if defined(__alpha) && defined(__osf__) && DECOSF1 < 200
+ extern void bcopy __P((const void *, void *, size_t));
+ # define memmove(a, b, c) (bcopy((char *) (b), (char *) (a), (int) (c)), a)
+ # endif /* __alpha && __osf__ && DECOSF1 < 200 */
+ #endif /* (BSD && !__386BSD__) || SUNOS4 */
+
+! #if !defined(hpux) && !defined(COHERENT) && ((SYSVREL < 4) || defined(_SEQUENT_)) && !defined(__386BSD__) && !defined(__FreeBSD__) && !defined(memmove)
+ # define NEEDmemmove
+ #endif /* !hpux && !COHERENT && (SYSVREL < 4 || _SEQUENT_) && !__386BSD__ && !memmove */
+
diff --git a/shells/tcsh/patches/patch-af b/shells/tcsh/patches/patch-af
new file mode 100644
index 00000000000..249e9dc2f6d
--- /dev/null
+++ b/shells/tcsh/patches/patch-af
@@ -0,0 +1,23 @@
+*** config_f.h.bak Fri Apr 26 23:17:30 1996
+--- config_f.h Mon Dec 16 03:53:59 1996
+***************
+*** 65,71 ****
+ * if you don't have <nl_types.h>, you don't want
+ * to define this.
+ */
+! #undef NLS_CATALOGS
+
+ /*
+ * LOGINFIRST Source ~/.login before ~/.cshrc
+--- 65,75 ----
+ * if you don't have <nl_types.h>, you don't want
+ * to define this.
+ */
+! #if defined(__FreeBSD__) || defined(__OpenBSD__)
+! # define NLS_CATALOGS
+! #else
+! # undef NLS_CATALOGS
+! #endif
+
+ /*
+ * LOGINFIRST Source ~/.login before ~/.cshrc
diff --git a/shells/tcsh/patches/patch-ag b/shells/tcsh/patches/patch-ag
new file mode 100644
index 00000000000..b03604b22b0
--- /dev/null
+++ b/shells/tcsh/patches/patch-ag
@@ -0,0 +1,44 @@
+*** sh.func.c.bak Sat Oct 5 21:39:10 1996
+--- sh.func.c Mon Dec 16 04:25:04 1996
+***************
+*** 1312,1319 ****
+ # ifdef LC_COLLATE
+ (void) setlocale(LC_COLLATE, "");
+ # endif
+! # if defined(NLS_CATALOGS) && defined(LC_MESSAGES)
+ (void) setlocale(LC_MESSAGES, "");
+ (void) catclose(catd);
+ nlsinit();
+ # endif /* NLS_CATALOGS && LC_MESSAGES */
+--- 1312,1321 ----
+ # ifdef LC_COLLATE
+ (void) setlocale(LC_COLLATE, "");
+ # endif
+! # ifdef NLS_CATALOGS
+! # ifdef LC_MESSAGES
+ (void) setlocale(LC_MESSAGES, "");
++ # endif
+ (void) catclose(catd);
+ nlsinit();
+ # endif /* NLS_CATALOGS && LC_MESSAGES */
+***************
+*** 1475,1482 ****
+ # ifdef LC_COLLATE
+ (void) setlocale(LC_COLLATE, "");
+ # endif
+! # if defined(NLS_CATALOGS) && defined(LC_MESSAGES)
+ (void) setlocale(LC_MESSAGES, "");
+ (void) catclose(catd);
+ nlsinit();
+ # endif /* NLS_CATALOGS && LC_MESSAGES */
+--- 1477,1486 ----
+ # ifdef LC_COLLATE
+ (void) setlocale(LC_COLLATE, "");
+ # endif
+! # ifdef NLS_CATALOGS
+! # ifdef LC_MESSAGES
+ (void) setlocale(LC_MESSAGES, "");
++ # endif
+ (void) catclose(catd);
+ nlsinit();
+ # endif /* NLS_CATALOGS && LC_MESSAGES */
diff --git a/shells/tcsh/pkg/COMMENT b/shells/tcsh/pkg/COMMENT
new file mode 100644
index 00000000000..11c830c0b80
--- /dev/null
+++ b/shells/tcsh/pkg/COMMENT
@@ -0,0 +1 @@
+An extended C-shell with many useful features.
diff --git a/shells/tcsh/pkg/DESCR b/shells/tcsh/pkg/DESCR
new file mode 100644
index 00000000000..7c3c806b984
--- /dev/null
+++ b/shells/tcsh/pkg/DESCR
@@ -0,0 +1,2 @@
+TCSH is an extended C-shell with many useful features like
+filename completion, history editing, etc.
diff --git a/shells/tcsh/pkg/PLIST b/shells/tcsh/pkg/PLIST
new file mode 100644
index 00000000000..d060882a38a
--- /dev/null
+++ b/shells/tcsh/pkg/PLIST
@@ -0,0 +1,13 @@
+bin/tcsh
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
+man/man1/tcsh.1.gz
+share/nls/C/tcsh.cat
+share/nls/fr_FR.ISO_8859-1/tcsh.cat
+@exec ln -fs %D/%F %D/share/nls/fr_BE.ISO_8859-1/tcsh.cat
+@exec ln -fs %D/%F %D/share/nls/fr_CA.ISO_8859-1/tcsh.cat
+@exec ln -fs %D/%F %D/share/nls/fr_CH.ISO_8859-1/tcsh.cat
+share/nls/de_DE.ISO_8859-1/tcsh.cat
+@exec ln -fs %D/%F %D/share/nls/de_AT.ISO_8859-1/tcsh.cat
+@exec ln -fs %D/%F %D/share/nls/de_CH.ISO_8859-1/tcsh.cat
+share/nls/el_GR.ISO_8859-7/tcsh.cat