Commit graph

1731 commits

Author SHA1 Message Date
Doug Barton
eef8da8289 Update to version 3.1. In addition to the features listed below there are
numerous internal reorganizations of various sections of code; and several
informative messages have been updated to be more informative. :)

If you're interested in all the details you can review the svn logs at
http://svn.freebsd.org/viewvc/base/user/dougb/portmaster/

Catch Up With Ports Infrastructure
==================================
1. Switch to using DISTINFO_FILE instead of MD5_FILE
2. Use the SHA256 line from distinfo instead of MD5
3. The BEFOREPORTMK trick no longer works to list MASTER_SITES for all ports
so switch to the slightly slower but more reliable pm_make without it. This
will solve the problem of portmaster not fetching all distfiles in the
background.
4. In the case statement to select the appropriate release for package
fetching glob 9.0-CURRENT to handle snapshots as well.

Various Improvements
====================
1. If we fail, offer a suggestion for a shortcut to restart
2. In messages that refer to the INDEX file, use the variable to make it
clear what we're working with.
3. In dependency_check() be clear when we're using the INDEX
4. Dramatic (9-10 times) speedup in iport_from_origin() by making an
intelligent guess about what director{y|ies] to search in based on
the origin directory name which means we're almost always
looking in either exactly the right directory the first time, or
at worst (such as the py-* ports) a dramatically smaller subset.
5. If using --index-only and neither INDEXDIR nor PORTSDIR are set, set
INDEXDIR to $TMPDIR so that we can proceed. That makes PACKAGES the
only variable the user has to set to use --index-only and --packages-only
with no $PORTSDIR and no ports directory.

Bug Fixes
=========
1. For the determination of LOCALBASE:
	a. Don't try to use INDEX if PM_INDEX is not set
	b. Give a more meaningful error message
2. Be more careful to check that there is a line for the port in the INDEX
when working --index-only.
3. In the package fetch routine use a better string match to see if we have
already downloaded the directory listing. The previous one worked but would
match too many files for net* and x11*, especially when installing a lot of
ports. So add a '.' to differentiate these.
4. The --clean-packages and --clean-packages-all features were added just
a little too hastily, so overhaul them.
2010-10-30 04:43:43 +00:00
Emanuel Haupt
80caaa36eb - Update to 0.2
- Don't need www/p5-HTTP-SimpleLinkChecker anymore
2010-10-29 23:17:46 +00:00
Erwin Lansing
74cb9eff53 Deprecate md5 in favour of sha256 checksums. md5 checksums will no longer
be generated or checked, and will be silently ignored for now.  Also,
generalize the MD5_FILE macro to DISTINFO_FILO.

PR:		149657
Submitted by:	rene
Approved by:	portmgr
Tested on:	pointyhat i386 7-exp
2010-10-28 21:00:21 +00:00
Wesley Shields
e92489142e Add alias information to pkg-message.
Approved by:	itetcu@ (maintainer)
2010-10-24 17:44:03 +00:00
Wesley Shields
34ac3ea430 Add alias information for wrkdirs to pkg-message for ports-mgmt/tinderbox.
Add all alias information to pkg-message for ports-mgmt/tinderbox-devel.

Approved by:	itetcu@ (maintainer)
2010-10-24 17:43:28 +00:00
Emanuel Haupt
9e388df920 This port requires at least perl 5.10.1
Notified by:	glarkin
2010-10-19 20:34:41 +00:00
Emanuel Haupt
2bdee0af72 Add ports-mgmt/distilator, a command-line script to check the availability of a
ports distfiles. This script can take advantage of perl threads if available.
2010-10-19 15:50:02 +00:00
Andrej Zverev
7f3432d624 - Update to 2.1.3
* update WWW
* implement fixes suggested by Doug Barton
* remove extra space in bpkg.8

PR:		ports/151025
Submitted by:	Andy Kosela (maintainer)
2010-09-29 16:02:01 +00:00
Andrej Zverev
51c7590c22 - Update to 2.1.2
* regex patterns fix to some of the options
* man updated

PR:		ports/150906
Submitted by:	Andy Kosela <akosela@andykosela.com> (maintainer)
2010-09-25 14:55:28 +00:00
Philip M. Gollucci
76f3222580 - %%SITE_PERL%%/auto and %%SITE_PERL%%/%%PERL_ARCH%%/auto
are part of lang/perl5* pkg-plist
- Bump PORTREVISIONs

