summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-11-29 10:14:16 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-11-29 10:14:16 +0000
commit76b0284dc5a4ea9c3040fdae4b19ae5b35c47e6f (patch)
tree310ea796faad1ed3c7b95352f00e674d91a69b75 /lang
parentAdd the PAM SSH RSA key authentication module. For example, you can add, (diff)
Update to the Jun 20, 1999 fixes.
Notes
Notes: svn path=/head/; revision=23498
Diffstat (limited to 'lang')
-rw-r--r--lang/nawk/Makefile3
-rw-r--r--lang/nawk/distinfo2
-rw-r--r--lang/nawk/files/patch-aa15
-rw-r--r--lang/nawk/files/patch-ba202
-rw-r--r--lang/nawk/files/patch-bb34
5 files changed, 121 insertions, 135 deletions
diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile
index a52427750d1a..0755fc9d9c2e 100644
--- a/lang/nawk/Makefile
+++ b/lang/nawk/Makefile
@@ -8,10 +8,9 @@
#
DISTNAME= awk
-PKGNAME= nawk-99.04.16
+PKGNAME= nawk-99.06.20
CATEGORIES= lang
MASTER_SITES= http://cm.bell-labs.com/who/bwk/
-EXTRACT_SUFX= tar.gz
MAINTAINER= obrien@FreeBSD.org
diff --git a/lang/nawk/distinfo b/lang/nawk/distinfo
index c124c01b62db..b1f4a6e33ff6 100644
--- a/lang/nawk/distinfo
+++ b/lang/nawk/distinfo
@@ -1 +1 @@
-MD5 (awktar.gz) = dcd7cabc9a149c193f359270c8e0d736
+MD5 (awk.tar.gz) = d85853b63b117415d16daba456c0e6c5
diff --git a/lang/nawk/files/patch-aa b/lang/nawk/files/patch-aa
index 6743323390ba..0d01adf2d7aa 100644
--- a/lang/nawk/files/patch-aa
+++ b/lang/nawk/files/patch-aa
@@ -1,6 +1,6 @@
---- makefile.orig Tue Apr 6 11:54:42 1999
-+++ makefile Fri Apr 30 23:29:43 1999
-@@ -22,15 +22,15 @@
+--- makefile.orig Fri Jul 16 13:47:54 1999
++++ makefile Mon Nov 29 02:07:56 1999
+@@ -22,13 +22,13 @@
# THIS SOFTWARE.
# ****************************************************************/
@@ -12,14 +12,11 @@
+#CFLAGS =
-CC = gcc -Wall -g
--CC = purify cc
+-CC = /opt/pure/purify/purify cc
-CC = cc
+CC ?= gcc -Wall -g
-+#CC = purify cc
++#CC = /opt/pure/purify/purify cc
+#CC = cc
--YACC = bison -y
-+#YACC = bison -y
+ YACC = bison -y
YACC = yacc
- YFLAGS = -d
-
diff --git a/lang/nawk/files/patch-ba b/lang/nawk/files/patch-ba
index 325fea5fb3cb..3429b8e926f0 100644
--- a/lang/nawk/files/patch-ba
+++ b/lang/nawk/files/patch-ba
@@ -1,123 +1,79 @@
-*** b.c.orig Mon Oct 19 18:42:53 1998
---- b.c Wed Jan 13 17:46:54 1999
-***************
-*** 27,32 ****
---- 27,35 ----
- #define DEBUG
-
- #include <ctype.h>
-+ #ifdef __FreeBSD__
-+ #include <limits.h>
-+ #endif
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
-***************
-*** 74,79 ****
---- 77,100 ----
- fa *fatab[NFA];
- int nfatab = 0; /* entries in fatab */
-
-+ #ifdef __FreeBSD__
-+ static int
-+ collate_range_cmp(a, b)
-+ int a, b;
-+ {
-+ int r;
-+ static char s[2][2];
-+
-+ if ((unsigned char)a == (unsigned char)b)
-+ return 0;
-+ s[0][0] = a;
-+ s[1][0] = b;
-+ if ((r = strcoll(s[0], s[1])) == 0)
-+ r = (unsigned char)a - (unsigned char)b;
-+ return r;
-+ }
-+ #endif
-+
- fa *makedfa(char *s, int anchor) /* returns dfa for reg expr s */
- {
- int i, use, nuse;
-***************
-*** 284,289 ****
---- 305,313 ----
- char *cclenter(char *p) /* add a character class */
- {
- int i, c, c2;
-+ #ifdef __FreeBSD__
-+ int c3;
-+ #endif
- char *op, *bp;
- static char *buf = 0;
- static int bufsz = 100;
-***************
-*** 301,306 ****
---- 325,347 ----
- c2 = *p++;
- if (c2 == '\\')
- c2 = quoted(&p);
-+ #ifdef __FreeBSD__
-+ if (collate_range_cmp(c, c2) > 0) {
-+ bp--;
-+ i--;
-+ continue;
-+ }
-+ for (c3 = 0; c3 < (1 << CHAR_BIT) - 1; c3++) {
-+ if (collate_range_cmp(c, c3) <= 0 &&
-+ collate_range_cmp(c3, c2) <= 0) {
-+ if (!adjbuf(&buf, &bufsz, bp-buf+2, 100, &bp, 0))
-+ ERROR "out of space for character class [%.10s...] 2", p FATAL;
-+ *bp++ = c3 + 1;
-+ i++;
-+ }
-+ }
-+ #else
-+ if (c > c2) { /* empty; ignore */
- if (c > c2) { /* empty; ignore */
- bp--;
- i--;
-***************
-*** 312,317 ****
---- 353,359 ----
- *bp++ = ++c;
- i++;
- }
-+ #endif
- continue;
- }
- }
-*** main.c.orig Mon Oct 19 18:49:03 1998
---- main.c Wed Jan 13 17:51:59 1999
-***************
-*** 27,32 ****
---- 27,33 ----
- #define DEBUG
- #include <stdio.h>
- #include <ctype.h>
-+ #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- #include <signal.h>
-***************
-*** 55,61 ****
- char *fs = NULL, *marg;
- int temp;
-
-! cmdname = argv[0];
- if (argc == 1) {
- fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
- exit(1);
---- 56,67 ----
- char *fs = NULL, *marg;
- int temp;
-
-! setlocale(LC_ALL, "");
-!
-! if ((cmdname = strrchr(argv[0], '/')) != NULL)
-! cmdname++;
-! else
-! cmdname = argv[0];
- if (argc == 1) {
- fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
- exit(1);
+--- b.c.orig Mon May 10 07:26:44 1999
++++ b.c Mon Nov 29 02:10:52 1999
+@@ -27,6 +27,9 @@
+ #define DEBUG
+
+ #include <ctype.h>
++#ifdef __FreeBSD__
++#include <limits.h>
++#endif
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+@@ -75,6 +78,24 @@
+ fa *fatab[NFA];
+ int nfatab = 0; /* entries in fatab */
+
++#ifdef __FreeBSD__
++static int
++collate_range_cmp(a, b)
++int a, b;
++{
++ int r;
++ static char s[2][2];
++
++ if ((unsigned char)a == (unsigned char)b)
++ return 0;
++ s[0][0] = a;
++ s[1][0] = b;
++ if ((r = strcoll(s[0], s[1])) == 0)
++ r = (unsigned char)a - (unsigned char)b;
++ return r;
++}
++#endif
++
+ fa *makedfa(char *s, int anchor) /* returns dfa for reg expr s */
+ {
+ int i, use, nuse;
+@@ -285,6 +306,9 @@
+ char *cclenter(char *p) /* add a character class */
+ {
+ int i, c, c2;
++#ifdef __FreeBSD__
++ int c3;
++#endif
+ char *op, *bp;
+ static char *buf = 0;
+ static int bufsz = 100;
+@@ -302,6 +326,23 @@
+ c2 = *p++;
+ if (c2 == '\\')
+ c2 = quoted(&p);
++#ifdef __FreeBSD__
++ if (collate_range_cmp(c, c2) > 0) {
++ bp--;
++ i--;
++ continue;
++ }
++ for (c3 = 0; c3 < (1 << CHAR_BIT) - 1; c3++) {
++ if (collate_range_cmp(c, c3) <= 0 &&
++ collate_range_cmp(c3, c2) <= 0) {
++ if (!adjbuf(&buf, &bufsz, bp-buf+2, 100, &bp, 0))
++ FATAL("out of space for character class [%.10s...] 2", p);
++ *bp++ = c3 + 1;
++ i++;
++ }
++ }
++#else
++ if (c > c2) { /* empty; ignore */
+ if (c > c2) { /* empty; ignore */
+ bp--;
+ i--;
+@@ -313,6 +354,7 @@
+ *bp++ = ++c;
+ i++;
+ }
++#endif
+ continue;
+ }
+ }
diff --git a/lang/nawk/files/patch-bb b/lang/nawk/files/patch-bb
new file mode 100644
index 000000000000..1d7ac7a2633a
--- /dev/null
+++ b/lang/nawk/files/patch-bb
@@ -0,0 +1,34 @@
+*** main.c.orig Mon Oct 19 18:49:03 1998
+--- main.c Wed Jan 13 17:51:59 1999
+***************
+*** 27,32 ****
+--- 27,33 ----
+ #define DEBUG
+ #include <stdio.h>
+ #include <ctype.h>
++ #include <locale.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <signal.h>
+***************
+*** 55,61 ****
+ char *fs = NULL, *marg;
+ int temp;
+
+! cmdname = argv[0];
+ if (argc == 1) {
+ fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
+ exit(1);
+--- 56,67 ----
+ char *fs = NULL, *marg;
+ int temp;
+
+! setlocale(LC_ALL, "");
+!
+! if ((cmdname = strrchr(argv[0], '/')) != NULL)
+! cmdname++;
+! else
+! cmdname = argv[0];
+ if (argc == 1) {
+ fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
+ exit(1);