From owner-freebsd-ports@FreeBSD.ORG Fri Mar 4 17:51:57 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5192816A4CE for ; Fri, 4 Mar 2005 17:51:57 +0000 (GMT) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FB2E43D31 for ; Fri, 4 Mar 2005 17:51:56 +0000 (GMT) (envelope-from wielebap@volt.iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (wielebap@localhost [127.0.0.1]) by volt.iem.pw.edu.pl (8.13.3/8.13.1) with ESMTP id j24Hpt5q074233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Mar 2005 18:51:55 +0100 (CET) (envelope-from wielebap@volt.iem.pw.edu.pl) Received: (from wielebap@localhost) by volt.iem.pw.edu.pl (8.13.3/8.13.1/Submit) id j24Hpts4074232; Fri, 4 Mar 2005 18:51:55 +0100 (CET) (envelope-from wielebap) Date: Fri, 4 Mar 2005 18:51:55 +0100 From: Pawel Wieleba To: freebsd-ports@freebsd.org Message-ID: <20050304175155.GA73021@volt.iem.pw.edu.pl> References: <20050304150431.GA58539@volt.iem.pw.edu.pl> <20050304172810.097676a1@it.buh.tecnik93.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050304172810.097676a1@it.buh.tecnik93.com> User-Agent: Mutt/1.5.6i cc: Ion-Mihai Tetcu Subject: Re: [port update] print/foomatic-db; how to name the package with the current date X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 17:51:57 -0000 On Fri, Mar 04, 2005 at 05:28:10PM +0200, Ion-Mihai Tetcu wrote: > On Fri, 4 Mar 2005 16:04:32 +0100 > Pawel Wieleba wrote: > > > Hi! > > I've posted a PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/78397 > > > > Therefore I've got a question. > > As stated on http://www.linuxprinting.org/foomatic.html > > devel/foomatic-db is updated daily, therefore I would like to have an > > up-to-date database during port installation (fetching) on my machine, not > > just the date stated in devel/foomatic-db/Makefile. > > I would like to do this automaticaly and I would like that this > > information (meaning date) will be added to the created package name. > > > > Do you have an idea how to accomplish this? > > It is very simple to download the current foomatic-db but I have no idea > > how to include the date in the package name. > > PKGNAMESUFFIX ? I've alread checked it and I cannot use it like this: PKGNAMESUFFIX= -`date "+%Y%m%d"` Simply - error;-) > > > It would be nice if > > portupgrade could inform me if there is a newer database 'version' > > available. > > portupgrade can't do it for you, since it has uses the information from > Ports Collection Makefiles. Of course, therefore I ask what mechanism I should use to enclose the date to a Makefile. > You could do a helper script that would download the db. You could put > somewhere on you website a distinfo file and update it daily and make > the port fetch it and add it to the distinfo. Yes, but it's a lot of administrative duties, and probably useless. The whole database is imported direrctly from CVS. > -- > IOnut > Unregistered ;) FreeBSD "user" Thx for a comment. Pawel Wieleba