With Hat:   perl@
2010-09-24 00:44:29 +00:00
Romain Tartière
c577403b72 - Update to 1.0.1. 2010-09-23 08:12:30 +00:00
Max Brazhnikov
e0a00d6a4d Update to 2.1.1
PR:		ports/150700
Submitted by:	Andy Kosela (maintainer)
2010-09-19 11:43:25 +00:00
Baptiste Daroussin
1173a8dc62 - Update to 2.1
* major new release
* most functions has been rewritten for speed and efficiency
* -S deprecated
* -I switched with -i
* search improvements (using INDEX)
* overall code clean-up

PR:		ports/150324
Submitted by:	Andy Kosela <akosela _at_ andykosela.com> (maintainer)
2010-09-15 08:41:55 +00:00
Renato Botelho
cc08602273 Remove dependency of net/csup since the port is DEPRECATED and will be removed
Approved by:	portmgr (pav)
2010-09-14 12:02:32 +00:00
Philip M. Gollucci
5c080626b9 - Fix Exporter issue by updating to 1.2.2
PR:             ports/148036
Reported by:    Janne Snabb <snabb@epipe.com>
Approved by:    maintainer timeout (vvelox@vvelox.net)
2010-09-09 22:41:50 +00:00
Philip M. Gollucci
2a45164ac7 - use ${PERL} instead of perl
PR:             ports/142151
Submitted by:   Sevan Janiyan <venture37@geeklan.co.uk>
Approved by:    maintainer timeout (wosch ; 246 days)
2010-09-09 00:13:25 +00:00
Olli Hauer
78b76b211d - Add JAVAJARDIR to substitutions
- small fix if prefix is given with trailing /

PR:		150273
Submitted by:	Rob Farmer <rfarmer _at_ predatorlabs.net>
Approved by:	maintainer, glakin (mentor, implicit)
2010-09-07 15:40:33 +00:00
Shaun Amott
424c77e107 Add missing bsd.port.options.mk include.
PR:		ports/149265 [1]
Submitted by:	Anonymous <swell.k@gmail.com> [1], ale
2010-09-06 15:04:53 +00:00
Joe Marcus Clarke
b62871f78e Update to 0.6.7. 2010-09-05 16:56:17 +00:00
Alberto Villa
2a061e8b59 - Upgrade to 0.6.1.
- Add LICENSE.

Approved by:	tabthorpe (mentor, implicit)
2010-09-03 10:29:23 +00:00
Bernhard Froehlich
b5fc7efd42 - Mark DEPRECATED and set EXPIRATION_DATE to 2010-11-01
PR:		ports/149716
Submitted by:	Simon Olofsson <simon at olofsson dot de>
Approved by:	miwi (mentor)
2010-08-19 09:01:31 +00:00
Greg Larkin
97909ed4b9 - Updated to 0.5
- Minor Makefile cleanups

PR:		ports/149530
Submitted by:	Jason Bacon <jwbacon at tds dot net> (maintainer)
2010-08-13 19:19:08 +00:00
Gabor Pali
cad06c6077 - Add DIST_SUBDIR for Haskell Cabal ports (with default of "cabal")
Suggested by:	admi3
2010-08-08 08:49:38 +00:00
Doug Barton
c05052db0c Update to version 3.0
New Features
============
1. Add an option to log actions after the run is complete. To enable
   it define PM_LOG in your rc file as the path of the file you want
   to log to. If using PM_SU_CMD make sure that the directory or file
   is writable by the unprivileged user.

2. Add the --clean-packages[-all] feature

   This works similarly to --clean-distfiles[-all] in that it searches
   the $PACKAGES directory for out of date packages, and either offers
   to delete them, or with -all deletes them without prompting. It
   also cleans out stale symlinks and empty directories.

   This necessitates moving init_packages_var() and parse_index() so
   they can be used by the new feature.

   The idea for grabbing the ORIGIN from the package's +CONTENTS file
   and checking to see if it is up to date came from:
   Alexey Markov <a.markov@complitex.ru>

3. Add an option to --clean-distfiles[-all] to allow a distfile to be
   valid if it matches ANY port in the tree, not just those installed.
   This requires building a distinfo list from all ports, so duplicate
   the relevant bits of read_distinfos() into read_distinfos_all(). The
   common elements are split into during the loop and after the loop, so
   making 4 functions total doesn't seem worth it.

   Add logic to --clean-distfiles to handle the -t option and call the
   right read_distinfos* function accordingly.

