Commit graph

89 commits

Author SHA1 Message Date
wiz
c874597976 Turn off socks support via configure when option not enabled.
From Gregoire Sutre in PR 44710.
2011-03-12 12:02:09 +00:00
tnn
4b9f6fde4b rename getline to get_line as was done in src.
No functional change, no version bump.
2009-09-22 20:39:18 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
abs
44dc2856b0 Fix PR 40151 - bootstrap of pkgsrc fails on Ubuntu 8.10
- At least Ubuntu 8.1 sets __attribute__((warn_unused_result)) on fwrite()
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
  which means (void)fwrite(...) will *always* generate a warning, so
  set -Wno-error to bypass this in Linux.sys.mk
- Ubuntu 8.1 also jumps through hoops to ensure ARG_MAX is *undefined*, so
  work around this in tnftp and libnbcompat
2009-02-19 00:51:12 +00:00
tron
4377d43286 Enable IPv6 support by default, approved by Luke Mewburn. 2008-08-09 22:03:52 +00:00
joerg
da712f263e Add a marker for bootstrap packages to allow special cases them during
bulk builds.
2008-06-19 18:36:51 +00:00
tnn
2e127c32eb Inhibit possible dependency on sysutils/checkperms to avoid circular dep. 2008-05-28 13:36:18 +00:00
martin
d86d72404e Drop clauses 3 and 4 from TNF licenses 2008-04-29 05:46:08 +00:00
jlam
84fa8ca684 + Remove pkgtools/pax and pkgtools/tnftp as they are no longer different
from archivers/pax and net/tnftp, respectively.  In the past, the
  pkgtools version of these packages installed into ${PKG_TOOLS_BIN},
  but this was changed in:

	pkgtools/pax/Makefile:1.15
	pkgtools/tnftp/Makefile:1.3

+ Get rid of archivers/pax/Makefile.common and net/tnftp/Makefile.common
  by merging them into their respective Makefiles.  The Makefile.common
  files existed solely for inclusion by the pkgtools versions of these
  packages, but with the removal of those packages, these files are
  now unnecessary.

+ Add full DESTDIR support to archivers/pax and net/tnftp.

+ Modify the bootstrap to build archivers/pax and net/tnftp instead of
  the pkgtools versions of these packages.
2008-03-06 04:45:58 +00:00
tnn
6af094ceb0 remove empty hacks.mk 2007-10-28 11:07:47 +00:00
tnn
9783aa4c32 Fix build on OSF/1 by using the correct config.h define when setting
sin.sin_len. No reply from lukem in ~2 weeks but I am confident this is the
correct fix.
2007-10-28 10:40:36 +00:00
joerg
2c101f687d Rename a function argument to make it buildable on certain versions of
NetBSD current. bool should be considered a keyword...
2007-09-23 16:47:19 +00:00
lukem
ca09998c65 no need for PKGREVISION yet 2007-08-07 04:59:52 +00:00
lukem
a667d70a31 fix CONFIGURE_ARGS for socks 2007-08-07 04:59:33 +00:00
lukem
865bb9d31a update version to 20070806 2007-08-07 04:56:22 +00:00
lukem
ea4adf0123 No support for SOCKS4 in tnftp 20070806. 2007-08-07 04:55:09 +00:00
lukem
38da2c1f8b The UINT32_T shouldn't be necessary any more, with the
updated configure.ac in tnftp 20070806.
2007-08-07 03:37:52 +00:00
lukem
477c6bbbca Merge tnftp 20070806. 2007-08-07 02:06:54 +00:00
lukem
3e684b6ecf Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-08-06 16:48:57 +00:00
lukem
ef9c920e05 Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-08-06 04:53:23 +00:00
lukem
5fa3a9c42c Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-08-06 04:42:53 +00:00
lukem
c1a6de9ce0 Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-08-06 01:58:04 +00:00
lukem
2334ce12d9 Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-07-22 11:24:55 +00:00
lukem
843c700659 Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2007-07-22 04:33:14 +00:00
tron
d6be838751 Fix an installation problem under Mac OS X on a case-insensitive filesystem.
"bmake" would always report that "`install' is up to date." because it
finds "INSTALL" when searching for "install".
2007-07-11 19:27:18 +00:00
rillig
0cc3a0b511 For consistency with the other tools from bootstrap, the preformatted
manual page is installed as cat1/ftp.0 instead of cat1/ftp.1. Bumped
PKGREVISION.
2006-07-24 08:10:37 +00:00
jlam
4118037f3f Create a separate pkgtools/tnftp package that is installed as part of
the bootstrap process and which may be needed by pkg_install.  This
is distinct from the net/tnftp package that is now a "normal" package.

Modify the bootstrap script to use pkgtools/tnftp instead, and clean up
some of the registration code.
2006-07-14 21:41:42 +00:00
jlam
1284f595b8 Mark these packages as NO_MTREE as they are bootstrap packages and don't
need mtree to pre-generate any directories for them.
2006-07-14 16:24:28 +00:00
schwarz
7d45541720 corrected a typo in libnetbsd/usleep.c which probably surfaces only on some
older OSes
added a hack to support IRIX 5
(modifications done directly to the files instead of adding patch files to
make them being used during bootstrapping as well; approved by reed)
2006-04-10 13:26:15 +00:00
wiz
348f95519b Convert to options framework. 2005-12-02 17:03:06 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
lukem
3d1bd2300a update to tnftp-20050625 2005-06-25 07:01:20 +00:00
lukem
aec9f97f6a Merge tnftp 20050625 2005-06-25 07:00:41 +00:00
lukem
1524f1105e Update to tnftp 20050610.
Notable changes (see files/ChangeLog for full details):
* Convert to use getline() instead of fgets() whenever reading user input to
  ensure that an overly long input line doesn't leave excess characters for
  the next input operation to accidentally use as input.
  Should fix PR 23953.
