Commit graph

1110 commits

Author SHA1 Message Date
Alejandro Pulver
16127d75e5 pkg_replace is used to upgrade installed packages.
It is compatible with portupgrade and can be used as
an alternative to portupgrade and portmaster.

WWW: http://portutil.sourceforge.jp

Securedog <securedog@users.sourceforge.jp>

PR:		ports/104971
Submitted by:	Securedog <securedog at users.sourceforge.jp>
2006-11-01 01:34:38 +00:00
Kris Kennaway
e5d133e492 BROKEN: Does not compile
Approved by:	portmgr (self)
2006-10-15 19:58:39 +00:00
Ion-Mihai Tetcu
aa8ce5cc02 - it doesn't work with MySQL below 4.1.x because it uses sub-selects
- also fix broken INDEX if Mysql 3.23.x is installed [1]

Submitted by:	vd [1]
Approved by:	portmgr (marcus)
2006-10-14 21:02:49 +00:00
Doug Barton
1aed3284ba Update for new version 1.9 2006-10-06 21:51:15 +00:00
Doug Barton
e7d3f231ee New Features:
=============
1. You can now specify multiple ports to upgrade on the command line,
such as 'portmaster foo-1.23 bar-4.56 baz-7.98'. [1] Pass -n argument
to child processes (as needed) to handle this case.
2. Handle an alternate port that can satisfy a build requirement by
reading the CONFLICTS for the "standard" port, and seeing if we have
one of those installed. [1]
3. Unless the user specifies the new -B option, always build a backup
package when updating an existing port. Unless the user has specified
the -b option, delete the package on successful installation of the
new port, or print a helpful message telling the user where they can
find the package if install fails.
4. Don't only test a port for IGNORE, also test FORBIDDEN and BROKEN
to avoid doing a lot of work on dependencies for a port that we aren't
going to install.

Big Improvements:
=================
1. Significantly enhance the -r option by tracking what ports should
be rebuilt as a result of it, and rebuilding them "in line" if they
are dependencies of other ports that should also be rebuilt. Thus,
make sure that these ports get rebuilt once, and only once. Also,
don't rely on just the installed port's +REQUIRED_BY file to get the
list of dependencies, since it may be out of date. Search the pkg tree
for that port's DEPORIGIN to make sure that we get them all.
2. Track answers to ports that have +IGNOREME files, so the user is
not asked twice.
3. Rather than use all-depends-list to handle dependencies, use a
combination of build-depends and run-depends. This seems to get
everything we actually need, without sucking in a lot of stuff we don't.
4. Stop abusing the config_only mode, and make a clear separation
between first run (if any) and build run that does not depend on it.
This makes -G mode work as intended, with no bad side effects. [1]

Small Improvements:
===================
1. Add PREFIX/sbin to the PATH [1]
2. Cache "no" answers when using -i ("yes" was already cached).
3. If pkg_version thinks that two versions are the same even though
they have different pkg names, don't warn the user.
4. Clean up package code a little.
5. Twiddle the "waiting on" message for fetch & checksum.
6. If a user has a stale +REQUIRED_BY file in a pkg directory, print a
helpful message that suggests how to fix it. [2]
7. Don't tell a user about a -r port to rebuild if we're not going to
rebuild it for whatever reason.

Bug Fixes:
==========
1. Clean up trailing white space.
2. If the pkg data is corrupt, a search for installed port by ORIGIN
could return more than one answer. So, use only the first answer.
3. In dependency_check(), if a port has moved, check the new location
to see if it needs updating.
4. If there are no valid ports to build based on the command line
args, don't try to build /usr/ports/ [3]

[1] Suggested, debugged, and generally helped greatly by mezz
[2] Wondered about by yar
[3] Reminded by Bill Blue
2006-10-06 21:50:29 +00:00
Rong-En Fan
94f8f411d1 - Update to 20061003
PR:		ports/103934
Submitted by:	Sulev-Madis Silber <madis555 at hot.ee> (maintainer)
2006-10-04 05:47:49 +00:00
Boris Samorodov
4751668a55 - fix the portsnap dependency for systems where it is already in base; [1]
- make sure we don't overwrite user's configuration file in case of     [1]
  upgrade;
- bump PORTREVISION.