4. Add the ability to ignore failed backup package creation by setting
   PM_IGNORE_FAILED_BACKUP_PACKAGE in the environment (rc file, etc.)

5. Add the ability to skip the rebuild of the -r port by adding -R

Cleanups and Tweaks
===================
1. Finalize the deprecations of /etc/portmaster.rc, -u and -p
2. If --local-packagedir and ${LOCAL_PACKAGEDIR}/All/${new_port}.tbz
   exists just use it, don't bother dereferencing $LATEST_LINK. This
   is faster, but it also solves the problem of (for example)
   packages/Latest/perl links to perl-5.10.x, even with 5.12.x
   installed and the 5.12.x package in packages/All
3. Change the behavior of the -G option.

   In the original version of portmaster the concept of 2 distinct
   passes through the dependency tree, the first to do all the
   'make config's and the second to build everything was intrinsic to
   the design. When released publicly there were a non-trivial number
   of users who objected to the idea of 'make config' being mandatory,
   so I added the -G option to disable the whole first pass.  However
   as time went on, more and more features were added that depended on
   the first pass, so it was necessary to rethink how -G works.

   In this version, the 2-pass design is now universal, and the only
   thing -G does is suppress the actual OPTIONS dialog. This has
   several benefits:
   a. Now all features are available to -G users
   b. The new method of suppressing the OPTIONS dialog is 100%
      effective (thus it's no longer necessary to use BATCH to truly
      suppress them)
   c. The --force-config option now overrides -G so users who really
      hate OPTIONS can have -G in their rc file, but still have it
      available by using --force-config on the command line

   Lots of variables, functions, and text have been modified to
   substitute out references to "config" in favor of "first pass"
4. Use nice for the make commands that actually build stuff
5. Improve the messages for fetching and updating INDEX
6. Add some whitespace in checkdepends() after removing stale data
7. If we're doing -F don't bother to initialize $PACKAGES
8. Clean up whitespace in the code
9. Use a better, more generic method of signaling an abnormal exit
   and call safe_exit with a status of 1 from more places.

   This is likely the cause of some of the vague problem reports I have
   received in the past that include complaints of, "I used -r/f and -R
   but portmaster still rebuilt certain ports a whole bunch of times."
10. In parent_exit() if INSTALLED_LIST has content but ilist does not,
    move it over so we can display the right information about work done
11. Make parse_index() more forgiving of PORTSDIR != /usr/ports
12. If PORTSDIR exists, but isn't a ports tree, warn the user, and when
    setting PACKAGES run tests against $pd, not literal /usr/ports.
    Thanks to bf@ for these 2.
2010-08-07 23:04:57 +00:00
Doug Barton
ab84f64b4a Remove portmaster from the ports tree 2010-08-07 23:02:56 +00:00
Mark Linimon
27d6250bfb Over to new maintainer, who seems to be interested in working on it.
Hat:		portmgr
2010-08-03 01:47:52 +00:00
Koop Mast
65898b3f67 Presenting GNOME 2.30.2. for FreeBSD. 2010-07-25 19:35:08 +00:00
Joe Marcus Clarke
af30002d71 Update to 0.6.6. 2010-07-25 01:00:33 +00:00
Jeremy Messenger
4e268259cc Fix the misplaced C shell attempt to redirect stderr to allow a few users
to be able to install this port.

PR:		ports/148102
Submitted by:	truckman
Feature safe:	yes
2010-07-20 21:42:29 +00:00
Max Brazhnikov
df6082c222 Update to 0.3
PR:		ports/148495
Submitted by:	Mario Pavlov (maintainer)
2010-07-11 18:55:41 +00:00
Sahil Tandon
b12c404764 - Update maintainer's email address
PR:		ports/148497
Submitted by:	Eitan Adler <eitanadlerlist@gmail.com> (maintainer)
2010-07-11 18:41:15 +00:00
Dirk Meyer
d8dd25dc2c - update to 1.69
- path configureable over ENV
- update pkg_jail to use rc.conf or pkg_jail.conf
Feature safe:	yes
2010-06-24 15:59:48 +00:00
Doug Barton
d3a92693cd Update for version 2.32 2010-06-18 08:52:49 +00:00
Doug Barton
fe8cbc143c build_l also needs to be unset in pm_make_s() 2010-06-18 08:52:03 +00:00
Doug Barton
c58c9c8b9a Unset build_l in pm_make() 2010-06-18 08:22:32 +00:00
Doug Barton
79f2597e35 Update for version 2.30 2010-06-18 07:35:49 +00:00
Doug Barton
d133d0fe53 If the user specified --no-confirm don't build the list. With a lot of
ports to update it can get quite large.

