diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-29 23:45:25 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-29 23:45:25 +0000 |
commit | ba2c03cef6151a27384797fc60d167d0a3675089 (patch) | |
tree | df54e0d1c5f02f03553c76d49ffeae0137f85fe3 /net/ztelnet | |
parent | 90d6883398d353dc4ad39890051f40e6cc00b75d (diff) | |
download | ports-ba2c03cef6151a27384797fc60d167d0a3675089.tar.gz ports-ba2c03cef6151a27384797fc60d167d0a3675089.zip |
Notes
Diffstat (limited to 'net/ztelnet')
-rw-r--r-- | net/ztelnet/Makefile | 8 | ||||
-rw-r--r-- | net/ztelnet/files/patch-ad | 8 | ||||
-rw-r--r-- | net/ztelnet/files/patch-al | 65 |
3 files changed, 57 insertions, 24 deletions
diff --git a/net/ztelnet/Makefile b/net/ztelnet/Makefile index 989f5d8b9e22..b02fbef35a2a 100644 --- a/net/ztelnet/Makefile +++ b/net/ztelnet/Makefile @@ -28,12 +28,6 @@ PATCH_STRIP= -p1 MAN1= ztelnet.1 PLIST_FILES= bin/ztelnet -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 501000 -BROKEN= "Does not compile" -.endif - post-patch: # we can ignore warnings @( cd ${WRKSRC}/ztelnet && \ @@ -55,4 +49,4 @@ do-install: ${INSTALL_PROGRAM} telnet/telnet ${PREFIX}/bin/ztelnet ${INSTALL_MAN} ${WRKSRC}/ztelnet.1 ${PREFIX}/man/man1/ztelnet.1 -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net/ztelnet/files/patch-ad b/net/ztelnet/files/patch-ad index 3fc02416779e..dfcbe025fedb 100644 --- a/net/ztelnet/files/patch-ad +++ b/net/ztelnet/files/patch-ad @@ -1,6 +1,5 @@ -diff -uNr --exclude=*.orig work.old/ztelnet/Config.generic work/ztelnet/Config.generic ---- work.old/ztelnet/Config.generic Thu Sep 21 04:53:28 1995 -+++ work/ztelnet/Config.generic Tue Jun 20 22:58:33 2000 +--- work/ztelnet/Config.generic.orig Wed Sep 20 21:53:28 1995 ++++ work/ztelnet/Config.generic Sun May 30 01:40:50 2004 @@ -183,23 +183,22 @@ @echo " dynix3.0.12 dynix3.0.17" @echo " ultrix3.1 ultrix4.0" @@ -10,8 +9,9 @@ diff -uNr --exclude=*.orig work.old/ztelnet/Config.generic work/ztelnet/Config.g 4.4bsd 4.3reno: make -f Makefile.generic ${WHAT} \ - LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a" \ +- LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \ + LIBS="-lutil -lcurses -lncurses ../libtelnet/libtelnet.a ../zmodem/librzsz.a" \ - LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \ ++ LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \ ../libtelnet/libtelnet.a" \ DEST=${DESTDIR}/usr/bin \ - DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \ diff --git a/net/ztelnet/files/patch-al b/net/ztelnet/files/patch-al index 6450e7cae415..2af81d1c951f 100644 --- a/net/ztelnet/files/patch-al +++ b/net/ztelnet/files/patch-al @@ -1,7 +1,24 @@ -diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telnet/commands.c ---- work.old/ztelnet/telnet/commands.c Wed Sep 20 09:03:45 1995 -+++ work/ztelnet/telnet/commands.c Tue Jun 20 22:58:31 2000 -@@ -93,6 +93,10 @@ +--- work/ztelnet/telnet/commands.c.orig Wed Sep 20 02:03:45 1995 ++++ work/ztelnet/telnet/commands.c Sun May 30 01:37:06 2004 +@@ -40,7 +40,7 @@ + #include <netdb.h> + #include <ctype.h> + #include <pwd.h> +-#include <varargs.h> ++#include <stdarg.h> + #include <errno.h> + + #include <arpa/telnet.h> +@@ -79,8 +79,6 @@ + extern char **genget(); + extern int Ambiguous(); + +-static call(); +- + typedef struct { + char *name; /* command name */ + char *help; /* help string (NULL for no help) */ +@@ -93,6 +91,10 @@ static int margc; static char *margv[20]; @@ -12,7 +29,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne static void makeargv() { -@@ -230,10 +234,8 @@ +@@ -230,10 +232,8 @@ int nbyte; /* Number of bytes to send this command */ int what; /* Character to be sent (<0 ==> special) */ }; @@ -24,7 +41,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne static int send_esc P((void)), send_help P((void)), -@@ -370,7 +372,6 @@ +@@ -370,7 +370,6 @@ send_docmd(name) char *name; { @@ -32,7 +49,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne return(send_tncmd(send_do, "do", name)); } -@@ -378,21 +379,18 @@ +@@ -378,21 +377,18 @@ send_dontcmd(name) char *name; { @@ -54,7 +71,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne return(send_tncmd(send_wont, "wont", name)); } -@@ -590,11 +588,8 @@ +@@ -590,11 +586,8 @@ return 1; } @@ -67,7 +84,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne #if defined(AUTHENTICATE) extern int auth_togdebug P((int)); #endif -@@ -828,12 +823,8 @@ +@@ -828,12 +821,8 @@ */ #ifdef USE_TERMIO @@ -80,7 +97,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne struct setlist { char *name; /* name */ -@@ -1559,9 +1550,6 @@ +@@ -1559,9 +1548,6 @@ int arg; }; @@ -90,7 +107,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne static void slc_help(); struct slclist SlcList[] = { -@@ -1640,15 +1628,13 @@ +@@ -1640,15 +1626,13 @@ extern struct env_lst * env_define P((unsigned char *, unsigned char *)); @@ -109,7 +126,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne struct envlist EnvList[] = { { "define", "Define an environment variable", -@@ -2232,7 +2218,7 @@ +@@ -2232,7 +2216,7 @@ register struct hostent *host = 0; struct sockaddr_in sin; struct servent *sp = 0; @@ -118,7 +135,7 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne extern char *inet_ntoa(); #if defined(IP_OPTIONS) && defined(IPPROTO_IP) char *srp = 0, *strrchr(); -@@ -2489,11 +2475,7 @@ +@@ -2489,11 +2473,7 @@ envhelp[] = "change environment variables ('environ ?' for more)", modestring[] = "try to enter line or character mode ('mode ?' for more)"; @@ -131,3 +148,25 @@ diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telne static Command cmdtab[] = { { "close", closehelp, bye, 1 }, +@@ -2548,18 +2528,14 @@ + */ + + /*VARARGS1*/ +- static +-call(va_alist) +- va_dcl ++typedef int (*intrtn_t)(); ++static call(intrtn_t routine, ...) + { + va_list ap; +- typedef int (*intrtn_t)(); +- intrtn_t routine; + char *args[100]; + int argno = 0; + +- va_start(ap); +- routine = (va_arg(ap, intrtn_t)); ++ va_start(ap, routine); + while ((args[argno++] = va_arg(ap, char *)) != 0) { + ; + } |