Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 15:11:28 -0600
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        Luke Dean <LukeD@pobox.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Tricking pkg_version
Message-ID:  <49739B00.5060909@math.missouri.edu>
In-Reply-To: <alpine.BSF.2.00.0901181229570.22102@border.lukas.is-a-geek.org>
References:  <alpine.BSF.2.00.0901181229570.22102@border.lukas.is-a-geek.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Luke Dean wrote:
> 
> I installed phpbb-3.02 from ports (i.e. "make install").
> I then used phpbb's built-in upgrade system to upgrade it to version 3.04.
> This of course did not bump the version number in the ports/packages
> database.
> I frequently use csup + pkg_version -L to spot ports that are out of date,
> and this one will probably show up forever now.
> 
> I don't wish to recompile anything because I've made a lot of custom
> changes to the php code and I don't want to go through the pain of
> remerging all that stuff again.
> 
> Is there a way that I can tell pkg_version that I think I'm already
> running version 3.04?
> I'd like to continue to pretend that this package is still managed by the
> ports/package system even though I've modified it.  I realize that this is
> not sane, but it will help me spot new versions when they become available
> and I just like having all my software listed in one place like this.
> 
> I've briefly poked around in /var/db/pkg/phpbb-3.0.2, but those files with
> all their checksums just scream "don't touch!" to me.
> 
> I'm not using any ports/package management tools except for "make" and
> "pkg_*", so aside from whatever database pkg_info uses, there are no other
> databases to worry about.

You could try:

cd /var/db/pkg
mv phpbb-3.0.2 phpbb-3.0.4

I think it is likely to work.  And if it doesn't, the damage is easily 
repaired.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49739B00.5060909>