* Improve method used in fileindir() to determine if `file' is in or under
  `dir': realpath(3) on non-NetBSD systems may fail if the target filename
  doesn't exist, so instead use realpath(3) on the parent directory of `file'.
  (The previous code was over-aggressive in preventing transfers on systems
  with a realpath(3) that had different semantics to NetBSD.)
* Various portability fixes.
2005-06-10 05:10:02 +00:00
lukem
84c028ec5e merge tnftp 20050610 2005-06-10 05:06:25 +00:00
lukem
f6e9257fb3 Import tnftp 20050610.
Security-related bug fixes:
* Convert to use getline() instead of fgets() whenever reading user input to
  ensure that an overly long input line doesn't leave excess characters for
  the next input operation to accidentally use as input.
* Zero out the password & account after we've finished with it.
* Consistently use getpass(3) (i.e, character echo suppressed) when reading
  the account data.  For some reason, historically the "login" code
  suppressed echo for Account: yet the "user" command did not!
* Improve method used in fileindir() to determine if `file' is in or under
  `dir': realpath(3) on non-NetBSD systems may fail if the target filename
  doesn't exist, so instead use realpath(3) on the parent directory of `file'.
  (The previous code was over-aggressive in preventing transfers on systems
  with a realpath(3) that had different semantics to NetBSD.)

Bug fixes:
* Display the hostname in the "getaddrinfo failed" warning.
* Only print the "Trying <address>..." message if verbose and there's more
  than one struct addrinfo in the getaddrinfo() result.
* formatbuf(): fix %m and %M to use the hostname, not the username.
* fetch_ftp(): preserve 'anonftp' across a disconnect() so that multiple ftp
  auto-fetches on the same command line login automatically.
* Improve bounds checking.
* Update various copyright notices.

Portability fixes:
* Look for dirname(3), which may be in -lgen on IRIX, and replace it if not
  found.
* Don't use non-standard: u_char, u_short, u_int, or uint.
* Use uint32_t instead of u_int32_t.
* Don't use register.
* Helps if the definition of xconnect() matches its declaration....
* Fix some cast issues highlighted by gcc 4 on OSX.4
* Use size_t instead of int where appropriate.
* Make this compile on sparc64 (size_t != int).
* Printf field widths and size_t don't always mix well, so cast to int.
  Fixes build problem for alpha.
* auto_fetch(): use an initialized volatile int to appease IRIX cc.
* Don't abuse unconstify'ing a string and writing to it, because you'll core
  dump. Also remove extra const that gives pain to the irix compiler.
* Make sure we flush after we prepare when we are unbuffered otherwise the
  prompt will not appear immediately.
* Terminate the arglist with a NULL instead of 0. (Shuts up gcc4.x)
* Use malloc(3) instead of alloca(3).
* Include "src/progressbar.h" for xsignal_restart() prototype.
* Ensure that fallback #define of __attribute__ is available.
  Fixes build problem on HP-UX with cc.
* Pull in <poll.h> or <sys/poll.h> if they exist even if we're not using poll,
  as struct pollfd might exist in those.  Fixes build problem on OSX.3.
* Use NS_INADDRSZ, NS_IN6ADDRSZ and NS_INT16SZ instead of
  equivalents without NS_ prefix.
* Use socklen_t instead of size_t where appropriate.
* Separate CPPFLAGS from CFLAGS.
* Use "long long" instead of "quad" in various comments & constants.
* Prefer poll over select when implementing replacement usleep().
2005-06-10 04:52:08 +00:00
lukem
0e2d43cf18 Fix the build on OS X.3.
Bump PKGREVISION.
2005-05-14 06:06:26 +00:00
lukem
4b8612bd09 Update to tnftp 20050514 2005-05-14 05:16:09 +00:00
lukem
bedc219972 Merge 20050514 2005-05-14 05:13:09 +00:00
lukem
b574430a64 Update to tnftp-20050511. 2005-05-11 10:00:57 +00:00
lukem
8be484732b Merge tnftp 20050511.
(Future merges should be easier as this time I froze the vendor RCSIDs)
2005-05-11 09:58:55 +00:00
lukem
5c98da7bd0 Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2005-05-11 09:40:05 +00:00
lukem
f3b1df432c Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2005-05-11 09:17:39 +00:00
lukem
51b702ad3c Update to tnftp 20070806.
Notable changes:
 - Implement '-s srcaddr' to set the local IP address for all connections.
 - Support '-q quittime' when waiting for server replies.
 - Use IEC 60027-2 "KiB", "MiB" (etc) instead of "KB", "MB", ...
 - Portability fixes, including for FreeBSD, Mac OS X, and Solaris.
2005-05-11 09:01:56 +00:00
lukem
ac5006da73 tnftp 20050511.
Notable changes:
* Improve timeout handling during connection initiation
* Prevent coredump with long command lines when editing is enabled.
2005-05-11 08:11:55 +00:00
tv
049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00
lukem
5243486b9c explicitly regenerate for locally modified configuration 2005-01-04 23:51:00 +00:00
lukem
57e169fa7a update to tnftp 20050103 2005-01-04 23:48:06 +00:00
lukem
15a6669a22 Merge changes between tnftp-20030825 & tnftp-20050103 2005-01-04 23:44:24 +00:00
lukem
01210882d4 Import tnftp 20050103.
Various changes, including:
	* forbid mget of filenames that aren't in or below the local cwd.
	* improve auto-fetch transfers
	* improve www/proxy authentication support
	* improve http response header parsing
	* change UCB-licensed code from 4-clause to 3-clause
2005-01-03 09:50:10 +00:00