PR:		103858  [1]
Submitted by:	Sulev-Madis Silber <madis555 at hot.ee> (maintainer)    [1]
2006-10-01 11:05:32 +00:00
Martin Wilke
257b3ba563 - Update to 20060929
PR:		ports/103809
Submitted by:	Sulev-Madis Silber <madis555(at)hot.ee> (maintainer)
2006-09-30 11:07:42 +00:00
Ion-Mihai Tetcu
3ea5caa2a6 Actually put something in files/patch-setup.sh and fix left-overs on deinstall.
Submitted by:	pointyhat via kris
2006-09-27 20:39:17 +00:00
Stanislav Sedov
0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00
Mark Linimon
155b7743fc Update to the latest version being tested on i386-6-exp on pointyhat. 2006-09-20 08:01:59 +00:00
Ion-Mihai Tetcu
fe40b60865 - Net/SMTP.pm and Digest/MD5.pm are both installed with perl 5.8.x so drop them
from RUN_DEPENDS and add files/patch-setup.sh to patch the distribution [1]
- allow creation of a Build that is a substring of an existing one
( files/patch-create) [2]
- bump PORTREVISION

Submitted by:	oliver [1], bsam and marcus [2]
Requested by:	marcus [1]
2006-09-18 20:20:09 +00:00
Rong-En Fan
b2b1a64267 - Update to 1.8
PR:		ports/103325
Submitted by:	Matthew Seaman <m.seaman at infracaninophile.co.uk> (maintainer)
2006-09-17 15:37:31 +00:00
Mark Linimon
07c642fb5e Bring this up to the patches in ports/102300 and ports/102514, which are
currently being tested on the cluster.
2006-09-15 07:36:05 +00:00
Mark Linimon
e47df16d7d Update to ports/Mk/bsd.port.mk 1.541. 2006-09-15 07:13:23 +00:00
Mark Linimon
b1579fbe58 Re-add definition forgotten in last checkin. 2006-09-14 06:50:46 +00:00
Colin Percival
80f6c8cd1f Turn
IGNORE=	"foo now contained in the base system"
into
IGNORE=	"is now contained in the base system"
since the code which prints this string prefices it with the package
name.

Suggested by:	kris
2006-09-13 05:24:34 +00:00
Alex Dupre
66be1c780c Add explicit support for comments and empty lines in ports.conf.
PR:		ports/102914
Submitted by:	Hans Lambermont <hans@lambermont.dyndns.org>
2006-09-06 12:50:31 +00:00
Cheng-Lung Sung
6d4a92f5ac - Update to 0.2.5
- Addition of -W option and minor bug fixed where whitespace at begin/end of
  portglob argument was not properly rejected.

PR:		ports/102695
Submitted by:	maintainer (Martin Kammerhofer)
2006-08-30 15:14:00 +00:00
Jean Milanez Melo
539f72eaa7 - Update mastersites.
PR:		ports/102480
Submitted by:	Andreas Fehlner <fehlner@gmx.de> (maintainer)
2006-08-25 17:32:55 +00:00
Sergey Matveychuk
2ace452a38 - Fix descriptions in pkgtools.conf to be obviouslier. [1]
- Fix s pointyhat URL for package direcories.

PR:		ports/102417 [1]
Reported by:	Ryan Wehler <mindflux98@gmail.com>
2006-08-25 12:46:50 +00:00
Sergey Matveychuk
9a6aae0de8 - Update to 2.1.3.3.
A few fixes merged from developing version, patches integrated.
2006-08-23 10:02:46 +00:00
Doug Barton
741ddf72fe Update for version 1.8 2006-08-23 05:46:15 +00:00
Doug Barton
07a24c904b New Feature
===========
If a port is marked IGNORE, don't do all the dependency/checksum work,
instead bomb out with a helpful message

Minor Fixes
===========
1. Add some whitespace to make the "dependency check complete" message
stand out better
2. Tell the user when we start pkg_delete in -s mode, just like in -e

Bug Fixes
=========
1. Export MAKE_ARGS so that the child checksum processes can see them
2. Move the "just in case" cd back to $portdir up one line so it's
before 'make clean', just in case
2006-08-23 05:45:44 +00:00
Mark Linimon
0963c5f0b6 Catch up with ports/Mk/bsd.port.subdir.mk r1.65. 2006-08-17 07:12:56 +00:00
Mark Linimon
2481d44934 Catch up to ports/Mk/bsd.port.mk r1.540. 2006-08-17 07:11:34 +00:00
Martin Wilke
be730b8600 - Respect DESTDIR
PR:		ports/102011
Submitted by:	Matthew Seaman <m.seaman(at)infracaninophile.co.uk>
Approved by:	krion (mentor)
2006-08-16 05:51:17 +00:00
Rong-En Fan
673fdfcdc7 - Update to 0.2.4
Use bash rather than /bin/sh to add -I option (case insensitive globbing).

