portupgrade O(n^m)?

Oliver Fromme olli at lurza.secnetix.de
Thu Feb 15 08:16:23 UTC 2007


David Gilbert wrote:
 > Jeremy Messenger wrote::
 > > Give ports-mgmt/portmaster a try.
 > 
 > I just did.  One flaw it has is that I have two no longer supported
 > ports installed.  I want to run portmaster -a, but when it finds tund
 > (and I assume it would also stop for xsysinfo), it stops.  I put a
 > file '+IGNOREME' in the pkg directories for these two ports, but the
 > process continues to stop.
 > 
 > I'd rather not just delete their package info --- it is still correct.

In such cases you can create a "fake" port in a local
category (/usr/ports/local) and change the package info
manually so it points to it.  cvsup won't touch that
directory.

Usually it's as simple as checking out the obsolete port
from CVS, then move it to the local category, and then
replace the original category with "local" in the Makefile
(the "CATEGORIES=..." line) and in the "ORIGIN:..." line
in /var/db/pkg/$PORTNAME/+CONTENTS.  If you use any third-
party tools that use the INDEX file, you'll have to add
the local port to that file, too (the pkg_* tools of the
base system don't use it).  To do that, simply type
"make describe" in the port directory, and it will print
a line for that port suitable for appending to the INDEX
file.

It might seem a little hackish, but it works.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als
wenn ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen
pangalaktischen Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht,
was ich damit soll." -- Frank Klemm, de.comp.os.unix.discussion


More information about the freebsd-hackers mailing list