From owner-freebsd-ports@FreeBSD.ORG Sun Jan 18 21:49:14 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D674610656CD for ; Sun, 18 Jan 2009 21:49:14 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ew0-f20.google.com (mail-ew0-f20.google.com [209.85.219.20]) by mx1.freebsd.org (Postfix) with ESMTP id 20FA48FC17 for ; Sun, 18 Jan 2009 21:49:13 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by ewy13 with SMTP id 13so156602ewy.19 for ; Sun, 18 Jan 2009 13:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=O76JbtaAlz4uZ5vbFHadtxYg61/NjkWxzKZlNAAcAwQ=; b=n7PcXeUDEVH5TldUiX9lyYeGsMgbZHlHrN73Sg/aw/mCur0sP3mATQiKS7vq2LSRzE 7h0ahQ+hi8frzAGW/v53NZ05rD5mM5TLXrJKb+VtlUAoBsyE05cimY26HMy9F1GQyzs6 1yTtQ33ydNbWRV56v0ecyx55sPb5fwBnleiO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=XoMoCN0M7xx1p7s+IHgGcGHGFS/mkMcKLM66V367KYQXgEU8hPEoS1w4292mFaSHBU KQdN+Ta8uHqWo2zmz4l5vh5H8bnKkEgOVqwxCuS9CPapfAx23DrrIyZlDX5lthz/9Hj9 b3gqRtjnQTSFiK7lASzYsac9vyGlHh/ZBNxys= Received: by 10.210.10.8 with SMTP id 8mr1448019ebj.169.1232313858616; Sun, 18 Jan 2009 13:24:18 -0800 (PST) Received: from self.rene-ladan.nl ([77.163.174.49]) by mx.google.com with ESMTPS id f4sm7703157nfh.33.2009.01.18.13.24.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Jan 2009 13:24:17 -0800 (PST) Message-ID: <49739DFF.5040500@gmail.com> Date: Sun, 18 Jan 2009 22:24:15 +0100 From: Rene Ladan User-Agent: Thunderbird 2.0.0.19 (X11/20090111) MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <49739B00.5060909@math.missouri.edu> In-Reply-To: <49739B00.5060909@math.missouri.edu> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org, Luke Dean Subject: Re: Tricking pkg_version X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2009 21:49:32 -0000 Stephen Montgomery-Smith schreef: > 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. This should indeed work, but don't forget to update +CONTENTS as well. (the @name tag). The outdated @pkgdep tags in dependent packages shouldn't hurt. Rene -- http://www.rene-ladan.nl/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net)