1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Remove expired ports:

2007-05-15 devel/ups-debug: only runs on FreeBSD 4.X/386
2007-03-10 korean/han: Broken on all supported versions of FreeBSD
2007-05-11 net/tspc2: development is discontinued
This commit is contained in:
Gabor Kovesdan 2007-06-04 12:02:31 +00:00
parent cc34db3c75
commit 5f84e39be8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=192700
38 changed files with 3 additions and 970 deletions

3
MOVED
View File

@ -3049,3 +3049,6 @@ japanese/addttfont||2007-06-03|obsolete
japanese/p5-mkres||2007-06-03|obsolete
x11-toolkits/py-wmgeneral||2007-06-04|Renamed to x11-toolkits/py-wmdockapps
misc/gretl|math/gretl|2007-06-04|New category
devel/ups-debug||2007-06-04|Has expired: only runs on FreeBSD 4.X/386
korean/han||2007-06-04|Has expired: Broken on all supported versions of FreeBSD
net/tspc2||2007-06-04|Has expired: development is discontinued

View File

@ -2171,7 +2171,6 @@
SUBDIR += upnp104
SUBDIR += upp
SUBDIR += uppaal
SUBDIR += ups-debug
SUBDIR += ustl
SUBDIR += valgrind
SUBDIR += valgrind-snapshot

View File

@ -1,41 +0,0 @@
# ex:ts=8
# Ports collection makefile for: UPS
# Date created: Mon Feb 03, 1997
# Whom: David O'Brien (obrien@FreeBSD.org)
#
# $FreeBSD$
#
PORTNAME= ups
PORTVERSION= 3.38.b1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ups-3.38-beta1
MAINTAINER= ports@FreeBSD.org
COMMENT= X based source level debugger for C, C++, and Fortran
DEPRECATED= only runs on FreeBSD 4.X/386
EXPIRATION_DATE= 2007-05-15
IGNORE= only runs on FreeBSD 4.X/386
GNU_CONFIGURE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
ALL_TARGET= ups
MAN1= ups.1
DOCS= CHANGES FAQ README
ONLY_FOR_ARCHS= i386
post-install:
@${INSTALL_DATA} ${WRKSRC}/Ups ${X11BASE}/lib/X11/app-defaults
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
MD5 (ups-3.38-beta1.tar.gz) = 46b79feccf0889fd15001cc6711ade0b
SHA256 (ups-3.38-beta1.tar.gz) = 24bc2932b64e985880f971f064c5e8f7b386d15e70dd96346aec6f6577678801
SIZE (ups-3.38-beta1.tar.gz) = 2513693

View File

@ -1,38 +0,0 @@
--- ups/xc_builtins.c.orig Fri Feb 19 07:14:51 1999
+++ ups/xc_builtins.c Sun May 9 10:45:18 1999
@@ -61,7 +61,7 @@
static int builtin_read PROTO((int fd, void *buf, size_t nbytes));
static int builtin_write PROTO((int fd, const void *buf, size_t nbytes));
static int builtin_pipe PROTO((int *fds));
-static int builtin_lseek PROTO((int fd, off_t offset, int whence));
+static off_t builtin_lseek PROTO((int fd, off_t offset, int whence));
static int builtin_fcntl PROTO((int fd, int cmd, char *arg));
static int builtin_dup2 PROTO((int fd, int newfd));
static int builtin_dup PROTO((int fd));
@@ -71,7 +71,7 @@
#if HAVE_FLOCK
static int builtin_flock PROTO((int fd, int op));
#endif
-static int builtin_ftruncate PROTO((int fd, long length));
+static int builtin_ftruncate PROTO((int fd, off_t length));
static int builtin_ioctl PROTO((int fd, unsigned cmd, caddr_t arg));
static int builtin_fstat PROTO((int fd, struct stat *stbuf));
#if HAVE_X_WINDOWS
@@ -306,7 +306,7 @@
static int
builtin_ftruncate(fd, length)
int fd;
-long length;
+off_t length;
{
return fd_ok(fd) ? ftruncate(fd, (off_t)length) : -1;
}
@@ -329,7 +329,7 @@
return res;
}
-static int
+static off_t
builtin_lseek(fd, offset, whence)
int fd;
off_t offset;

View File

