summaryrefslogtreecommitdiffstats
path: root/usr.sbin/portsnap
Commit message (Collapse)AuthorAgeFilesLines
* MFC r276571: Add a manual page for phttpget(8).delphij2015-02-042-1/+89
|
* MFC r264400,r265836:ngie2014-12-312-2/+2
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r264740:delphij2014-05-091-1/+1
| | | | | | | Use case insensitive match in portsnap. PR: bin/186510 Submitted by: olli
* Fix bug in deleting files: If two ports had the same tarball and one ofcperciva2013-07-111-2/+2
| | | | | | | | | | | them changed (or was removed from the tree) then portsnap would delete that file. This happened earlier today when one of two empty port directories was removed. Uniquifying the lists of needed files fixes this. 9.2-RELEASE candidate. MFC after: 3 days
* Make 'portsnap alfred' overwrite ports tree if it's not created by adelphij2013-06-071-1/+1
| | | | | | | portsnap. Discussed with: alfred Reviewed by: cperciva
* mdoc sweepjoel2013-05-131-1/+3
|
* mdoc sweep.joel2013-05-121-3/+3
|
* Change progress indicator for downloading patches.alfred2012-12-131-2/+26
| | | | | Use a percent style indicator instead of emitting one long line of patch numbers.
* Avoid changing IFS in a global context as this can sometimes causeeadler2012-10-241-7/+8
| | | | | | | | | | | errors later on. PR: bin/172715 Submitted by: Matthew D.Fuller <fullermd@over-yonder.net> (older version) Submitted by: dteske Approved by: cperciva MFC after: 1 week
* Remove cvs/cvsup reference.joel2012-10-141-5/+1
|
* Change "only only" to "only" in portsnap(8).issyl02012-09-281-1/+1
| | | | | Spotted by: Ruslan Mahmatkhanov Approved by: gabor (mentor, implicit)
* Add a note to portsnap(8) about the behaviour of the example cron command.issyl02012-09-281-1/+18
| | | | | | | PR: docs/171759 Submitted by: Paul Hoffman (phoffman at proper dot com) Approved by: cperciva, gabor (mentor) MFC after: 3 days
* Add interactive option to override portsnap's automagical detection ofeadler2012-08-052-4/+24
| | | | | | | | a terminal. Submitted by: Hannes h2+fbsdports@fsfe.org Approved by: cperciva MFC after: 1 week
* make it easier for users used to a VCS that allows up to be a shortcuteadler2012-05-091-0/+3
| | | | | | | | for update. PR: bin/152856 Approved by: cperciva MFC after: 3 days
* Fix spelling of extract.alfred2011-11-131-2/+2
| | | | Pointed out by: gcooper
* Utilize shell's IFS instead of forking ~6 processes toalfred2011-11-131-48/+70
| | | | | | | | handle splitting input files on a '|'. This greatly reduces the time taken to process several databases during the update process. Additionally add some more debug logging.
* portsnap: Detect error immediately if we can't fetch the snapshot metadata.jilles2011-10-041-3/+3
| | | | | | | Also add some quotes around command substitution where useful and possible. Reviewed by: cperciva MFC after: 1 week
* Add --numeric-owner to tar extract operations in portsnap.simon2010-12-191-5/+5
| | | | | | | | | | | | | This is done to speed up extraction significantly (both for portsnap extract and update) in the case of slow NSS modules (like nss_ldap) as it avoids having to look up uid and gid for root / wheel. The reason this is a bigger problem for portsnap than for many other system operations, is that portsnap executes tar(1) once for each port so the internal uid/gid caching in tar(1) only helps a bit, resulting in many user lookup calls. Discussed with: cperciva
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-022-2/+0
|
* Add undocumented 'portsnap alfred' command, which runs (fetch|cron)cperciva2009-12-301-1/+17
| | | | | | | | based on whether fd 0 is a terminal, and then runs (extract|update) based on whether ${PORTSDIR} exists. Requested by: alfred MFC after: 1 month
* Set SO_NOSIGPIPE on sockets used by phttpget. Without this, ifcperciva2009-04-031-0/+6
| | | | | | | | | | | | | | (1) phttpget is attempting to download enough files that it can't send all the requests at once, and (2) the remote server forcibly closes the connection, resulting in RST packets being sent, phttpget will receive a SIGPIPE and terminate without downloading all of the files. This is probably responsible for a number of hard-to-reproduce errors with portsnap and freebsd-update. MFC after: 3 days
* - remove superfluous worddanger2008-09-151-2/+2
| | | | | | PR: docs/127401 Submitted by: Mick Charles Beaver <mick@cs.wisc.edu> MFC after: 1 week
* Add support for specifying which INDEX files to build via portsnap.conf.cperciva2008-05-171-4/+16
| | | | | Requested by: brooks Reminded by: brooks, about halfway through his BSDCan talk
* Improve conformance to the HTTP specification by using case-insensitivecperciva2008-02-131-6/+6
| | | | | | | | comparisons for header keywords. Apparently some proxies use creative capitalization. Weird proxy found by: brooks MFC after: 3 days
* Attempt to reduce the rate of foot-shooting injuries by adding a newcperciva2007-12-281-0/+9
| | | | | | | | paragraph clarifying that portsnap does not behave the same way as cvs and cvsup where local modifications are concerned. Submitted by: peter Feet shot: peter, kris, obrien, + many others
* When generating ports INDEX files from downloaded "describes" data, buildcperciva2007-08-021-0/+1
| | | | | | | an index for FreeBSD 7.x too. MFC After: 1 week Approved by: re (hrs)
* Add support for HTTP/1.0 Persistent Connections to phttpget. Requests arecperciva2007-06-301-3/+10
| | | | | | | | | | | | | | be marked as HTTP/1.1 but "Connection: Keep-Alive" is added; this convinces HTTP/1.0 servers and proxies to hold the TCP connection open despite not being able to use HTTP pipelining. This dramatically cuts down on the number of TCP connections (and thus port numbers) used by portsnap when talking to an HTTP/1.0 proxy (e.g., squid), and has the side benefit of improving performance in those cases. Tested by: simon Approved by: re (kensmith) MFC After: 1 week
* Add support for the HTTP_TIMEOUT environment variable (integer numbercperciva2006-11-071-0/+13
| | | | | | of seconds, just like in fetch(1)). Submitted by: rdivacky
* Set LC_ALL=C in order to avoid problems with character ranges andcperciva2006-10-211-0/+3
| | | | | | | sorting. PR: bin/104505 MFC after: 3 days
* Markup fixes.ru2006-09-291-12/+12
|
* s/MAN8/MAN/cperciva2006-09-011-1/+1
| | | | Pointed out by: ru
* Use some features of sh(1) which I didn't know about until today ("read"cperciva2006-05-301-5/+2
| | | | | | | | | can read two variables at once; and suffix pattern deletion) to make the extract command fork fewer processes. With the portsnap snapshot and the ports tree in swap-backed memory disks on my 1.4GHz laptop, this reduces 178800 processes and 195/56/126 seconds of real/user/sys time to 44600 processes and 103/34/60 seconds.
* Fix typo.cperciva2006-05-131-1/+1
| | | | Pointed out by: ceri
* Add a mechanism for constructing INDEX files which include local ports.cperciva2006-05-132-2/+22
| | | | Requested by: brooks
* Use 'rm -rf foo/bar' to remove a port instead of 'rm -rf foo/bar/'.cperciva2006-05-121-3/+6
| | | | | | | When /usr/ports/foo/bar is a symlink pointing outside the tree, this deletes the symlink instead of the directory it points to. Requested by: delphij
* Allow the HTTP_PROXY environment variable to be (mis)spelled ascperciva2006-05-052-2/+4
| | | | | "http_proxy", since some people apparently do this and fetch(3) allows it.
* Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards.cperciva2006-05-051-1/+1
| | | | | Pointy hat to: cperciva Pointed out by: pjd
* Remove two lines of debugging which I forgot to remove before the lastcperciva2006-05-031-2/+0
| | | | | | commit. Noticed by: simon
* The approach portsnap uses of "pick a random HTTP mirror" doesn'tcperciva2006-05-031-3/+16
| | | | | | | | | | | | | | | | | | | | interact very nicely with HTTP proxies: Since proxies do not know that all the files on portsnap1.freebsd.org are identical to the files with the same names on portsnap2.freebsd.org, said proxies end up downloading and storing files in duplicate. This commit uses the HTTP_PROXY environment variable, if set, to generate a random number seed for use in selecting a mirror. This means that if several systems all have the same HTTP_PROXY value set, they will ask the proxy to fetch files from the same mirror (unless that mirror fails, in which case all the systems will use the same second choice, et cetera). Portsnap still doesn't interact very well with "transparent" HTTP proxies, but there's nothing I can do about those. Requested by: simon Sponsored by: FreeBSD security development fundraiser
* Instead of selecting a mirror and failing if it is inaccessible, keepcperciva2006-05-031-25/+50
| | | | | | | | | | | | | | | | | | | track of which mirrors we have tried and try a different mirror if we fail when trying to download the SSL public key or the snapshot signature. Failures later in the download process will not result in switching to a different mirror, for two reasons: 1. If is very unlikely that a mirror will fail partway through the process of downloading updates. 2. If we switched from a more recently updated mirror to a less recently updated mirror partway through the download process, we would end up failing anyway because we would be trying to fetch files which the second mirror didn't have yet. PR: bin/96288 Requested by: lots of people Sponsored by: FreeBSD security development fundraiser
* Teach portsnap to parse the output of the host(1) in BIND 8 as well ascperciva2006-05-021-3/+7
| | | | | | | | | the host(1) from BIND 9. This doesn't matter for HEAD, but will help people who install portsnap from the ports tree onto older versions of FreeBSD. PR: ports/93901 Sponsored by: FreeBSD security development fundraiser
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+1
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Remove trailing dot from the servername in the serverlist to be ableume2006-03-071-1/+1
| | | | | | | | to use portsnap from behind a http proxy. Some HTTP proxy don't like trailing dot in the servername. Approved by: cperciva MFC after: 2 days
* Correct handling of HTTP_PROXY_AUTH. A password may have `:'.ume2006-03-071-1/+1
| | | | | Approved by: cperciva MFC after: 2 days
* Reference sha256(1) instead of sha256(8), which doesn't exist.wkoszek2006-02-261-1/+1
| | | | | Approved by: cognet (mentor) MFC after: 3 days
* Expand contractions.joel2006-02-011-2/+2
|
* Merge from accidental commit to RELENG_5:cperciva2006-01-271-1/+1
| | | | | Correctly identify the host and port values on a failed getaddrinfo lookup.
* Replace "fetch" with "fetch -r" when downloading the initial ~38MBcperciva2006-01-221-2/+1
| | | | | | | | | snapshot in order to avoid unnecessary re-downloading. Remove the earlier "rm -f ${SNAPSHOTHASH}.tgz" to make this work. Suggested by: Lars Engels MFC after: 7 days
OpenPOWER on IntegriCloud