diff options
author | Sven Wegener <swegener@gentoo.org> | 2009-11-22 21:52:48 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2009-11-22 21:52:48 +0000 |
commit | e3b35c5d5b731613adff1648ae1f3eed7fb1f88f (patch) | |
tree | e3bd71fd2087217c16dbc20477e4fd8259ba9853 /net-ftp/tnftp | |
parent | Use src_configure and src_prepare for EAPI-2 compliance, this should fix bug ... (diff) | |
download | historical-e3b35c5d5b731613adff1648ae1f3eed7fb1f88f.tar.gz historical-e3b35c5d5b731613adff1648ae1f3eed7fb1f88f.tar.bz2 historical-e3b35c5d5b731613adff1648ae1f3eed7fb1f88f.zip |
Version bump.
Package-Manager: portage-2.2_rc51/cvs/Linux x86_64
Diffstat (limited to 'net-ftp/tnftp')
-rw-r--r-- | net-ftp/tnftp/ChangeLog | 9 | ||||
-rw-r--r-- | net-ftp/tnftp/Manifest | 14 | ||||
-rw-r--r-- | net-ftp/tnftp/files/tnftp-20090606-getline.patch | 109 | ||||
-rw-r--r-- | net-ftp/tnftp/files/tnftp-20090606-glibc-2.8-ARG_MAX.patch | 22 | ||||
-rw-r--r-- | net-ftp/tnftp/tnftp-20090606.ebuild | 40 |
5 files changed, 188 insertions, 6 deletions
diff --git a/net-ftp/tnftp/ChangeLog b/net-ftp/tnftp/ChangeLog index cfe7348a6761..866a05a9585c 100644 --- a/net-ftp/tnftp/ChangeLog +++ b/net-ftp/tnftp/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-ftp/tnftp # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/tnftp/ChangeLog,v 1.32 2009/05/23 14:40:37 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tnftp/ChangeLog,v 1.33 2009/11/22 21:52:48 swegener Exp $ + +*tnftp-20090606 (22 Nov 2009) + + 22 Nov 2009; Sven Wegener <swegener@gentoo.org> +tnftp-20090606.ebuild, + +files/tnftp-20090606-getline.patch, + +files/tnftp-20090606-glibc-2.8-ARG_MAX.patch: + Version bump. *tnftp-20090520 (23 May 2009) diff --git a/net-ftp/tnftp/Manifest b/net-ftp/tnftp/Manifest index ac9b383b5be6..45b31b27c3ad 100644 --- a/net-ftp/tnftp/Manifest +++ b/net-ftp/tnftp/Manifest @@ -7,16 +7,20 @@ AUX tnftp-20070806-libedit.patch 792 RMD160 70f2d65251b2d92a5dfc3f99bd612bb44c2a AUX tnftp-20090520-getline.patch 3385 RMD160 7b6f9258130013961ac547e61ef745b5c089814c SHA1 4859b9dab6b4e7b8db496f53654dc4daa2c32b6f SHA256 9f01101f1e6ef14bab5b20895e4db5050d7c2c50804a744ac8a092b4f9fcdcc4 AUX tnftp-20090520-glibc-2.8-ARG_MAX.patch 588 RMD160 b35d19c7f3de952539590cb560e75c491b05ea6e SHA1 dc2bcda3eea8695b716bb85004d4a032cdb1e04d SHA256 d9554f33890096095858dff3fcd4ea979226505c7c6dcb3aec1d1f3ed90b8fb7 AUX tnftp-20090520-libedit.patch 792 RMD160 6fe6835cda5f494a91c0bc6432566ce722be4179 SHA1 2ad4a4920ec3bece36b9871058bf042af2f420cc SHA256 f28fe6c004c8f4675d1249ae229c8ecdc8d800c975f53f1cad4049aaf67378e2 +AUX tnftp-20090606-getline.patch 3385 RMD160 7b6f9258130013961ac547e61ef745b5c089814c SHA1 4859b9dab6b4e7b8db496f53654dc4daa2c32b6f SHA256 9f01101f1e6ef14bab5b20895e4db5050d7c2c50804a744ac8a092b4f9fcdcc4 +AUX tnftp-20090606-glibc-2.8-ARG_MAX.patch 588 RMD160 b35d19c7f3de952539590cb560e75c491b05ea6e SHA1 dc2bcda3eea8695b716bb85004d4a032cdb1e04d SHA256 d9554f33890096095858dff3fcd4ea979226505c7c6dcb3aec1d1f3ed90b8fb7 DIST tnftp-20070806.tar.gz 371223 RMD160 f70a9de5c87736aa98693a1808be5db76cdc97b0 SHA1 b6dad820e71412bd52f2c4a4ccaa7a2b62c3a22f SHA256 ee0d6c77a74bcb5edf904a7ea97bb9c023007c76bc741f22dc197b9938372a87 DIST tnftp-20090520.tar.gz 374092 RMD160 e1ca79c64704860008fad0c187abdf68c6041c44 SHA1 50f39ad379280c073913598c7de32cf1502d4d33 SHA256 8bb65d35e134b463bfb027d2e27dec58070da1e4a770ac222c0326d9fb2136ca +DIST tnftp-20090606.tar.gz 374094 RMD160 58539ec9722e97db52b401e15dc0d0336f978511 SHA1 c1f0e293a4f3a96b35e055eb98ccc2931df4ee87 SHA256 c975ef4709d1dfee2b126591f44ff24c1f1f552034410bdd3a90f01499914eae EBUILD tnftp-20070806.ebuild 1218 RMD160 717e4bfe30c95ce6372a8875c90691e0f1191a82 SHA1 173f70faf598af7a7198952e1af022826cb01734 SHA256 7358ca6c3ec5b3465a2993c479f62fe5488d84599abcffac5395141262d6e89c EBUILD tnftp-20090520.ebuild 1223 RMD160 6d58d41a9a77061a3513ea4a71b4f932cf913fee SHA1 a2a88c7061a209ce05d3fe30ea87e9a7d1ba3d68 SHA256 2357c9affc4fedde06fb59d3bca9277db7bcd0bd502af8cbf2a92b459568fd94 -MISC ChangeLog 4565 RMD160 a5165f942a0234af3b37d45b0b412ead42dfd468 SHA1 60558b59ac6e1ad938557319940823e2979ba599 SHA256 7eb6b7c97b135e2466438e9927f4e4f8426597c9e40145315b7d7667dd9474ab +EBUILD tnftp-20090606.ebuild 1077 RMD160 fdae505f98029039d32eba6288671b803e23e1d2 SHA1 561adbd13460382f21544db51b73caa358e038db SHA256 358089d56bdcaeb87f8ea5a2cf2f21e2c469ef86c01faa51021233f949e6c846 +MISC ChangeLog 4775 RMD160 30e65878396b4e0a706e4dfe7220987e410eb29b SHA1 f500c7f0e5a705a0cadb9a747a30cec471808e5c SHA256 ff00eae51e9c5684b7456b59fe1b77f75503a88930ab57ea3ce19e98ab050fff MISC metadata.xml 298 RMD160 60625e202ed0ef00f82e7d7e5bf05b4412526f36 SHA1 a51489bc5de3f67a0183720f9425adb2cba0e3ef SHA256 fa6086e7352367eeb9b96d059ab58bca3bd6fde533180cd5551280c808535fc9 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) +Version: GnuPG v2.0.13 (GNU/Linux) -iEYEARECAAYFAkoYCvAACgkQI1lqEGTUzyQZ4ACgzktQ0+RmX9QoIX2bcTtKg0Ba -HlIAn3E+IOIDw9i/ocfhMy7yTKLkRL7I -=IBJv +iEYEARECAAYFAksJsrUACgkQI1lqEGTUzyQuZACffKCWoIn6DtqeSVFCF0zOeNZ9 +b3cAoIVYIEfArkRYp+CyDsA6O5b9TYan +=FNPb -----END PGP SIGNATURE----- diff --git a/net-ftp/tnftp/files/tnftp-20090606-getline.patch b/net-ftp/tnftp/files/tnftp-20090606-getline.patch new file mode 100644 index 000000000000..e9294beca3d7 --- /dev/null +++ b/net-ftp/tnftp/files/tnftp-20090606-getline.patch @@ -0,0 +1,109 @@ +--- tnftp-20090520/src/cmds.c ++++ tnftp-20090520/src/cmds.c +@@ -181,7 +181,7 @@ + while (1) { + fprintf(ttyout, "%s %s [anpqy?]? ", promptleft, promptright); + (void)fflush(ttyout); +- if (getline(stdin, cline, sizeof(cline), &errormsg) < 0) { ++ if (ftp_getline(stdin, cline, sizeof(cline), &errormsg) < 0) { + mflag = 0; + fprintf(ttyout, "%s; %s aborted\n", errormsg, cmd); + return (0); +@@ -776,7 +776,7 @@ + argv[0] = cmdbuf; + gmode = restart_point ? "r+" : "w"; + +- while (getline(fp, buf, sizeof(buf), NULL) >= 0) { ++ while (ftp_getline(fp, buf, sizeof(buf), NULL) >= 0) { + if (buf[0] == '\0') + continue; + argv[1] = buf; +--- tnftp-20090520/src/extern.h ++++ tnftp-20090520/src/extern.h +@@ -135,7 +135,7 @@ + void get(int, char **); + struct cmd *getcmd(const char *); + int getit(int, char **, int, const char *); +-int getline(FILE *, char *, size_t, const char **); ++int ftp_getline(FILE *, char *, size_t, const char **); + struct option *getoption(const char *); + char *getoptionvalue(const char *); + void getremoteinfo(void); +--- tnftp-20090520/src/fetch.c ++++ tnftp-20090520/src/fetch.c +@@ -193,7 +193,7 @@ + fprintf(ttyout, "%s\n", uuser); + } else { + (void)fflush(ttyout); +- if (getline(stdin, uuser, sizeof(uuser), &errormsg) < 0) { ++ if (ftp_getline(stdin, uuser, sizeof(uuser), &errormsg) < 0) { + warnx("%s; can't authenticate", errormsg); + goto cleanup_auth_url; + } +@@ -841,7 +841,7 @@ + } + + /* Read the response */ +- len = getline(fin, buf, sizeof(buf), &errormsg); ++ len = ftp_getline(fin, buf, sizeof(buf), &errormsg); + if (len < 0) { + if (*errormsg == '\n') + errormsg++; +@@ -865,7 +865,7 @@ + + /* Read the rest of the header. */ + while (1) { +- len = getline(fin, buf, sizeof(buf), &errormsg); ++ len = ftp_getline(fin, buf, sizeof(buf), &errormsg); + if (len < 0) { + if (*errormsg == '\n') + errormsg++; +@@ -1070,7 +1070,7 @@ + + fprintf(ttyout, + "Authorization failed. Retry (y/n)? "); +- if (getline(stdin, reply, sizeof(reply), NULL) ++ if (ftp_getline(stdin, reply, sizeof(reply), NULL) + < 0) { + goto cleanup_fetch_url; + } +--- tnftp-20090520/src/main.c ++++ tnftp-20090520/src/main.c +@@ -682,7 +682,7 @@ + fprintf(ttyout, "%s ", p); + } + (void)fflush(ttyout); +- len = getline(stdin, line, sizeof(line), NULL); ++ len = ftp_getline(stdin, line, sizeof(line), NULL); + switch (len) { + case -1: /* EOF */ + case -2: /* error */ +--- tnftp-20090520/src/util.c ++++ tnftp-20090520/src/util.c +@@ -415,7 +415,7 @@ + else + fprintf(ttyout, "Name (%s): ", host); + errormsg = NULL; +- nlen = getline(stdin, tmp, sizeof(tmp), &errormsg); ++ nlen = ftp_getline(stdin, tmp, sizeof(tmp), &errormsg); + if (nlen < 0) { + fprintf(ttyout, "%s; %s aborted.\n", errormsg, "login"); + code = -1; +@@ -523,7 +523,7 @@ + fprintf(ttyout, "(%s) ", aprompt); + line[len++] = ' '; + errormsg = NULL; +- nlen = getline(stdin, line + len, sizeof(line)-len, &errormsg); ++ nlen = ftp_getline(stdin, line + len, sizeof(line)-len, &errormsg); + if (nlen < 0) { + fprintf(ttyout, "%s; %s aborted.\n", errormsg, "operation"); + intr(0); +@@ -1255,7 +1255,7 @@ + * -3 line was too long + */ + int +-getline(FILE *stream, char *buf, size_t buflen, const char **errormsg) ++ftp_getline(FILE *stream, char *buf, size_t buflen, const char **errormsg) + { + int rv, ch; + size_t len; diff --git a/net-ftp/tnftp/files/tnftp-20090606-glibc-2.8-ARG_MAX.patch b/net-ftp/tnftp/files/tnftp-20090606-glibc-2.8-ARG_MAX.patch new file mode 100644 index 000000000000..8c0f91a069e8 --- /dev/null +++ b/net-ftp/tnftp/files/tnftp-20090606-glibc-2.8-ARG_MAX.patch @@ -0,0 +1,22 @@ +glibc-2.8 no loner provides the ARG_MAX macro. + +--- tnftp-20090520/libnetbsd/glob.c ++++ tnftp-20090520/libnetbsd/glob.c +@@ -55,6 +55,8 @@ + * Number of matches in the current invocation of glob. + */ + ++#include <unistd.h> ++ + #include "tnftp.h" + + #undef TILDE /* XXX: AIX 4.1.5 has this in <sys/ioctl.h> */ +@@ -720,7 +722,7 @@ + } + pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; + +- if ((pglob->gl_flags & GLOB_LIMIT) && (newsize + *limit) >= ARG_MAX) { ++ if ((pglob->gl_flags & GLOB_LIMIT) && (newsize + *limit) >= sysconf(_SC_ARG_MAX)) { + errno = 0; + return(GLOB_NOSPACE); + } diff --git a/net-ftp/tnftp/tnftp-20090606.ebuild b/net-ftp/tnftp/tnftp-20090606.ebuild new file mode 100644 index 000000000000..bc731d9ada99 --- /dev/null +++ b/net-ftp/tnftp/tnftp-20090606.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tnftp/tnftp-20090606.ebuild,v 1.1 2009/11/22 21:52:48 swegener Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="NetBSD FTP client with several advanced features" +SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/misc/${PN}/${P}.tar.gz + ftp://ftp.netbsd.org/pub/NetBSD/misc/${PN}/old/${P}.tar.gz" +HOMEPAGE="ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="ipv6 socks5" + +DEPEND=">=sys-libs/ncurses-5.1 + socks5? ( net-proxy/dante )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-glibc-2.8-ARG_MAX.patch + epatch "${FILESDIR}"/${P}-getline.patch +} + +src_configure() { + econf \ + --enable-editcomplete \ + $(use_enable ipv6) \ + $(use_with socks5 socks) \ + || die "econf failed" +} + +src_install() { + newbin src/ftp tnftp || die "newbin failed" + newman src/ftp.1 tnftp.1 || die "newman failed" + dodoc ChangeLog README THANKS || die "dodoc failed" +} |