@ -1,48 +0,0 @@
--- configure.in.orig Mon Sep 30 20:26:28 2002
+++ configure.in Fri Nov 29 00:51:28 2002
@@ -981,13 +981,13 @@
AC_CACHE_VAL(ups_cv_var_global_files,[
ups_cv_var_global_files=no
if test $ups_cv_var_global_files = no ; then
- AC_EGREP_HEADER( __iob.*;, stdio.h, ups_cv_var_global_files=__iob)
+ AC_EGREP_HEADER( __iob\>.*;, stdio.h, ups_cv_var_global_files=__iob)
fi
if test $ups_cv_var_global_files = no ; then
- AC_EGREP_HEADER( _iob.*;, stdio.h, ups_cv_var_global_files=_iob)
+ AC_EGREP_HEADER( _iob\>.*;, stdio.h, ups_cv_var_global_files=_iob)
fi
if test $ups_cv_var_global_files = no ; then
- AC_EGREP_HEADER( __sF.*;, stdio.h, ups_cv_var_global_files=__sF)
+ AC_EGREP_HEADER( __sF\>.*;, stdio.h, ups_cv_var_global_files=__sF)
fi
])
case "$ups_cv_var_global_files" in
--- configure.orig Wed Oct 23 01:37:31 2002
+++ configure Fri Nov 29 00:51:12 2002
@@ -6624,7 +6624,7 @@
#include <stdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "__iob.*;" >/dev/null 2>&1; then
+ egrep "__iob\>.*;" >/dev/null 2>&1; then
rm -rf conftest*
ups_cv_var_global_files=__iob
fi
@@ -6638,7 +6638,7 @@
#include <stdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "_iob.*;" >/dev/null 2>&1; then
+ egrep "_iob\>.*;" >/dev/null 2>&1; then
rm -rf conftest*
ups_cv_var_global_files=_iob
fi
@@ -6652,7 +6652,7 @@
#include <stdio.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "__sF.*;" >/dev/null 2>&1; then
+ egrep "__sF\>.*;" >/dev/null 2>&1; then
rm -rf conftest*
ups_cv_var_global_files=__sF
fi

View File

