summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-05-15 14:21:46 +0000
committerlioux <lioux@FreeBSD.org>2002-05-15 14:21:46 +0000
commit7131ff73508ea5ead65173d5644b47c9034e5350 (patch)
treec01bf5bd6c0922b3c74edc3a8d593b88afeee9b2
parent7f6adb9f31e5917c45677861936e689757dc894b (diff)
downloadFreeBSD-ports-7131ff73508ea5ead65173d5644b47c9034e5350.zip
FreeBSD-ports-7131ff73508ea5ead65173d5644b47c9034e5350.tar.gz
o Teach rxvt about FreeBSD's pty: it goes all the way to letter v
o Bump PORTREVISION Submitted by: Ingo Rohlfs <ingo.rohlfs@gmx.de>
-rw-r--r--x11/rxvt-devel/Makefile5
-rw-r--r--x11/rxvt-unicode/Makefile1
-rw-r--r--x11/rxvt-unicode/files/patch-ad13
-rw-r--r--x11/rxvt/Makefile1
-rw-r--r--x11/rxvt/files/patch-ad13
5 files changed, 29 insertions, 4 deletions
diff --git a/x11/rxvt-devel/Makefile b/x11/rxvt-devel/Makefile
index 5d4ff73..03a0e54 100644
--- a/x11/rxvt-devel/Makefile
+++ b/x11/rxvt-devel/Makefile
@@ -10,6 +10,7 @@
PORTNAME= rxvt
PORTVERSION= 2.7.8
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \
ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \
@@ -120,6 +121,10 @@ pre-everything::
@${ECHO_MSG}
.endif
+post-patch:
+ @${PERL} -pi -e 's|(PTYCHAR2\s+"[^"]+)"|\1ghijklmnopqrstuv"|' \
+ ${WRKSRC}/src/ptytty.c
+
post-install:
@${CHMOD} 4711 ${PREFIX}/bin/rxvt
diff --git a/x11/rxvt-unicode/Makefile b/x11/rxvt-unicode/Makefile
index b219ca3..bace025 100644
--- a/x11/rxvt-unicode/Makefile
+++ b/x11/rxvt-unicode/Makefile
@@ -10,6 +10,7 @@
PORTNAME= rxvt
PORTVERSION= 2.6.4
+PORTREVISION= 1
CATEGORIES+= x11
MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \
ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \
diff --git a/x11/rxvt-unicode/files/patch-ad b/x11/rxvt-unicode/files/patch-ad
index 6f3e7e9..c057993 100644
--- a/x11/rxvt-unicode/files/patch-ad
+++ b/x11/rxvt-unicode/files/patch-ad
@@ -1,11 +1,20 @@
--- src/command.c.orig Thu Apr 5 03:52:39 2001
+++ src/command.c Fri Jun 22 13:36:57 2001
-@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm
+@@ -322,7 +322,7 @@
+ ttydev = tty_name;
+
+ # define PTYCHAR1 "pqrstuvwxyz"
+-# define PTYCHAR2 "0123456789abcdef"
++# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
+ for (c1 = PTYCHAR1; *c1; c1++) {
+ ptydev[len] = ttydev[len] = *c1;
+ for (c2 = PTYCHAR2; *c2; c2++) {
+@@ -2376,7 +2376,7 @@
unsigned char buf[256];
va_start(arg_ptr, fmt);
- vsprintf(buf, fmt, arg_ptr);
+ vsnprintf(buf, sizeof(buf), fmt, arg_ptr);
va_end(arg_ptr);
- rxvt_tt_write(r, buf, STRLEN(buf));
+ tt_write(buf, strlen(buf));
}
diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile
index b219ca3..bace025 100644
--- a/x11/rxvt/Makefile
+++ b/x11/rxvt/Makefile
@@ -10,6 +10,7 @@
PORTNAME= rxvt
PORTVERSION= 2.6.4
+PORTREVISION= 1
CATEGORIES+= x11
MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \
ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \
diff --git a/x11/rxvt/files/patch-ad b/x11/rxvt/files/patch-ad
index 6f3e7e9..c057993 100644
--- a/x11/rxvt/files/patch-ad
+++ b/x11/rxvt/files/patch-ad
@@ -1,11 +1,20 @@
--- src/command.c.orig Thu Apr 5 03:52:39 2001
+++ src/command.c Fri Jun 22 13:36:57 2001
-@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm
+@@ -322,7 +322,7 @@
+ ttydev = tty_name;
+
+ # define PTYCHAR1 "pqrstuvwxyz"
+-# define PTYCHAR2 "0123456789abcdef"
++# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
+ for (c1 = PTYCHAR1; *c1; c1++) {
+ ptydev[len] = ttydev[len] = *c1;
+ for (c2 = PTYCHAR2; *c2; c2++) {
+@@ -2376,7 +2376,7 @@
unsigned char buf[256];
va_start(arg_ptr, fmt);
- vsprintf(buf, fmt, arg_ptr);
+ vsnprintf(buf, sizeof(buf), fmt, arg_ptr);
va_end(arg_ptr);
- rxvt_tt_write(r, buf, STRLEN(buf));
+ tt_write(buf, strlen(buf));
}
OpenPOWER on IntegriCloud