If there are a very large number of ports installed the grep in
iport_from_origin() can fail with "Argument list too long." It's also
theoretically possible that the grep would fail for other reasons. So
if it does, fall back to 'pkg_info -O'. My method is faster which is
why I'm still trying it first, but this is a sort of "belt and
suspenders" situation.
2010-06-18 07:35:28 +00:00
Joe Marcus Clarke
84ce50b415 Update to 2.13.1.
* USE_APACHE=yes is now fatal
* Clean up WITH_APACHEX=X variants. WITH_APACHE=yes is now the only allowed one

PR:		146988
Submitted by:	pgollucci
2010-06-16 03:53:15 +00:00
Rene Ladan
36734dd6de * Always install the manual page [1]
* Fix maintainer address [2]

Submitted by:	QAT [1], maintainer [2]
Approved by:	tabthorpe (mentor)
2010-06-15 21:57:46 +00:00
Rene Ladan
e48a81f15b A special meta-port to do nothing but register dependencies on those
ports you specifically want to have installed.  The normal dependency
checking in programs like pkg_delete(1) will prevent easy deletion of
ports that other ports depend on.  Keeps egg off face.  Protects feet
from being shot.

PR:		ports/147808
Submitted by:	Matthew Seaman <m.seaman at infracaninophile.co.uk>
Approved by:	tabthorpe (mentor)
2010-06-15 17:28:05 +00:00
Doug Barton
a22b6e03bd Add LICENSE information to my ports where the right answer is obvious 2010-06-14 08:22:55 +00:00
Doug Barton
3b8ce9c778 Update for version 2.29 2010-06-12 23:37:36 +00:00
Doug Barton
af0c0b7f62 There is no reason for uniquify_list() to reverse the entries,
and doing so can make debugging more difficult.

Add code to post_config() to make sure that things in the
build-only dependency list are not listed as run dependencies for
something already installed.

Apparently, in some circumstances it's necessary to run ldconfig -R
when one moves shared libs from /usr/local/lib to
/usr/local/lib/compat/pkg. So add that to the -w code.
2010-06-12 23:36:52 +00:00
Doug Barton
75ff80886b Update for version 2.28 2010-06-11 08:24:29 +00:00
Doug Barton
a87f40fe2c In delete_all_distfiles() when there is no $origin (such as when a port
has moved) but there IS a /var/db/ports/<portname>/distfiles, we do not
want to prompt the user if they are using -d, we just want to delete
the files.

In the code to strip the port from $build_l if the user chose not to
update a port that has an +IGNOREME file, the backslash in "\t" needs
to be escaped.
2010-06-11 08:23:52 +00:00
Romain Tartière
1df03e63a2 The portshaker-config port provides a simple config-based interface to generate
and maintain a portshaker configuration throught the ports system.

It is designed to ease using portshaker for users who want to merge portshaker
powered ports overlays in their FreeBSD ports tree.
2010-06-09 13:22:00 +00:00
Romain Tartière
9c1eb43146 portshaker(8) is a tool designed for merging partial ports trees into the
FreeBSD ports tree. In other words, it implements some kind of overlay for the
FreeBSD ports.
2010-06-09 13:21:18 +00:00
Alberto Villa
cf32a115f9 KPackageKit is the KDE interface for PackageKit. It features
everything Gnome PackageKit does except:
- install catalog;
- service pack;
- a D-Bus session interface.
These items are not mandatory since they are more features of the GUI
itself than a feature in PackageKit.

WWW: http://kde-apps.org/content/show.php/KPackageKit?content=84745

Approved by:	tabthorpe, miwi (mentors)
2010-06-02 07:18:07 +00:00
Ade Lovett
8d837132c7 Bounce PORTREVISION for gettext-related ports. Have fun, ya'll. 2010-05-31 02:01:56 +00:00
Edwin Groothuis
07689f0ab7 From Tom Hukins:
I notice it looks for a perl executable in /usr/bin/perl.  However, a
perl executable may not exist here, so this small patch changes the
port to use the PERL5 variable to determine the correct location of
perl as determined by the ports system.
2010-05-27 12:58:20 +00:00