summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2005-08-21 03:18:45 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2005-08-21 03:18:45 +0000
commit52b97556514690de70e1f0445a9d4b54c00db59c (patch)
tree8e6efb9647ecc16649b605f5254d84f6c0507827
parentNew snapshot of kdrive, a pack of tiny X servers. Perhaps the most interestin... (diff)
downloadhistorical-52b97556514690de70e1f0445a9d4b54c00db59c.tar.gz
historical-52b97556514690de70e1f0445a9d4b54c00db59c.tar.bz2
historical-52b97556514690de70e1f0445a9d4b54c00db59c.zip
initial commit, including gcc3 and 64-Bit patches.
Package-Manager: portage-2.0.51.22-r2
-rw-r--r--net-misc/x25_utils/ChangeLog10
-rw-r--r--net-misc/x25_utils/Manifest5
-rw-r--r--net-misc/x25_utils/files/digest-x25_utils-2.3.931
-rw-r--r--net-misc/x25_utils/files/x25_utils-2.3.93.patch135
-rw-r--r--net-misc/x25_utils/metadata.xml13
-rw-r--r--net-misc/x25_utils/x25_utils-2.3.93.ebuild47
6 files changed, 211 insertions, 0 deletions
diff --git a/net-misc/x25_utils/ChangeLog b/net-misc/x25_utils/ChangeLog
new file mode 100644
index 000000000000..1b931e50bf2b
--- /dev/null
+++ b/net-misc/x25_utils/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/x25_utils
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/ChangeLog,v 1.1 2005/08/21 03:18:45 sbriesen Exp $
+
+*x25_utils-2.3.93 (21 Aug 2005)
+
+ 21 Aug 2005; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/x25_utils-2.3.93.patch, +metadata.xml, +x25_utils-2.3.93.ebuild:
+ initial commit, including gcc3 and 64-Bit patches.
+
diff --git a/net-misc/x25_utils/Manifest b/net-misc/x25_utils/Manifest
new file mode 100644
index 000000000000..af5b84087b43
--- /dev/null
+++ b/net-misc/x25_utils/Manifest
@@ -0,0 +1,5 @@
+MD5 2fe34f0f6f58d4443228928a925f5ce9 x25_utils-2.3.93.ebuild 1150
+MD5 bef3ef4b0172a1ba7bcceebd9169961c ChangeLog 427
+MD5 6a99c12d9ee65e9e37afbaf998a322da metadata.xml 435
+MD5 23250f180c2838e32cbdaf418936b613 files/digest-x25_utils-2.3.93 68
+MD5 a3b3364bc01e755141961edc9052c96c files/x25_utils-2.3.93.patch 3234
diff --git a/net-misc/x25_utils/files/digest-x25_utils-2.3.93 b/net-misc/x25_utils/files/digest-x25_utils-2.3.93
new file mode 100644
index 000000000000..09c008871cd4
--- /dev/null
+++ b/net-misc/x25_utils/files/digest-x25_utils-2.3.93
@@ -0,0 +1 @@
+MD5 bb42121695231ba0812df3964284afca x25_utils-2.3.93.tar.gz 148467
diff --git a/net-misc/x25_utils/files/x25_utils-2.3.93.patch b/net-misc/x25_utils/files/x25_utils-2.3.93.patch
new file mode 100644
index 000000000000..d0c056471f19
--- /dev/null
+++ b/net-misc/x25_utils/files/x25_utils-2.3.93.patch
@@ -0,0 +1,135 @@
+--- telnet/commands.c.orig 1996-12-15 23:00:16.000000000 +0100
++++ telnet/commands.c 2005-08-21 04:47:29.000000000 +0200
+@@ -55,7 +55,8 @@
+ #include <netdb.h>
+ #include <ctype.h>
+ #include <pwd.h>
+-#include <varargs.h>
++#include <stdio.h>
++#include <stdarg.h>
+ #include <errno.h>
+
+ #include <arpa/inet.h>
+@@ -80,7 +81,7 @@
+
+ #ifndef MAXHOSTNAMELEN
+ #define MAXHOSTNAMELEN 64
+-#endif MAXHOSTNAMELEN
++#endif /* MAXHOSTNAMELEN */
+
+ char *hostname;
+ static char _hostname[MAXHOSTNAMELEN];
+@@ -91,7 +92,7 @@
+ extern char **genget();
+ extern int Ambiguous();
+
+-static call();
++static call(void *fmt, ...);
+
+ typedef struct {
+ char *name; /* command name */
+@@ -2330,8 +2331,7 @@
+
+ /*VARARGS1*/
+ static
+-call(va_alist)
+- va_dcl
++call(void *fmt, ...)
+ {
+ va_list ap;
+ typedef int (*intrtn_t)();
+@@ -2339,7 +2339,7 @@
+ char *args[100];
+ int argno = 0;
+
+- va_start(ap);
++ va_start(ap, fmt);
+ routine = (va_arg(ap, intrtn_t));
+ while ((args[argno++] = va_arg(ap, char *)) != 0) {
+ ;
+--- telnet/sys_bsd.c.orig 2000-10-20 17:07:34.000000000 +0200
++++ telnet/sys_bsd.c 2005-08-21 04:47:29.000000000 +0200
+@@ -604,14 +604,14 @@
+ #endif /* SIGTSTP */
+ #ifdef SIGINFO
+ static SIG_FUNC_RET ayt();
+-#endif SIGINFO
++#endif /* SIGINFO */
+
+ #ifdef SIGTSTP
+ (void) signal(SIGTSTP, susp);
+ #endif /* SIGTSTP */
+ #ifdef SIGINFO
+ (void) signal(SIGINFO, ayt);
+-#endif SIGINFO
++#endif /* SIGINFO */
+ #if defined(USE_TERMIO) && defined(NOKERNINFO)
+ tmp_tc.c_lflag |= NOKERNINFO;
+ #endif
+@@ -653,7 +653,7 @@
+ } else {
+ #ifdef SIGINFO
+ (void) signal(SIGINFO, ayt_status);
+-#endif SIGINFO
++#endif /* SIGINFO */
+ #ifdef SIGTSTP
+ (void) signal(SIGTSTP, SIG_DFL);
+ /* (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1))); */
+--- telnet/telnet.c.orig 1996-12-15 22:38:11.000000000 +0100
++++ telnet/telnet.c 2005-08-21 04:49:44.000000000 +0200
+@@ -50,6 +50,7 @@
+ #include <sgtty.h>
+
+ #include <ctype.h>
++#include <stdlib.h>
+
+ #include "ring.h"
+
+@@ -193,7 +194,7 @@
+
+
+ #ifdef notdef
+-#include <varargs.h>
++#include <stdarg.h>
+
+ /*VARARGS*/
+ static void
+--- telnetd/utility.c.orig 2000-12-07 19:50:37.000000000 +0100
++++ telnetd/utility.c 2005-08-21 04:47:29.000000000 +0200
+@@ -40,6 +40,7 @@
+ #include <sys/utsname.h>
+ #include "telnetd.h"
+ #include <string.h>
++#include <time.h>
+
+ /*
+ * utility functions performing io related tasks
+--- telnetd/sys_term.c.orig 2000-12-01 00:22:49.000000000 +0100
++++ telnetd/sys_term.c 2005-08-21 04:54:01.000000000 +0200
+@@ -39,6 +39,7 @@
+ static char rcsid[] = "$Id: x25_utils-2.3.93.patch,v 1.1 2005/08/21 03:18:45 sbriesen Exp $";
+ #endif /* not lint */
+
++#include <stdint.h>
+ #include "telnetd.h"
+ #include "pathnames.h"
+
+@@ -1380,14 +1381,14 @@
+ }
+ for (cpp = argv; *cpp; cpp++)
+ ;
+- if (cpp == &argv[(int)argv[-1]]) {
++ if (cpp == &argv[(intptr_t)argv[-1]]) {
+ --argv;
+- *argv = (char *)((int)(*argv) + 10);
+- argv = (char **)realloc(argv, (int)(*argv) + 2);
++ *argv = (char *)((intptr_t)(*argv) + 10);
++ argv = (char **)realloc(argv, (intptr_t)(*argv) + 2);
+ if (argv == NULL)
+ return(NULL);
+ argv++;
+- cpp = &argv[(int)argv[-1] - 10];
++ cpp = &argv[(intptr_t)argv[-1] - 10];
+ }
+ *cpp++ = val;
+ *cpp = 0;
diff --git a/net-misc/x25_utils/metadata.xml b/net-misc/x25_utils/metadata.xml
new file mode 100644
index 000000000000..fe4a452e2918
--- /dev/null
+++ b/net-misc/x25_utils/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-dialup</herd>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+ <longdescription lang="en">
+ These utilities include the utilities x25route, x25trace and a
+ telnet client and a daemon for testing and as examples.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-misc/x25_utils/x25_utils-2.3.93.ebuild b/net-misc/x25_utils/x25_utils-2.3.93.ebuild
new file mode 100644
index 000000000000..4cafdeb49066
--- /dev/null
+++ b/net-misc/x25_utils/x25_utils-2.3.93.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/x25_utils-2.3.93.ebuild,v 1.1 2005/08/21 03:18:45 sbriesen Exp $
+
+inherit eutils linux-info
+
+DESCRIPTION="Utilities to configure X.25 networks"
+HOMEPAGE="http://www.baty.hanse.de/"
+SRC_URI="http://www.baty.hanse.de/linux-x25/utils/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+DEPEND="sys-libs/ncurses"
+
+pkg_setup() {
+ CONFIG_CHECK="X25"
+ linux-info_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # patch Makefile to catch errors
+ sed -i -e "s:\(\$\$i\);:\1 || exit;:g" Makefile
+
+ # patch telnet/telnetd
+ epatch "${FILESDIR}/${P}.patch"
+}
+
+src_compile() {
+ emake -j1 O="${CFLAGS} -Wno-trigraphs" || die "emake failed"
+}
+
+src_install() {
+ newbin telnet/telnet x25telnet
+ newsbin telnetd/telnetd x25.telnetd
+ dosbin route/x25route trace/x25trace
+ newman telnet/telnet.1 x25telnet.1
+ newman telnetd/telnetd.8 x25.telnetd.8
+ doman route/x25route.8 trace/x25trace.8
+ newdoc trace/Changes Changes.x25trace
+ newdoc telnet/README README.telnet
+ dodoc Changes README
+}