summaryrefslogtreecommitdiffstats
path: root/net/ztelnet
diff options
context:
space:
mode:
Diffstat (limited to 'net/ztelnet')
-rw-r--r--net/ztelnet/Makefile5
-rw-r--r--net/ztelnet/files/patch-al7
2 files changed, 5 insertions, 7 deletions
diff --git a/net/ztelnet/Makefile b/net/ztelnet/Makefile
index ebc1820..347f46c 100644
--- a/net/ztelnet/Makefile
+++ b/net/ztelnet/Makefile
@@ -13,6 +13,7 @@
PORTNAME= ztelnet
PORTVERSION= 1.0.p3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/unix-app/net/ztelnet/
DISTFILES= ztelnet-linux.tar.gz ztelnet-patch.tar.gz \
@@ -30,10 +31,6 @@ PLIST_FILES= bin/ztelnet
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502126
-BROKEN= "Install fails on FreeBSD >= 5.x"
-.endif
-
post-patch:
# we can ignore warnings
@( cd ${WRKSRC}/ztelnet && \
diff --git a/net/ztelnet/files/patch-al b/net/ztelnet/files/patch-al
index 2af81d1..29dc4f4 100644
--- a/net/ztelnet/files/patch-al
+++ b/net/ztelnet/files/patch-al
@@ -18,7 +18,7 @@
typedef struct {
char *name; /* command name */
char *help; /* help string (NULL for no help) */
-@@ -93,6 +91,10 @@
+@@ -93,6 +91,12 @@
static int margc;
static char *margv[20];
@@ -26,6 +26,8 @@
+ void send_dont();
+ void send_will();
+ void send_do();
++ typedef int (*intrtn_t)();
++ static call(intrtn_t routine, ...);
static void
makeargv()
{
@@ -148,14 +150,13 @@
static Command cmdtab[] = {
{ "close", closehelp, bye, 1 },
-@@ -2548,18 +2528,14 @@
+@@ -2548,18 +2528,13 @@
*/
/*VARARGS1*/
- static
-call(va_alist)
- va_dcl
-+typedef int (*intrtn_t)();
+static call(intrtn_t routine, ...)
{
va_list ap;
OpenPOWER on IntegriCloud