PR:		ports/102020
Submitted by:	Martin Kammerhofer <dada at pluto.tugraz.at>
Approved by:	Martin Kammerhofer <mkamm at gmx.net> (maintainer)
2006-08-15 16:44:19 +00:00
Cheng-Lung Sung
c54010f434 - s,INSTALLS_SHLIB,USE_LDCONFIG,g
- these include security/ sysutils/ textproc/ maintained by ports@

PR:		ports/101916
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
2006-08-15 01:04:55 +00:00
Sergey Matveychuk
3fb955a056 - Update to 2.1.7 2006-08-14 18:09:33 +00:00
Doug Barton
178553ea50 Update for new version 1.7 2006-08-12 09:05:46 +00:00
Doug Barton
3613ada588 Update for new expunge feature in 1.7, and generally improve markup 2006-08-12 09:04:48 +00:00
Doug Barton
24eb87d739 New Features
============
1. -e mode to expunge a port via pkg_delete, and optionally
remove its distfiles
2. -s and -e modes now respect -b (backup) and -d|D options
regarding always deleting (or not deleting) distfiles

General
=======
1. Re-factor more code out into functions, and move them earlier in the
script so that they are available to the new features.
2. Clean up the code in a few places to make it slightly more efficient,
and a lot more readable.

Bug Fixes
=========
1. Fix exit status of various code paths to be more in keeping
with Unix tradition [1]
2. Be a lot more thorough about killing off errant children when
the user hits ^C [1]
3. If the directory referred to by PKGREPOSITORY exists, use it
to store packages built for -b and -g instead of HOME [2]

My thanks to both Darren and James for their patience and testing
of several development versions to nail down bugs 2 and 3.

Brought to my attention by: Darren Pilgrim <darren.pilgrim@bitfreak.org> [1]
Brought to my attention by: James O'Gorman <james@netinertia.co.uk> [2]
2006-08-12 09:04:03 +00:00
Joe Marcus Clarke
e17a20be47 Respect DESTDIR.
PR:		101675
Submitted by:	gabor
2006-08-11 15:52:23 +00:00
Sergey Matveychuk
560d04ceff - Make fetch(1) quiet when STDOUT is not a tty (as it was before).
PR:		ports/101341
Requested by:	Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
2006-08-09 17:17:22 +00:00
Doug Barton
20a7db3c93 Update for version 1.6. 2006-08-07 19:13:42 +00:00
Doug Barton
f24160d1b1 New Features
============
1. -L mode to list all installed ports, and search for updates.
2. Trap SIGINT, and use the opportunity to reap all the child processes
we can find.
3. Warn the user during config mode if a port sets IS_INTERACTIVE
4. Support +IGNOREME files in /var/db/pkg/<portname>, ala portupgrade
5. Store the results of the user's choices for -i during config, so they
don't have to enter it again during build
6. When deleting stale distfiles, recurse through successively shorter
versions of file-name-* till we find something to delete, or run out
of dashes. This means a lot fewer false positives, although the
algorithm is still aggressive.

Performance Optimizations
=========================
1. Skip dependency check prior to build if the 'make config' recursion
does not find any ports that need updating.
2. Cache the dependency list for the parent port.
3. -s mode is now recursive, so if a removed port has dependencies,
they are checked too. Remember what ports the user does not want to
delete so they don't have to keep saying "no."
4. Much better support for failed downloads in the background, and the
'make checksum' process is only run once for each port.
5. Switch to using variables and case rather then grep to maintain state
for current dependencies, answers for -i, etc.
6. Re-order some tests to micro-optimize do_update, etc.
7. Handle regular files in /var/db/pkg more efficiently
8. Track the pid of the parent process, and use that to manage state
more efficiently. Also makes for more readable code.
9. Don't clean dependencies, since we don't recurse through them using
the ports tree, we'll let each portmaster process handle it.
10. Cache information about dependencies that are already up to date
to avoid having to do this check when not necessary. This dramatically
improves performance for building/updating large ports (especially
meta-ports like gnome or kde) with a lot of dependencies.

Bug Fixes
=========
1. Add -f to pkg_delete in -s case
2. Reverse the "is required by" statements to make more sense for -r
3. Add PATCHFILES to the list of distfiles to delete when looking for
stale distfiles
4. Minor cleanups, and better code consistency
5. usage() already exits, so clean up h) getopt
6. Add a catchall getopt so user will get usage() for an invalid option
7. Update some messages to make them more meaningful and simplify code
8. Fix specifying second option to -o in <category/portname> format
9. Properly handle the case where the second argument to -o is a port
that is already installed
10. Don't mention the 'make config' step if -G

