summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-07-12 12:41:35 +0000
committerAlin Năstac <mrness@gentoo.org>2009-07-12 12:41:35 +0000
commitc54470c45bc34fdd46c0f11f012fd3bb2be135e8 (patch)
tree9ae353fa73058a5d5f29f263efc628c5fbfbaac2 /net-misc/x25_utils
parentalpha/ia64/sparc stable wrt #271889 (diff)
downloadgentoo-2-c54470c45bc34fdd46c0f11f012fd3bb2be135e8.tar.gz
gentoo-2-c54470c45bc34fdd46c0f11f012fd3bb2be135e8.tar.bz2
gentoo-2-c54470c45bc34fdd46c0f11f012fd3bb2be135e8.zip
Migrate to EAPI 2. Fix compile errors (#277166) and QA notices.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/x25_utils')
-rw-r--r--net-misc/x25_utils/ChangeLog11
-rw-r--r--net-misc/x25_utils/files/x25_utils-2.3.93-gentoo.patch215
-rw-r--r--net-misc/x25_utils/files/x25_utils-2.3.93.patch146
-rw-r--r--net-misc/x25_utils/x25_utils-2.3.93-r1.ebuild (renamed from net-misc/x25_utils/x25_utils-2.3.93.ebuild)18
4 files changed, 234 insertions, 156 deletions
diff --git a/net-misc/x25_utils/ChangeLog b/net-misc/x25_utils/ChangeLog
index 4faf7a635058..815139d9f595 100644
--- a/net-misc/x25_utils/ChangeLog
+++ b/net-misc/x25_utils/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/x25_utils
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/ChangeLog,v 1.2 2007/02/09 04:54:45 flameeyes Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/ChangeLog,v 1.3 2009/07/12 12:41:35 mrness Exp $
+
+*x25_utils-2.3.93-r1 (12 Jul 2009)
+
+ 12 Jul 2009; Alin Năstac <mrness@gentoo.org>
+ +files/x25_utils-2.3.93-gentoo.patch, -files/x25_utils-2.3.93.patch,
+ -x25_utils-2.3.93.ebuild, +x25_utils-2.3.93-r1.ebuild:
+ Migrate to EAPI 2. Fix compile errors (#277166) and QA notices.
09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/net-misc/x25_utils/files/x25_utils-2.3.93-gentoo.patch b/net-misc/x25_utils/files/x25_utils-2.3.93-gentoo.patch
new file mode 100644
index 000000000000..98da42a13777
--- /dev/null
+++ b/net-misc/x25_utils/files/x25_utils-2.3.93-gentoo.patch
@@ -0,0 +1,215 @@
+diff -Nru x25_utils-2.3.93.orig/libtelnet/misc.c x25_utils-2.3.93/libtelnet/misc.c
+--- x25_utils-2.3.93.orig/libtelnet/misc.c 1993-12-17 07:32:43.000000000 +0100
++++ x25_utils-2.3.93/libtelnet/misc.c 2009-07-12 14:26:35.000000000 +0200
+@@ -55,6 +55,8 @@
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
++#include <stdio.h>
++#include <stdlib.h>
+ #include "misc.h"
+
+ char *RemoteHostName;
+diff -Nru x25_utils-2.3.93.orig/Makefile x25_utils-2.3.93/Makefile
+--- x25_utils-2.3.93.orig/Makefile 2000-10-20 16:14:28.000000000 +0200
++++ x25_utils-2.3.93/Makefile 2009-07-12 14:26:35.000000000 +0200
+@@ -43,7 +43,7 @@
+ SUB = libtelnet telnet telnetd trace route
+
+ all:
+- for i in $(SUB); do make -C $$i; done
++ for i in $(SUB); do make -C $$i || exit 1; done
+
+ install:
+ for i in $(SUB); do make -C $$i install; done
+diff -Nru x25_utils-2.3.93.orig/telnet/commands.c x25_utils-2.3.93/telnet/commands.c
+--- x25_utils-2.3.93.orig/telnet/commands.c 1996-12-15 23:00:16.000000000 +0100
++++ x25_utils-2.3.93/telnet/commands.c 2009-07-12 14:26:35.000000000 +0200
+@@ -55,7 +55,6 @@
+ #include <netdb.h>
+ #include <ctype.h>
+ #include <pwd.h>
+-#include <varargs.h>
+ #include <errno.h>
+
+ #include <arpa/inet.h>
+@@ -80,7 +79,7 @@
+
+ #ifndef MAXHOSTNAMELEN
+ #define MAXHOSTNAMELEN 64
+-#endif MAXHOSTNAMELEN
++#endif /* MAXHOSTNAMELEN */
+
+ char *hostname;
+ static char _hostname[MAXHOSTNAMELEN];
+@@ -91,7 +90,7 @@
+ extern char **genget();
+ extern int Ambiguous();
+
+-static call();
++static call(void *fmt, ...);
+
+ typedef struct {
+ char *name; /* command name */
+@@ -2330,8 +2329,7 @@
+
+ /*VARARGS1*/
+ static
+-call(va_alist)
+- va_dcl
++call(void *fmt, ...)
+ {
+ va_list ap;
+ typedef int (*intrtn_t)();
+@@ -2339,7 +2337,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) {
+ ;
+diff -Nru x25_utils-2.3.93.orig/telnet/externs.h x25_utils-2.3.93/telnet/externs.h
+--- x25_utils-2.3.93.orig/telnet/externs.h 1994-07-26 12:53:03.000000000 +0200
++++ x25_utils-2.3.93/telnet/externs.h 2009-07-12 14:26:35.000000000 +0200
+@@ -43,6 +43,9 @@
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <stdarg.h>
+ #include <setjmp.h>
+ #include <linux/ioctl.h>
+ #include <features.h>
+diff -Nru x25_utils-2.3.93.orig/telnet/ring.c x25_utils-2.3.93/telnet/ring.c
+--- x25_utils-2.3.93.orig/telnet/ring.c 1993-12-17 08:18:19.000000000 +0100
++++ x25_utils-2.3.93/telnet/ring.c 2009-07-12 14:26:35.000000000 +0200
+@@ -62,6 +62,7 @@
+
+ #include "ring.h"
+ #include "general.h"
++#include "externs.h"
+
+ /* Internal macros */
+
+diff -Nru x25_utils-2.3.93.orig/telnet/sys_bsd.c x25_utils-2.3.93/telnet/sys_bsd.c
+--- x25_utils-2.3.93.orig/telnet/sys_bsd.c 2000-10-20 17:07:34.000000000 +0200
++++ x25_utils-2.3.93/telnet/sys_bsd.c 2009-07-12 14:26:35.000000000 +0200
+@@ -111,6 +111,12 @@
+
+ static fd_set ibits, obits, xbits;
+
++#ifdef SIGTSTP
++static SIG_FUNC_RET susp();
++#endif /* SIGTSTP */
++#ifdef SIGINFO
++static SIG_FUNC_RET ayt();
++#endif /* SIGINFO */
+
+ void
+ init_sys()
+@@ -600,18 +606,11 @@
+
+ if (f != -1) {
+ #ifdef SIGTSTP
+- static SIG_FUNC_RET susp();
+-#endif /* SIGTSTP */
+-#ifdef SIGINFO
+- static SIG_FUNC_RET ayt();
+-#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 +652,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))); */
+diff -Nru x25_utils-2.3.93.orig/telnet/telnet.c x25_utils-2.3.93/telnet/telnet.c
+--- x25_utils-2.3.93.orig/telnet/telnet.c 1996-12-15 22:38:11.000000000 +0100
++++ x25_utils-2.3.93/telnet/telnet.c 2009-07-12 14:28:11.000000000 +0200
+@@ -193,7 +193,6 @@
+
+
+ #ifdef notdef
+-#include <varargs.h>
+
+ /*VARARGS*/
+ static void
+@@ -825,7 +824,7 @@
+
+ TerminalSpeeds(&ispeed, &ospeed);
+
+- sprintf((char *)temp, "%c%c%c%c%d,%d%c%c", IAC, SB, TELOPT_TSPEED,
++ sprintf((char *)temp, "%c%c%c%c%ld,%ld%c%c", IAC, SB, TELOPT_TSPEED,
+ TELQUAL_IS, ospeed, ispeed, IAC, SE);
+ len = strlen((char *)temp+4) + 4; /* temp[3] is 0 ... */
+
+diff -Nru x25_utils-2.3.93.orig/telnetd/sys_term.c x25_utils-2.3.93/telnetd/sys_term.c
+--- x25_utils-2.3.93.orig/telnetd/sys_term.c 2000-12-01 00:22:49.000000000 +0100
++++ x25_utils-2.3.93/telnetd/sys_term.c 2009-07-12 14:26:35.000000000 +0200
+@@ -39,6 +39,8 @@
+ static char rcsid[] = "$Id: x25_utils-2.3.93-gentoo.patch,v 1.1 2009/07/12 12:41:35 mrness Exp $";
+ #endif /* not lint */
+
++#include <stdint.h>
++#include <time.h>
+ #include "telnetd.h"
+ #include "pathnames.h"
+
+@@ -1380,14 +1382,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 -Nru x25_utils-2.3.93.orig/telnetd/telnetd.c x25_utils-2.3.93/telnetd/telnetd.c
+--- x25_utils-2.3.93.orig/telnetd/telnetd.c 2000-11-27 22:43:43.000000000 +0100
++++ x25_utils-2.3.93/telnetd/telnetd.c 2009-07-12 14:32:26.000000000 +0200
+@@ -249,7 +249,7 @@
+ #endif /* AUTHENTICATE */
+
+ default:
+- fprintf(stderr, "telnetd: %s: unknown option\n", ch);
++ fprintf(stderr, "telnetd: %c: unknown option\n", ch);
+ /* FALLTHROUGH */
+ case '?':
+ usage();
+diff -Nru x25_utils-2.3.93.orig/telnetd/utility.c x25_utils-2.3.93/telnetd/utility.c
+--- x25_utils-2.3.93.orig/telnetd/utility.c 2000-12-07 19:50:37.000000000 +0100
++++ x25_utils-2.3.93/telnetd/utility.c 2009-07-12 14:26:35.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
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
deleted file mode 100644
index 83c1cf3033be..000000000000
--- a/net-misc/x25_utils/files/x25_utils-2.3.93.patch
+++ /dev/null
@@ -1,146 +0,0 @@
---- Makefile.orig 2000-10-20 16:14:28.000000000 +0200
-+++ Makefile 2005-08-21 05:39:41.000000000 +0200
-@@ -43,7 +43,7 @@
- SUB = libtelnet telnet telnetd trace route
-
- all:
-- for i in $(SUB); do make -C $$i; done
-+ for i in $(SUB); do make -C $$i || exit 1; done
-
- install:
- for i in $(SUB); do make -C $$i install; done
---- 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.2 2005/08/21 03:43:17 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/x25_utils-2.3.93.ebuild b/net-misc/x25_utils/x25_utils-2.3.93-r1.ebuild
index 82f211e6dbaf..9325ddd9fe24 100644
--- a/net-misc/x25_utils/x25_utils-2.3.93.ebuild
+++ b/net-misc/x25_utils/x25_utils-2.3.93-r1.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2009 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.3 2005/08/21 03:43:17 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x25_utils/x25_utils-2.3.93-r1.ebuild,v 1.1 2009/07/12 12:41:35 mrness Exp $
+
+EAPI="2"
inherit eutils linux-info
@@ -10,19 +12,19 @@ SRC_URI="http://www.baty.hanse.de/linux-x25/utils/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~x86 ~amd64"
+KEYWORDS="~amd64 ~x86"
IUSE=""
+
DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
pkg_setup() {
- CONFIG_CHECK="X25"
+ CONFIG_CHECK="~X25"
linux-info_pkg_setup
}
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}.patch"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
}
src_compile() {