diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-07-12 12:41:35 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-07-12 12:41:35 +0000 |
commit | f1092ece4dbc447806ef52a29d44b89be53537f1 (patch) | |
tree | d22f1b1d1e6974d6300558d667c2bab60978193c /net-misc/x25_utils | |
parent | alpha/ia64/sparc stable wrt #271889 (diff) | |
download | historical-f1092ece4dbc447806ef52a29d44b89be53537f1.tar.gz historical-f1092ece4dbc447806ef52a29d44b89be53537f1.tar.bz2 historical-f1092ece4dbc447806ef52a29d44b89be53537f1.zip |
Migrate to EAPI 2. Fix compile errors (#277166) and QA notices.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'net-misc/x25_utils')
-rw-r--r-- | net-misc/x25_utils/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/x25_utils/Manifest | 16 | ||||
-rw-r--r-- | net-misc/x25_utils/files/x25_utils-2.3.93-gentoo.patch | 215 | ||||
-rw-r--r-- | net-misc/x25_utils/files/x25_utils-2.3.93.patch | 146 | ||||
-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 |
5 files changed, 247 insertions, 159 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/Manifest b/net-misc/x25_utils/Manifest index aaf91ddbb3de..b1b0cbf36d35 100644 --- a/net-misc/x25_utils/Manifest +++ b/net-misc/x25_utils/Manifest @@ -1,5 +1,15 @@ -AUX x25_utils-2.3.93.patch 3560 RMD160 ef0a9fe8085e9465b14a69d470c75306bda40031 SHA1 777154355a350eb2f30d785c25575f73575d1b86 SHA256 7b5c7ed480cd337b612484fb40cf509853c33d0a0a1cfcf6d4466c9c0e9ce7c5 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX x25_utils-2.3.93-gentoo.patch 6316 RMD160 054b9f83f84dbb5bcf65a56b2c71993e155b276f SHA1 ff30cac47ed546e609f9491679c143be72a9b87a SHA256 39233ecb3193cc4f22807661a1b95bdc48556b898a32f57fe49de8895c6766bb DIST x25_utils-2.3.93.tar.gz 148467 RMD160 6bb4a38c17132f17fe0d29db277820df710e52fc SHA1 066895032ae1227707aa51463ae4c32efb2c319d SHA256 dd008e564fb316ffadc8605c7046f0eaf14b57f076df132581f95f0058465636 -EBUILD x25_utils-2.3.93.ebuild 1041 RMD160 cebacf62af7dc57193f9ae6236ad76fe95ad0e38 SHA1 98585646147ba1dccb96f0837683fb13c7c36b25 SHA256 30c7715f3fe82861de606aa5ffd7e9204aaa5318023b9358ba9139c9b8a43213 -MISC ChangeLog 534 RMD160 aacca4ca47c426e02b1134c3c1744edfb1514b3f SHA1 de5ba8317b6a2ef3d228d0a3494f21ce95ae9c26 SHA256 d1faeb3a12dfecff5ffd8e57e02efb56e225947f6e0584589c46463eebd605ba +EBUILD x25_utils-2.3.93-r1.ebuild 1058 RMD160 1d9d29f1a5b8a610e3d96f3ac9b342e55cc421c0 SHA1 5139f7ac6c8cd89dde1cd915732b6b18f39a4bf0 SHA256 80045640ea0b84ec43e5bb7d2890d41f730557aef67670b27b50e80ba8515f56 +MISC ChangeLog 810 RMD160 d6383b4c5ce0fbc269a8fd9d6ce37d94926b9d80 SHA1 270e6d090b48bbe8e138b7e6b19114126a69d537 SHA256 0700cac3cabfb62e2f1875f016ee202a378deb285d4a464f4e47a89c329579d2 MISC metadata.xml 435 RMD160 9fc0d505a32e577574fd253d91589f93253e31f3 SHA1 e8219117de1f0ce65b9a189138aed585b35a022b SHA256 56991c0c0e884f0a7eb5c4ddecd7567265e0c4076d521da572ec64857fb49ea7 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkpZ2g0ACgkQ9A5kJBGSrsv0ggCfZg2BPZW8/q0FGno5ELu0FRxU +UEUAoJu0Pr7luG+3l9uFIy+nVBDJhHPv +=120V +-----END PGP SIGNATURE----- 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() { |