Security Enhancement
====================
1. Be more careful to only delete temp files if they haven't already been
deleted or moved
2006-08-07 19:13:20 +00:00
Renato Botelho
627650ef9d - Fix PLIST: Remove locale dirs not contained in BSD.local.dist
- Add USE_GETTEXT and INSTALLS_ICONS

PR:		ports/101491
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru>
2006-08-07 11:42:55 +00:00
Joe Marcus Clarke
439fd9185c Actually check to see if $seen_special is set before checking the number
of plist items.
2006-08-06 22:36:45 +00:00
Joe Marcus Clarke
178abbd25e Update to 2.9.1.
* Add a check for direct use of sysctl(8). [1]
* Add a check for use of the deprecated macro INSTALLS_SHLIB, and point people
  to USE_LDCONFIG instead. [2]
* Add a check for plists with less than 6 items, and point people to
  PLIST_FILES instead. [3]

PR:		100472 [1]
		91933 [2]
		100190 [3]
Submitted by:	Babak Farrokhi <babak@farrokhi.net> [1]
2006-08-06 21:44:18 +00:00
Erwin Lansing
50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00
Cheng-Lung Sung
857f21d17b - update to 1.7
- from Changes
  - Following some useful e-mail discussions with Mark Linimon
    and Dan Langille, switch to using the MASTER_PORT variable
    to detect master/slave relationships between ports.
    MASTER_PORT will be set in every slave port whereas
    MASTERDIR doesn't have to be.  Here a slave port is one
    defined as using port metadata from some other port, and
    doesn't have to go as far as requiring both master and slave
    to use the same Makefile and other ports infrastructure.
  - Keep track of the version of the software used to create the
    cache, and prompt for a cache rebuild if the software has
    been upgraded since.  A cache rebuild is definitely required
    for the 1.6 -> 1.7 update.
  - Don't quit on errors parsing make variables at the cache-init
    or cache-update stage.  Print copious error messages, but carry
    on processing.  Entries for ports that fail at this stage will
    not be created in the cache.
  - Don't quit on errors parsing make variables at the cache-init
    or cache-update stage.  Print copious error messages, but carry
    on processing.  Entries for ports that fail at this stage will
    not be created in the cache.

PR:		100759
Submitted by:	maintainer (Matthew Seaman)
2006-07-23 22:43:53 +00:00
Sergey Matveychuk
842470c297 - Update to 2.1.6.
Mostly bugs fixes release.
2006-07-23 17:08:24 +00:00
Sergey Matveychuk
5cc280614a - Fix a bug that caused incorrect output-processing in second-party soft.
Obtained from:	Kport
2006-07-23 15:08:08 +00:00
Sergey Matveychuk
beee543973 - Fix a type: DBD4->BDB4 in messages.
Submitted by:	yar
2006-07-20 17:29:00 +00:00
Edwin Groothuis
6ea8a8230f sysutils/portsnap - cleanup
- move pkg-message to files/pkg-message.in and use SUB_FILES
- move post-extract to post-patch and use REINPLACE_CMD
- replace ${PREFIX} in man-page with %%PREFIX%% and then REINPLACE_CMD
  over it.
- Make replacement in former post-extract actually work due to
  changed layout of the file.

PR:		ports/100584
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
Approved by:	cperciva@#bsdports
2006-07-20 01:15:03 +00:00
Mark Linimon
fbd9015a93 Bring this up to date with ports/Mk/bsd.port.mk 1.538. Note that ports/98565
was forgotten on the test run yet again.
2006-07-19 00:02:52 +00:00
Ion-Mihai Tetcu
2fa2f357fc - fix a path
- fix some filenames
- add a short install instruction for MySQL

PR:		ports/100146
Submitted by:	Beat Gätzi <beat@chruetertee.ch>
2006-07-12 17:26:20 +00:00
Sergey Matveychuk
8e4d616b11 - Fix a bug when values of -M was ignored.
Submitted by:	John E Hein <jhein@timing.com>
2006-07-12 16:21:32 +00:00
Cheng-Lung Sung
dc2fc40ccd - update to 0.2.2
- Added option -w to report matching port directories.

PR:		ports/100014
Submitted by:	maintainer (Martin Kammerhofer)
2006-07-10 07:53:48 +00:00