@ -1,17 +0,0 @@
--- ups/ao_pt_regs.c.orig Wed Oct 23 01:07:46 2002
+++ ups/ao_pt_regs.c Fri Nov 29 01:01:58 2002
@@ -495,9 +495,13 @@
e_ptrace(PTRACE_GETDREGS, ip->ip_pid, (char *)&pr->dbregs, 0);
/* FreeBSD : .../sys/i386/i386/machdep.c
- * dr6 is status register, dr7 is control register.
+ * dr[6] is status register, dr[7] is control register.
*/
+#if (defined __FreeBSD__) && __FreeBSD_version >= 500043
+ return (pr->dbregs.dr[6] & 0x0000000f);
+#else
return (pr->dbregs.dr6 & 0x0000000f);
+#endif
}
/*

View File

@ -1,18 +0,0 @@
Ups is a X based source level debugger for the C, C++ and Fortran
programming languages. It supports both run time debugging with
breakpoints and post-mortem debugging from a core file. On Suns you can
attach ups to a running process. Ups runs in its own window, thus not
interfering with the target program's I/O. The ups window has two major
areas - one showing a structured document representing the target state,
the other showing the source that is being executed.
Ups makes heavy use of direct manipulation and feedback. When you add a
breakpoint it is shown as a pseudo C statement (#stop) in the source
display. The current point of execution is highlighted in the source
display and you can watch it move as you step through loops and function
calls. You can edit in fragments of interpreted C code (including
assignments to variables and calls to target functions). There are
powerful facilities for exploring linked data structures - you can
recursively expand and collapse structures to follow links.
WWW: http://ups.sourceforge.net/

View File

@ -1,7 +0,0 @@
@comment $FreeBSD$
bin/ups
lib/X11/app-defaults/Ups
%%PORTDOCS%%share/doc/ups/CHANGES
%%PORTDOCS%%share/doc/ups/FAQ
%%PORTDOCS%%share/doc/ups/README
%%PORTDOCS%%@dirrm share/doc/ups

View File

@ -19,7 +19,6 @@
SUBDIR += ghostscript-gnu-korfont
SUBDIR += gtkcomm
SUBDIR += h2ps
SUBDIR += han
SUBDIR += hanIM
SUBDIR += hanemacs
SUBDIR += hanmiscutils

View File

@ -1,44 +0,0 @@
# New ports collection makefile for: han
# Date created: 12 Apr 1997
# Whom: CHOI Junho <cjh@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= han
PORTVERSION= 1.0fb
PORTREVISION= 1
CATEGORIES= korean
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/FreeBSD-kr/distfiles/
MAINTAINER= cjh@FreeBSD.org
COMMENT= A hangul console
DEPRECATED= Broken on all supported versions of FreeBSD
EXPIRATION_DATE=2007-03-10
ONLY_FOR_ARCHS= i386
USE_GMAKE= YES
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
pre-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
${WRKSRC}/src/vt.c ${WRKSRC}/lib/mem.c
post-configure:
${SED} -e 's%%WRKSRC%%${WRKSRC}' \
-e 's%%PREFIX%%${PREFIX}' \
-e 's%%DISTDIR%%${DISTDIR}' \
${FILESDIR}/dotconfig > ${WRKSRC}/.config
${SED} -e 's%%WRKSRC%%${WRKSRC}' \
-e 's%%PREFIX%%${PREFIX}' \
-e 's%%DISTDIR%%${DISTDIR}' \
${FILESDIR}/han.sh > ${WRKSRC}/han.sh
.include <bsd.port.post.mk>

View File

@ -1,3 +0,0 @@
MD5 (han-1.0fb.tar.gz) = 54a39dd32e9292509a3fa75547a05963
SHA256 (han-1.0fb.tar.gz) = b54958f4173956648277623fc96450e04324b601f326f55e3273efcef6ab3395
SIZE (han-1.0fb.tar.gz) = 129138

View File

@ -1,18 +0,0 @@
INCDIR = %%WRKSRC%%/include
LIB = %%WRKSRC%%/lib/libgon.a
DISTDIR = %%DISTDIR%%
TOPDIR = %%PREFIX%%
BINDIR = $(TOPDIR)/bin
LIBDIR = $(TOPDIR)/etc
FONTDIR = $(TOPDIR)/share/fonts/han
CONFIG_NAME = han.cfg
OPTS = -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\" -I$(INCDIR)
CFLAGS = -O -Wall $(OPTS)
LD = gcc $(CFLAGS)
RM = rm -f
INSTALL = install -c -s
SUBDIRS = lib src font # tools
HAS_VGA = HAS_VGA
FLD_BDF = FLD_BDF

View File

@ -1,11 +0,0 @@
#!/bin/sh
#
# Wrapper script of han.
#
# 12 Apr 1997, Choi Jun Ho <junker@jazz.snu.ac.kr>
#
gzip -cd %%PREFIX%%/share/fonts/han/h16m.bdf.gz \
| %%PREFIX%%/bin/hanfld -t bdf -n
gzip -cd %%PREFIX%%/share/fonts/han/8x16pc.bdf.gz \
| %%PREFIX%%/bin/hanfld -t bdf -n
exec han.bin

View File

@ -1,52 +0,0 @@
--- src/vc.c.orig Tue Feb 20 23:38:10 2001
+++ src/vc.c Tue Feb 20 23:41:25 2001
@@ -37,7 +37,13 @@
#include <termio.h>
#elif defined(__FreeBSD__)
#include <termios.h>
-#include <machine/console.h>
+#include <osreldate.h>
+#if __FreeBSD_version >= 410000
+# include <sys/consio.h>
+# include <sys/kbio.h>
+#else
+# include <machine/console.h>
+#endif
#endif
#include <sys/ioctl.h>
#if defined(linux)
@@ -94,28 +100,26 @@
inline void blatch(void *head, int n)
{
- __asm__("\t clc\n"
+ __asm__ volatile("\t clc\n"
"1:\n"
"\t andb %%bl, (%%eax)\n"
"\t incl %%eax\n"
"\t loop 1b\n"
- :
- : "eax" ((long)head), "bl" (0x7F), "c" (n)
- : "bl", "cx" );
+ : "=bl" (head), "=c" (n)
+ : "eax" ((long)head), "0" (0x7F), "1" (n));
}
static
inline void llatch(void *head, int n)
{
- __asm__("\t clc\n"
+ __asm__ volatile("\t clc\n"
"1:\n"
"\t andl %%ebx, (%%eax)\n"
"\t addl $4, %%eax\n"
"\t loop 1b\n"
- :
- : "eax" ((long)head), "ebx" (0x7F7F7F7F), "c" (n>>2)
- : "ebx", "cx" );
+ : "=ebx" (head), "=c" (n)
+ : "eax" ((long)head), "0" (0x7F7F7F7F), "1" (n>>2));
}
static inline u_int TextAddress(u_int x, u_int y)

View File

@ -1,44 +0,0 @@
--- src/child.c.orig Sat Mar 29 05:29:53 1997
+++ src/child.c Sun Jul 16 12:48:02 2000
@@ -26,6 +26,7 @@
#ifdef __FreeBSD__
#include <errno.h>
+#include <sys/ioctl.h>
#endif
#include <getcap.h>
@@ -98,6 +99,9 @@
{
char *shell, *tail, *tcap;
char buff[80];
+#if defined(__FreeBSD__)
+ struct winsize win;
+#endif
setgid(getgid());
setuid(getuid());
@@ -107,6 +111,10 @@
sprintf(buff, "TERMCAP=:co#%d:li#%d:tc=console:",
dInfo.txmax + 1, dInfo.tymax + 1);
#elif defined(__FreeBSD__)
+ win.ws_row = dInfo.tymax + 1;
+ win.ws_col = dInfo.txmax + 1;
+ win.ws_xpixel = win.ws_ypixel = 0;
+ ioctl(STDIN_FILENO, TIOCSWINSZ, &win);
sprintf(buff,"TERM=vt100");
#endif
tcap = strdup(buff);
@@ -120,10 +128,10 @@
"HAN is free software, and you are welcome to redistribute it\r\n"
"HAN under certain conditions; show COPYING for details.\r\n");
#if defined(__FreeBSD__)
- printf("\rHAN for FreeBSD-2.x\r\n");
+ printf("\rHAN for FreeBSD\r\n");
#endif
}
- printf("HAN using VT number %c.\n\n",
+ printf("HAN using VT number %c.\r\n",
#if defined(linux)
*(ttyname(fileno(errfp))+8));
#elif defined(__FreeBSD__)

View File

@ -1,36 +0,0 @@
--- src/term.c.orig Sat Mar 29 04:36:54 1997
+++ src/term.c Tue Feb 20 23:43:44 2001
@@ -30,7 +30,13 @@
#include <termio.h>
#elif defined(__FreeBSD__)
#include <termios.h>
-#include <machine/console.h>
+#include <osreldate.h>
+#if __FreeBSD_version >= 410000
+# include <sys/consio.h>
+# include <sys/kbio.h>
+#else
+# include <machine/console.h>
+#endif
#define termio termios
#endif
#include <signal.h>
@@ -209,6 +215,9 @@
}
if (FD_ISSET(0, &readFds)) {
i = read(0, buff, BUFSIZ);
+#if defined(__FreeBSD__)
+ i = cons25tovt100(buff, i, BUFSIZ);
+#endif
#if 1
{
int k, l;
@@ -239,7 +248,7 @@
PollCursor(TRUE);
}
if (FD_ISSET(sockFd, &readFds)) SocketInterface(sockFd);
- if (mInfo.has_mouse) {
+ if (mInfo.has_mouse && mouseFd > 0) {
if (FD_ISSET(mouseFd, &readFds) && con.active) {
i = read(mouseFd, buff, BUFSIZ);
if (i > 0) MouseGetPacket(buff, i);

View File

@ -1,103 +0,0 @@
--- src/utmp.c.orig Fri Jan 24 09:37:28 1997
+++ src/utmp.c Sat Apr 26 21:50:30 1997
@@ -41,20 +41,32 @@
#include <utmp.h>
#include <grp.h>
#include <sys/stat.h>
+#if defined(__FreeBSD__)
+#include <ttyent.h>
+#endif
+#if !defined(__FreeBSD__)
static int ttyGid;
+#else
+static gid_t ttyGid;
+static int ts;
+#endif
void SetUtmp(char *tty)
{
-#ifdef linux
struct utmp utmp;
struct passwd *pw;
struct group *ttygrp;
char *tn;
+#if defined(__FreeBSD__)
+ struct ttyent *ttyp;
+ int fd, i;
+#endif
pw = getpwuid(getuid());
tn = rindex(tty, '/') + 1;
memset((char *)&utmp, 0, sizeof(utmp));
+#if !defined(__FreeBSD__)
strncpy(utmp.ut_id, tn + 3, sizeof(utmp.ut_id));
utmp.ut_type = DEAD_PROCESS;
setutent();
@@ -66,21 +78,43 @@
time(&(utmp.ut_time));
pututline(&utmp);
endutent();
+#else
+ time(&(utmp.ut_time));
+ strncpy(utmp.ut_name, pw->pw_name, sizeof(utmp.ut_name));
+ strncpy(utmp.ut_line, tn, sizeof(utmp.ut_line));
+ setttyent();
+ ts = 0;
+ for (i = 1; (ttyp = getttyent()); ++i)
+ if (!strcmp(ttyp->ty_name,tn)) {
+ ts = i;
+ break;
+ }
+ endttyent();
+ if (ts > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {
+ lseek(fd, (ts*sizeof(struct utmp)), L_SET);
+ write(fd, &utmp, sizeof(struct utmp));
+ close(fd);
+ }
+#endif
if ((ttygrp = getgrnam("tty")) != NULL)
ttyGid = ttygrp->gr_gid;
else
ttyGid = -1;
chmod(tty, 0622);
chown(tty, getuid(), ttyGid);
-#endif
}
void ResetUtmp(char *tty)
{
-#ifdef linux
+#if !defined(__FreeBSD__)
struct utmp utmp, *utp;
char *tn;
+#else
+ struct utmp utmp;
+ int fd;
+#endif
+#if !defined(__FreeBSD__)
tn = rindex(tty, '/') + 4;
memset((char *)&utmp, 0, sizeof(utmp));
strncpy(utmp.ut_id, tn, sizeof(utmp.ut_id));
@@ -93,7 +127,19 @@
time(&(utp->ut_time));
pututline(utp);
endutent();
+#else
+ if (ts > 0 && (fd = open(_PATH_UTMP, O_RDWR, 0)) >= 0) {
+ lseek(fd, (ts*sizeof(struct utmp)), L_SET);
+ if (read(fd, &utmp, sizeof(struct utmp)) == sizeof(struct utmp)) {
+ bzero(utmp.ut_name, sizeof(utmp.ut_name));
+ bzero(utmp.ut_host, sizeof(utmp.ut_host));
+ time(&utmp.ut_time);
+ lseek(fd, (ts*sizeof(struct utmp)), L_SET);
+ write(fd, &utmp, sizeof(struct utmp));
+ }
+ close(fd);
+ }
+#endif
chmod(tty, 0600);
chown(tty, 0, ttyGid);
-#endif
}

View File

@ -1,38 +0,0 @@
--- src/display/vga.c.orig Wed Apr 9 21:34:02 1997
+++ src/display/vga.c Tue Feb 20 23:39:29 2001
@@ -42,7 +42,13 @@
#elif defined(__FreeBSD__)
#include <vm/vm_param.h>
#include <sys/ioctl.h>
-#include <machine/console.h>
+#include <osreldate.h>
+#if __FreeBSD_version >= 410000
+# include <sys/consio.h>
+# include <sys/kbio.h>
+#else
+# include <machine/console.h>
+#endif
vm_size_t page_size;
#endif
#undef free
@@ -379,7 +385,7 @@
/* if (!code) return;*/
VgaSetColor(fc);
if (bc & 0x8) *(vcls - dInfo.glineByte) = 0;
- for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
+ if (code) for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
if (*code) {
VgaOutByte(*code);
*gram = *gram;
@@ -617,7 +623,11 @@
Perror("ioctl CONSOLE_IO_ENABLE/KDSETMODE");
return FAILURE;
}
+#if (__FreeBSD__ <= 3)
if ((devMem = open("/dev/vga", O_RDWR|O_NDELAY) ) < 0) {
+#else
+ if ((devMem = open("/dev/mem", O_RDWR|O_NDELAY) ) < 0) {
+#endif
Perror("/dev/mem");
return FAILURE;
}

View File

@ -1,25 +0,0 @@
--- include/vt.h.orig Fri Jan 24 16:08:13 1997
+++ include/vt.h Sat Aug 7 05:06:49 1999
@@ -59,7 +59,12 @@
ins,
active,
wrap,
+#if defined(__FreeBSD__)
+ text_mode,
+ cursor_key_mode;
+#else
text_mode;
+#endif
};
extern struct _con_info con;
@@ -75,6 +80,9 @@
extern void VtStart(void);
extern void VtEmu(const char*, int nchars);
extern void VtCleanup(void);
+#if defined(__FreeBSD__)
+extern int cons25tovt100(u_char *buff, int len, const int max);
+#endif
#define sjistojis(ch, cl)\
{\

View File

@ -1,159 +0,0 @@
--- src/vt.c.orig Sat Jan 25 17:55:02 1997
+++ src/vt.c Sat Aug 7 05:09:15 1999
@@ -185,6 +185,11 @@
static void VtSetMode(u_char mode, bool sw)
{
switch(mode) {
+#if defined(__FreeBSD__)
+ case 1:
+ con.cursor_key_mode = sw;
+ break;
+#endif
case 4:
con.ins = sw;
break;
@@ -654,4 +659,144 @@
con.sb = lInfo.sb;
con.db = lInfo.db|LATCH_1;
con.active = cInfo.sw = TRUE;
+#if defined(__FreeBSD__)
+ con.cursor_key_mode = FALSE;
+#endif
}
+
+#if defined(__FreeBSD__)
+
+static int ReplaceString(char *sp, const int len, const int maxlen,
+ const int oldlen, const char *newstr)
+{
+ int newlen, copylen, diff;
+
+ newlen = strlen(newstr);
+ diff = newlen - oldlen;
+ copylen = len - oldlen;
+
+ if(len + diff > maxlen){
+ diff -= (len + diff - maxlen);
+ copylen = maxlen - newlen;
+ }
+ if(copylen > 0)
+ memcpy(sp + newlen, sp + oldlen, copylen);
+
+ copylen = newlen;
+ if(newlen > maxlen){
+ copylen = maxlen;
+ diff = maxlen - len;
+ }
+ if(copylen > 0)
+ memcpy(sp, newstr, copylen);
+
+ return(diff);
+}
+
+int cons25tovt100(u_char *buff, int len, const int max)
+{
+ u_char *p;
+ int i;
+ int newlen = len;
+
+ p = buff;
+
+ for(i=0; i<newlen; i++, p++){
+ switch(*p){
+ case '\177':
+ newlen += ReplaceString(p, len-i, max-i, 1, "\x1b[3~");
+ i += 3; p += 3;
+ break;
+ case '\033': /* ESC */
+ if(i + 2 <= newlen && *(p+1) == '['){
+ switch(*(p+2)){
+ case 'A': /* up arrow */
+ if(con.cursor_key_mode)
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1bOA");
+ break;
+ case 'B': /* down arrow */
+ if(con.cursor_key_mode)
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1bOB");
+ break;
+ case 'C': /* right arrow */
+ if(con.cursor_key_mode)
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1bOC");
+ break;
+ case 'D': /* left arrow */
+ if(con.cursor_key_mode)
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1bOD");
+ break;
+ case 'L': /* insert */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[2~");
+ i++; p++;
+ break;
+ case 'H': /* home key */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[4~");
+ i++; p++;
+ break;
+ case 'I': /* prev page */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[5~");
+ i++; p++;
+ break;
+ case 'G': /* next page */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[6~");
+ i++; p++;
+ break;
+ case 'M': /* F1 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[11~");
+ i += 2; p += 2;
+ break;
+ case 'N': /* F2 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[12~");
+ i += 2; p += 2;
+ break;
+ case 'O': /* F3 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[13~");
+ i += 2; p += 2;
+ break;
+ case 'P': /* F4 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[14~");
+ i += 2; p += 2;
+ break;
+ case 'Q': /* F5 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[15~");
+ i += 2; p += 2;
+ break;
+ case 'R': /* F6 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[17~");
+ i += 2; p += 2;
+ break;
+ case 'S': /* F7 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[18~");
+ i += 2; p += 2;
+ break;
+ case 'T': /* F8 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[19~");
+ i += 2; p += 2;
+ break;
+ case 'U': /* F9 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[20~");
+ i += 2; p += 2;
+ break;
+ case 'V': /* F10 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[21~");
+ i += 2; p += 2;
+ break;
+ case 'W': /* F11 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[23~");
+ i += 2; p += 2;
+ break;
+ case 'X': /* F12 */
+ newlen += ReplaceString(p, len-i, max-i, 3, "\x1b[24~");
+ i += 2; p += 2;
+ break;
+ }
+ i += 2; p += 2;
+ }
+ }
+ }
+
+ return(newlen);
+}
+
+#endif

View File

@ -1,15 +0,0 @@
--- include/vga.h.orig Fri Jan 24 16:08:01 1997
+++ include/vga.h Mon Jan 31 14:13:08 2000
@@ -59,7 +59,11 @@
#if defined(linux)
#define GRAPH_BASE 0xA0000
#elif defined(__FreeBSD__)
-#define GRAPH_BASE 0x0
+# if (__FreeBSD__ <= 3)
+# define GRAPH_BASE 0x0
+# else
+# define GRAPH_BASE 0xA0000
+# endif
#endif
#define FONT_SIZE 0x2000

View File

@ -1,35 +0,0 @@
diff -ur include/mem.h.old include/mem.h
--- include/mem.h.old Tue Jan 25 20:16:57 2000
+++ include/mem.h Tue Jan 25 20:30:48 2000
@@ -46,6 +46,7 @@
"d" ((u_short) port));
}
+#if 0
static inline
void lzero(void *head, int n)
{
@@ -93,11 +94,23 @@
"D" ((long)head)
:"cx","di");
}
+#endif
extern u_char PortInb(u_short);
+#if 1
+#define bzero(b, len) bzero(b, len)
+#define bzero2(b, len) bzero(b, len)
+#define lzero(b, len) bzero(b, len)
+#define wzero(b, len) bzero(b, len)
+#define bmove(dst, src, len) bcopy(src, dst, len)
+#define brmove(dst, src, len) bcopy(src, dst, len)
+#define wmove(dst, src, len) bcopy(src, dst, len)
+#define lmove(dst, src, len) bcopy(src, dst, len)
+#else
extern void wzero(void *, int);
extern void wmove(void *, void *, int);
extern void lmove(void *, void *, int);
+#endif
extern void SafeFree(void **);
#endif

View File

@ -1,19 +0,0 @@
diff -ur lib/mem.c.old lib/mem.c
--- lib/mem.c.old Tue Jan 25 20:16:57 2000
+++ lib/mem.c Tue Jan 25 20:28:18 2000
@@ -44,6 +44,7 @@
return(_rval);
}
+#if 0
void wzero(void *head, int n)
{
__asm__ ("cld\n\t"
@@ -76,6 +77,7 @@
"S" ((long)src)
:"cx","di","si");
}
+#endif
void SafeFree(void **p)
{

View File

@ -1,12 +0,0 @@
diff -ur src/main.c.old src/main.c
--- src/main.c.old Tue Jan 25 20:16:57 2000
+++ src/main.c Tue Jan 25 20:32:52 2000
@@ -34,7 +34,7 @@
#include <version.h>
#include <term.h>
-void main(int argc, const char *argv[])
+int main(int argc, const char *argv[])
{
char *p;

View File

@ -1,12 +0,0 @@
--- src/mouse.c.orig Mon Jan 27 20:40:27 1997
+++ src/mouse.c Tue May 9 18:08:44 2000
@@ -176,7 +176,8 @@
mouseType = MOUSE_NONE;
mInfo.has_mouse = FALSE;
- sscanf(config, "%s", name);
+ strncpy(name, config, MAX_COLS - 1);
+ name[MAX_COLS - 1] = '\0';
for (p = mice; p->name != NULL; p++) {
if (strcasecmp(name, p->name) == 0) {
mouseType = p->type;

View File

@ -1,17 +0,0 @@
HAN
---
HAN is a hangul console. This is an alpha version. Supported video card is
VGA only, and, supported font are Minix/V and BDF. This program requires
shared memory. HAN is derived from KON, a Kanji COnsole for Linux/FreeBSD.
This version supports ko_KR.euc.
Orignal kon written by manabe@papilio.tutics.tut.ac.jp.
FreeBSD port of kon is done by ogura@st.rim.or.jp.
HAN written by nsroh@juno.kaist.ac.kr, hanmaum@baram.kaist.ac.kr.
FreeBSD port of HAN is done by yujeny@pandora.snu.ac.kr & cjh@FreeBSD.org.
--
CHOI Junho <cjh@FreeBSD.org>

View File

@ -1,8 +0,0 @@
bin/han
bin/han.bin
bin/hanfld
etc/han.cfg
share/fonts/han/8x16pc.bdf.gz
share/fonts/han/h16m.bdf.gz
@dirrm share/fonts/han
@dirrm share/fonts

View File

@ -878,7 +878,6 @@
SUBDIR += tshark
SUBDIR += tshark-lite
SUBDIR += tsocks
SUBDIR += tspc2
SUBDIR += ttlscan
SUBDIR += ttt
SUBDIR += tvark

View File

@ -1,33 +0,0 @@
# New ports collection makefile for: tspc2
# Date created: 11 July 2005
# Whom: pypt
#
# $FreeBSD$
#
PORTNAME= tspc2
PORTVERSION= 2.1.1
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.hexago.com/files/
DISTNAME= tspc-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= shirshegsm@gmail.com
COMMENT= TSP (Tunnel Setup Protocol) client from Freenet6
DEPRECATED= development is discontinued
EXPIRATION_DATE= 2007-05-11
WRKSRC= ${WRKDIR}/tspc2
MAN5= tspc.conf.5
MAN8= tspc.8
USE_RC_SUBR= tspc2.sh
MAKE_ARGS= target=freebsd installdir=${PREFIX}
post-patch:
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/conf/tspc.conf.in
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/platform/freebsd/tsp_local.c
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
MD5 (tspc-2.1.1-src.tgz) = 65183cae002feaacd8bc92d6a5404cc2
SHA256 (tspc-2.1.1-src.tgz) = 1fc6aa77a0badc567914c13700baacb84ca01e972b946ae6efb78cdf4eac1433
SIZE (tspc-2.1.1-src.tgz) = 1745514

View File

@ -1,21 +0,0 @@
--- Makefile.old Wed Jul 14 21:08:03 2004
+++ Makefile Mon Jul 11 16:41:46 2005
@@ -71,13 +71,14 @@
@mkdir -p $(install_bin)
@$(COPY) bin/$(TSPC) $(install_bin)
- @$(COPY) bin/tspc.conf.sample $(install_bin)
- @if [ ! -f $(install_bin)/tspc.conf ]; then \
- $(COPY) $(install_bin)/tspc.conf.sample $(install_bin)/tspc.conf; \
+ @mkdir -p $(installdir)/etc
+ @$(COPY) bin/tspc.conf.sample $(installdir)/etc
+
+ @if [ ! -f $(installdir)/etc/tspc.conf ]; then \
+ $(COPY) $(installdir)/etc/tspc.conf.sample $(installdir)/etc/tspc.conf; \
fi
- @$(COPY) GPL_LICENSE.txt $(installdir)
clean: pre-checks
@for dir in ${subdirs}; do \

View File

@ -1,11 +0,0 @@
--- Mk/mk-freebsd.mk.bak Fri Feb 13 01:05:08 2004
+++ Mk/mk-freebsd.mk Mon Jul 11 16:45:09 2005
@@ -26,7 +26,7 @@
install_bin=$(installdir)/bin
install_etc=$(installdir)/etc
install_lib=$(installdir)/lib
-install_template=$(installdir)/template
+install_template=$(installdir)/share/tspc2/template
install_man=$(installdir)/man
subdirs=src/net src/lib src/tsp src/xml platform/freebsd template conf man
ifname=gif0

View File

@ -1,11 +0,0 @@
--- conf/tspc.conf.in.bak Tue Jun 15 18:01:01 2004
+++ conf/tspc.conf.in Mon Jul 11 18:24:39 2005
@@ -24,7 +24,7 @@
# the only use is for the OS scripts which will be taken
# from $tsp_dir/template
#
-tsp_dir=@tsp_dir@
+tsp_dir=PREFIX/share/tspc2
#
# authentication method:

View File

@ -1,19 +0,0 @@
--- platform/freebsd/tsp_local.c.bak Wed Mar 31 00:27:35 2004
+++ platform/freebsd/tsp_local.c Mon Jul 11 18:12:14 2005
@@ -59,13 +59,13 @@
#include "tsp_tun.h" /* freebsd's tun */
-char *FileName = "tspc.conf";
-char *LogFile = "tspc.log";
+char *FileName = "PREFIX/etc/tspc.conf";
+char *LogFile = "/var/log/tspc.log";
char *LogFileName = NULL;
char *ScriptInterpretor = "/bin/sh";
char *ScriptExtension = "sh";
char *ScriptDir = NULL;
-char *TspHomeDir = "/usr/local/etc/tsp";
+char *TspHomeDir = "PREFIX/share/tspc2";
char DirSeparator = '/';
int Verbose = 0;

View File

@ -1,26 +0,0 @@
#!/bin/sh
case "$1" in
start)
%%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
echo -n ' tspc2'
;;
stop)
killall -TERM tspc
echo -n ' tspc2'
;;
restart)
killall -TERM tspc
%%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
echo 'tspc2 restarted'
;;
*)
echo "Usage: ${0##*/}: { start | stop | restart }" >&2
exit 64
;;
esac

View File

@ -1,12 +0,0 @@
Instead of a Web interface, which is usually offered by traditional tunnel
brokers, Freenet6 uses an innovative model based on the TSP Client. The TSP
Client is software that usually runs on a PC and that implements the Tunnel
Setup Protocol (TSP). The TSP Client is used to automatically negotiate a
configured tunnel between a PC or router and the Freenet6 tunnel broker,
making IPv6 easy to install and maintain. The TSP Client source code is
licensed under the GPL. A commercial license is also available.
WWW: http://www.hexago.com/
- Linas
shirshegsm@gmail.com

View File

@ -1,8 +0,0 @@
bin/tspc
etc/tspc.conf
etc/tspc.conf.sample
%%DATADIR%%/template/README
%%DATADIR%%/template/checktunnel.sh
%%DATADIR%%/template/freebsd.sh
@dirrm %%DATADIR%%/template
@dirrm %%DATADIR%%