aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portupgrade-devel
Commit message (Collapse)AuthorAgeFilesLines
* Fix and document insecure temporary file handling in portupgrade.Simon L. B. Nielsen2005-04-122-1/+69
| | | | | | | | | | | Security: CAN-2005-0610 Security: http://vuxml.FreeBSD.org/22f00553-a09d-11d9-a788-0001020eed82.html Approved by: erwin (mentor), maintainer timeout OK'ed by: portmgr Reviewed by: nectar Notes: svn path=/head/; revision=133127
* Oops, I forgot to commit Makefile..Akinori MUSHA2004-12-281-0/+2
| | | | | | | | | | | -- Fix the startup script for 4.x. Submitted by: Nicole Thurner <thurners -at- t-online.de> Notes: svn path=/head/; revision=125356
* Fix the startup script for 4.x.Akinori MUSHA2004-12-281-0/+14
| | | | | | | Submitted by: <Nicole Thurner <thurners -at- t-online.de> Notes: svn path=/head/; revision=125343
* Update to 20041226.Akinori MUSHA2004-12-252-3/+3
| | | | | | | | | | | Reverse the condition to check if custom MAKE_ARGS is specified. Submitted by: Max Laier <max@love2party.net> D'oh! Notes: svn path=/head/; revision=125166
* Update to 20041225.Akinori MUSHA2004-12-253-15/+3
| | | | | | | | | | - Fix the startup script. (s/echo //) - When INDEX is not found, try "make fetchindex" first, then try "make index". Notes: svn path=/head/; revision=125137
* Fix the startup script.Akinori MUSHA2004-12-252-0/+14
| | | | | | | | | | I think I've been too long away from my ports work... PR: ports/75468 Submitted by: Michael <mkuhn.nw 'at' web.de> Notes: svn path=/head/; revision=125136
* Update to 20041224.Akinori MUSHA2004-12-235-51/+4
| | | | | | | | | | | | | | | | | | | | | | | | portsdb(1): - Add a -F flag, which calls make fetchindex internally to update the ports index file. portupgrade(1): - Make -fP properly reinstall an installed package using a binary package. - Do not use a binary package when custom MAKE_ARGS or -m option is defined, unless -PP is specified. portsclean(1): - -L: Make sure that a library does not shadow itself. misc.: - RcNG'ify the startup script. - Do not use Object#class which is obsolete in Ruby >=1.8. Notes: svn path=/head/; revision=125007
* Add a patch to read the index file via sort(1) instead of readingAkinori MUSHA2004-07-122-1/+15
| | | | | | | directly to avoid core dump. Notes: svn path=/head/; revision=113477
* Fix a bug with -P when there are more than one binary package file forAkinori MUSHA2004-07-062-1/+17
| | | | | | | | | | | a package to install or upgrade. PR: ports/68598 Submitted by: Victor Prylipko <vic@liniya.ru> Bug traced by: Andrew Bliznak <andrew@ort.lviv.net> Notes: svn path=/head/; revision=113092
* Apply a patch to avoid "undefined method `each' for nil:NilClass"Akinori MUSHA2004-07-022-0/+17
| | | | | | | | | | error when such configuration variable as MAKE_ARGS, typically BEFORE_DEINSTALL is not defined. Reported by: krion, Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> Notes: svn path=/head/; revision=112720
* Update to 20040701. New distfile.Akinori MUSHA2004-07-013-27/+5
| | | | | | | | | | | | | | | | | | | | | | | | | portupgrade: - Make -PP/--use-packages-only work better, just as I originally intended. Now packages are correctly identified using pkg_info(1), "LATEST_LINK" files are also properly detected. Related informational messages have also been improved. It turned out that the LATEST_LINK/NO_LATEST_LINK detection was broken long ago and hasn't been working for long. pkg_fetch(1): - Properly rename a "latest link" file with a full package name with version part. pkgtools.conf(5): - Improve and unify the method for pattern matching in MAKE_ARGS, BEFOREBUILD, BEFOREDEINSTALL and AFTERINSTALL variables. This should fix some cases where it looks like MAKE_ARGS entries are ignored. Notes: svn path=/head/; revision=112640
* Oops, the previous patch was bogus. Sorry.Akinori MUSHA2004-06-222-12/+9
| | | | Notes: svn path=/head/; revision=111965
* Support the new, extended INDEX format.Akinori MUSHA2004-06-212-0/+20
| | | | Notes: svn path=/head/; revision=111939
* Update to 20040529.Akinori MUSHA2004-05-293-12/+5
| | | | | | | | | | | | | | | | | | | | | overall: - Update Copyright years. - Apply massive message improvement. (I hope..) pkgtools.conf(5): - pkg_site_mirror(): Use pointyhat.FreeBSD.org instead of bento and beta. portupgrade(1): - Indicate some pieces of information on what is going on in the process title. portversion(1): - Make a generated script (with -c) accept additional arguments for portupgrade(1). Notes: svn path=/head/; revision=110254
* Fix a stupid bug introduced by the last update, which destroyedAkinori MUSHA2004-03-282-0/+10
| | | | | | | | | pkgnames and caused portupgrade to fail. Reported by: Palle Girgensohn <girgen@pingpong.net> Notes: svn path=/head/; revision=105566
* Update to 20040325.Akinori MUSHA2004-03-242-1/+3
| | | | | | | | | | | | | | - Ignore padded 0's in version comparison. This fixes a bug 2.00 being wrongly regarded as equal to 2.0.2. - Show a summary of how many packages were upgraded, ignored, skipped and failed after listing results. Requested by: netchild Notes: svn path=/head/; revision=105154
* Update to 20040208. (Just repacked to roll up recent patches)Akinori MUSHA2004-02-085-138/+5
| | | | Notes: svn path=/head/; revision=100364
* Fix a long-standing silly bug in uninstall_pkg().Akinori MUSHA2004-02-082-1/+17
| | | | Notes: svn path=/head/; revision=100360
* Make portsdb -U use the canonical way to make a ports index file nowAkinori MUSHA2004-02-073-3/+69
| | | | | | | | | that make index has got fast enough. Suggested by: kris Notes: svn path=/head/; revision=100230
* Add a patch to make portupgrade just use stdout/stderr redirection toAkinori MUSHA2004-01-312-0/+47
| | | | | | | | | keep build logs rather than calling script(1) when stdin is not a tty. I wonder if this works against the portupgrade-from-cron problem... Notes: svn path=/head/; revision=99628
* Update to 20040113, a small maintenance release.Akinori MUSHA2004-01-142-2/+4
| | | | | | | | | | | | | | | portsdb(1) - Follow ports intrastructure changes wrt build-time dependency -- now portsdb -U properly picks EXTRACT_DEPENDS so they appear build-time dependency. (Thanks to schweikh) misc. - Fix typos in documentation. I seem to be unable to spell "pacakge" correctly, being a portmgr. Or was it "pakcage" ? Anyway, it was fortunate that I wasn't a packge manager. Notes: svn path=/head/; revision=98138
* Update to 20030723. Consider this as a minor update.Akinori MUSHA2003-08-132-1/+2
| | | | | | | | | | | | | | | | | | | | | | - If pkg_* is found in $PREFIX/sbin, use them instead of ones in /usr/sbin. (regardless of the value of PATH) - pkg_fetch(1): Some servers like bento transfer packages files uncompressed, so add a workaround for this. They are automatically recompressed. - Get -q to work properly again. - As the MOVED file is getting bigger and bigger, do not cache all the entries in memory but look it up every time needed. - Show how to specify multiple arguments in one MAKE_ARG entry. FreeBSD PR: ports/54631 Submitted by: Bruce M Simpson <bms@spc.org> Notes: svn path=/head/; revision=86882
* Update to 20030427. New tarball.Akinori MUSHA2003-04-264-45/+4
| | | | | | | | | | | portsdb(1): - COMMENTFILE is deprecated. Weird. I thought I committed these changes long long ago. Submitted by: Jean-Yves Lefort <jylefort@brutele.be>. Notes: svn path=/head/; revision=79689
* Satisfy the latest ruby 1.8 more.Akinori MUSHA2003-04-221-0/+20
| | | | | | | Submitted by: Fritz Heinrichmeyer <Fritz.Heinrichmeyer@FernUni-Hagen.de> Notes: svn path=/head/; revision=79453
* Add a patch to fix "undefined local variable" error.Akinori MUSHA2003-04-222-0/+14
| | | | | | | Reported by: many ;( Notes: svn path=/head/; revision=79452
* Update to 20030422. This is a maintenance release.Akinori MUSHA2003-04-224-19/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | portsdb(1): - Fix portsdb -U's COMMENT support. Submitted by: Frerich Raabe <frerich.raabe@gmx.de> portsclean(1): - Fix a silly typo and unbreak portsclean -P. Submitted by: Olivier Tharan <olive@oban.frmug.org> pkgtools.conf(5): - Set OS_PKGBRANCH to "<n>-stable" for PRERELEASE, RC, ALPHA, BETA, etc. - Apply grammar fixes and rephrase a paragraph. PR: ports/49042, ports/49041 Submitted by: Chris Pepper <pepper@rockefeller.edu> overall: - Appease ruby 1.8 which now complains about closed streams. Notes: svn path=/head/; revision=79443
* Fix an error handler typo so it fails gracefully.Akinori MUSHA2003-03-282-1/+12
| | | | Notes: svn path=/head/; revision=77602
* Bump PORTREVISION for a typo fix.Akinori MUSHA2003-03-231-0/+1
| | | | Notes: svn path=/head/; revision=77230
* Fix a typo. Sorry.Akinori MUSHA2003-03-231-0/+5
| | | | Notes: svn path=/head/; revision=77229
* Update to 20030308.Akinori MUSHA2003-03-232-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | portupgrade(1): - -A/-B: Remove ;'s and spaces at the beginning of each command line to stop sh(1) from issuing a syntax error. - -A/-B: Omit running null commands. - Run AFTERINSTALL commands after restoring a failed upgrade also. - Fix a run time error caused by any?. pkgtools.conf(5): - Introduce BEFOREDEINSTALL. - Deprecate rc_file() and rc_files(), and provide enabled_rc_scripts() and disabled_rc_scripts() instead. - Provide cmd_start_rc(), cmd_stop_rc(), and cmd_enable_rc() in addition to cmd_restart_rc() and cmd_disable_rc(). - Update examples. pkg_deinstall(1): - Run BEFOREDEINSTALL commands before deinstalling a package. Notes: svn path=/head/; revision=77207
* Update to 20030228. Hot fixes integrated.Akinori MUSHA2003-03-024-120/+4
| | | | | | | | | | | | | | | pkgdb(1): - Add a missing comma and unbreak the cyclic dependency fixer. Submitted by: ITO Tsuyoshi <tsuyoshi@is.s.u-tokyo.ac.jp> portupgrade(1): - Update man page. Running pkgdb -F is no longer mandatory unless so directed by the pkgtools. Notes: svn path=/head/; revision=76730
* De-pkg-comment my non-ruby ports as well.Akinori MUSHA2003-02-182-1/+1
| | | | Notes: svn path=/head/; revision=75780
* Add a patch to suppress NameError during fixing a bsdpan-* origin.Akinori MUSHA2003-02-182-1/+19
| | | | | | | Reported by: "Daniel M. Zimmerman" <dmz@tffenterprises.com> Notes: svn path=/head/; revision=75761
* Add a patch to fix LocalJumpError.Akinori MUSHA2003-02-172-0/+100
| | | | | | | Reported by: Larry Rosenman <ler@lerctr.org> Notes: svn path=/head/; revision=75732
* Update to 20030217.Akinori MUSHA2003-02-162-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | portupgrade(1): - Improve the packages support: When installing a binary package, automatically detect and install ports/packages it depends on. portsdb(1): - Replace COMMENT with COMMENTFILE. Submitted by: Jean-Yves Lefort <jylefort@brutele.be> pkgdb(1): - Treat bsdpan-* packages specially; set their origins to those of p5-* where possible. Requested by: nik - Fix a minor problem with modifying the origin information of a package where it has no origin line. pkgtools.conf(5): - Make MAKE_ARGS more intelligent so installed pkgnames such as 'ruby18-*' => 'RUBY_VER=1.8' is understood. - Chase the bento site hierarchy change. - Update some of the examples. Notes: svn path=/head/; revision=75659
* Update to 20030123.Akinori MUSHA2003-01-232-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | portupgrade(1): - Change the meaning of -D/--distclean. When specified once, delete failed distfiles and retry when checksum fails. When specified twice, do "make distclean" before each fetch or build (as -D meant before). - Make -F/--fetch-only call make checksum/checksum-recursive instead of make fetch/fetch-recursive. - Rename -l/--log-results to -l/--results-file. - Rename -L/--log-prefix to -L/--log-file and make it accept a printf(3) style format. pkg_which(1)/pkgdb(3): - Store and look for file names after resolving symlinks using realpath(3). miscellaneous: - Fix some macro bugs in manpage. - Fix a typo in the PORTUPGRADE example in pkgtools.conf. Notes: svn path=/head/; revision=73863
* Update to 20021216.Akinori MUSHA2002-12-162-2/+4
| | | | | | | | | | | | | | | | | | pkgdb(1): - Fix a problem in pkgdb's automatic dependency fixer that it only fixes the first found problem and leaves the rest. portsclean(1): - Fix a problem that portsclean(1) does wrong if a library search path has a trailing / or a double /. This could confuse users. PR: ports/46162 Submitted by: Lev A. Serebryakov <lev@serebryakov.spb.ru> Approved by; lioux (his first approval as a portmgr!) & knu ;) Notes: svn path=/head/; revision=71679
* Update to 20021209 and roll a new tarball for 5.0-RELEASE.Akinori MUSHA2002-12-083-27/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | For the record, the previous tarball (pkgtools-20021101.tar.bz2) was downloaded approximately 10,000 times in one month, 32% from the United States, 17% from Japan, 6% from Germany, and 4% from Canada. (followed by AU, NL, FR, GB, RU, SE, PL, ...) pkgtools.conf(5): - Add new variables: USE_PKGS and USE_PKGS_ONLY. Requested by: Jeff Penn <jeff@jrpenn.demon.co.uk> overall: - Recognize INDEXFILE defaulting to 'INDEX'. - Introduce a "fixme" cookie file not to invoke pkgdb -aF unnecessarily. - Recognize the Hungarian and Portuguese language prefixes. Approved by: kris (implicitly) Notes: svn path=/head/; revision=71428
* Reword pkg-comment and pkg-descr.Akinori MUSHA2002-11-202-11/+9
| | | | Notes: svn path=/head/; revision=70544
* Add a patch to make portupgrade(1) work on somewhat older systemsAkinori MUSHA2002-11-201-0/+14
| | | | | | | | | which sed(1) does not have a -E option. Pointed out by: nork Notes: svn path=/head/; revision=70541
* Update to 20021119.Akinori MUSHA2002-11-192-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | overall: - Use sudo in installing (copying) a file only if once it failed as the current user. - Speed up string substitution. portupgrade(1): - Use sudo as necessary in saving log files also. pkgdb(1): - Look up ports/MOVED to fix stale origins (both ORIGIN and DEPORIGIN). - Skip the check for origin duplicates when in automatic mode. (This speeds up autofix) - When pointing out a missing origin, show the name of the package in question. Suggested by: Genesys on EFnet Notes: svn path=/head/; revision=70456
* Update to 20021113, a maintenance release.Akinori MUSHA2002-11-142-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | portupgrade(1): - Check return status of hardly failing commands also. pkgdb(1): - Add -Q/--quiet and -QQ for internal use. portsclean(1): - Ditto. overall: - Reduce /bin/sh process calls by replacing shell redirection to /dev/null with pkgdb -Q/portsclean -Q/fetch -q. (I know I can do fork, dup and exec if necessary) - Eliminate zombies during running. Formerly waitpid's against terminated processes are delayed until Ruby gets short of resource and thus runs a GC, but now portupgrade(1), pkgdb(1) and portsclean(1) explicitly kick a waitpid immediately after each popen() is done. PR: ports/38075 Submitted by: Chris J. Mutter <cjm@s2.enemy.org> Reported by: several others Notes: svn path=/head/; revision=70087
* Update to 20021109.Akinori MUSHA2002-11-092-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | overall: - Allow a regular expression or glob pattern against origins as pkgname glob pattern. For example, the following commands work as expected now: pkg_glob 'lang/*' portupgrade lang/ruby pkg_info ':(japanese|chinese|korean)/' - Use install(1) instead of cp(1) and chmod(1) to install modified data files such as +CONTENTS. pkgdb(1): - Add a new option --autofix, which is a shorthand of --auto --fix (-aF). portupgrade(1): - Allow specifying a directory after -L. - Auto-fix dependencies before creating a package. PR: ports/41383 Submitted by: Vivek Khera <khera@kciLink.com> pkgtools.conf(5): - Add a new configuration variable ALT_PKGDEP, which defines alternative dependencies, used by pkgdb -F/-aF. This makes yet another step forward to eliminate the need for manual pkgdb -F's. Notes: svn path=/head/; revision=69776
* Apply a hot-fix against a bug where portupgrade(1)/pkgdb(1) leaveAkinori MUSHA2002-11-081-1/+5
| | | | | | | | | | temporary files ($TMPDIR/+CONTENTS*). Bump PORTREVISION for that. Modify the IGNORE message that is shown when pkg_create(1) is found to be too old. Notes: svn path=/head/; revision=69723
* Update to 20021106.Akinori MUSHA2002-11-062-2/+4
| | | | | | | | | | | | | | | | | overall: - Make these work with ruby 1.7. portupgrade(1): - Get portupgrade -s to work again. - Synchronize the failure reason guesser with the latest "processlogs" script. - Rename -g/--go-on to -k/--keep-going, on the (vague) analogy of make(1). Notes: svn path=/head/; revision=69576
* Issue a patch release 20021103, which fixes a bug where pkgdb -FAkinori MUSHA2002-11-022-2/+3
| | | | | | | failed to delete a stale @pkgdep. (harmless except it didn't work) Notes: svn path=/head/; revision=69306
* Update to 20021101. Since there have been many changes, there couldAkinori MUSHA2002-11-012-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | possibly be a couple of bugs. Make sure to do your backups as always, and have fun. :) overall, pkgdb(3): - The DEPORIGIN information is fully supported. Most stale dependencies are automatically fixed based on that. Hinted by: sobomax - Disregard a package if it has a file named "+IGNOREME" in the package directory. PR: ports/41237 Hinted by: Jerry Murdock <j@jerrymurdock.com>, and some others pkgdb(1): - Add a new option -a/auto, used with -F/--fix, which turns on automatic mode, in which pkgdb(1) only fixes discrepancies that can be fixed 100% obviously and securely, and leaves the others. - Make pkgdb(1) less verbose when -v is not specified. portupgrade(1): - Time the whole session also. Requested by: nork - Fix a bug in shellwords() where it wrongly interprets \ in '...' as meta-character. This bug or maybe feature was inherited from Perl's shellwords.pl / Text::ParseWords. Reported by: Gabriel Ambuehl <gabriel_ambuehl@buz.ch> - The DEPORIGIN information is fully supported. It fixes DEPORIGIN when a package is upgraded with a different port using -o/--origin, and "pkgdb -aF" is automatically called at closing. This makes portupgrade a tad slower but greatly reduces the "pkgdb -F" annoyance. - Fix a race where it rarely failed in updating the pkgdb after installation and the user had to run "pkgdb -fu". - Do not redirect stderr to /dev/null when calling portsclean -L. Now the pkgdb updater's indicator is displayed properly. - Synchronize the build failure checker with the latest version of ports/Tools/portbuild/scripts/processlogs. - Do not bother with +REQUIRED_BY files when they are mechanically generated from @pkgdep information by pkgdb(1). pkg_fetch(1): - Try .tgz first on FreeBSD 4.x and prior. Although .tbz is smaller, there are few sites that prepare .tbz packages for FreeBSD 4.x. pkgtools.conf(5) - Prepare a new constant OS_PKGBRANCH, which is set to a release/branch name that is suitable for specifying a FTP packages directory, and make pkg_site_mirror() use it. PR: ports/43265 Submitted by: Andriy Gapon <avg@icyb.net.ua> portsclean(1): - Suggest using libchk(1) to help manually clean out lib/compat/pkg. - Improve messages. Use the word "shadow" to say that a library hides another one with the same name. Notes: svn path=/head/; revision=69229
* http://www.iDaemons.org/distfiles/ -> ftp://ftp.iDaemons.org/pub/distfiles/Akinori MUSHA2002-10-051-1/+1
| | | | Notes: svn path=/head/; revision=67314
* Update to 20020921.1.Akinori MUSHA2002-09-212-3/+3
| | | | | | | | | | | | | | - Fix a bug where portupgrade creates packages in a wrong directory. This was introduced in 20020921. Submitted by: "Dmitry A. Panov" <redfox@Fluffy.Khv.RU> - Make portcvsweb <pkgname> work when it is an obsoleted package. - Update documents. Notes: svn path=/head/; revision=67003
* Define USE_RUBY_FEATURES instead of hardcoding conditional *_DEPENDS.Akinori MUSHA2002-09-211-4/+1
| | | | Notes: svn path=/head/; revision=67000