From nobody@FreeBSD.org  Fri Mar  4 08:00:51 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 16C3016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Mar 2005 08:00:51 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C9B8343D31
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Mar 2005 08:00:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2480oZI088586
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Mar 2005 08:00:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j2480oVV088585;
	Fri, 4 Mar 2005 08:00:50 GMT
	(envelope-from nobody)
Message-Id: <200503040800.j2480oVV088585@www.freebsd.org>
Date: Fri, 4 Mar 2005 08:00:50 GMT
From: Pawel Wieleba <P.Wieleba@iem.pw.edu.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [port update] print/foomatic-db - changed: port versioning, CVS_BRANCH to stable (3.0), CVS_DATE
X-Send-Pr-Version: www-2.3

>Number:         78397
>Category:       ports
>Synopsis:       [port update] print/foomatic-db - changed: port versioning, CVS_BRANCH to stable (3.0), CVS_DATE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lawrance
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 04 08:10:10 GMT 2005
>Closed-Date:    Sat Jun 11 06:42:49 GMT 2005
>Last-Modified:  Sat Jun 11 06:42:49 GMT 2005
>Originator:     Pawel Wieleba
>Release:        5.3-STABLE
>Organization:
>Environment:
FreeBSD srv 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Feb 10 00:37:57 CET 2005     root@srv.inter.siec:/usr/obj/usr/src/sys/SRV  i386
>Description:
print/foomatic-db port now uses CVS current version which means
unstable 3.1.
Other print/foomatic-* ports use now 3.0.2 STABLE version.
As you can read from www.linuxprinting.org/foomatic.html we should
use STABLE 3.0 database version with other 3.0 foomatic packages.

The print/foomatic-db port database is over a year old.
>How-To-Repeat:

>Fix:
I changed CVS_BRANCH to foomatic-3_0-branch, which is a STABLE branch.
I upgraded CVS_DATE tag to 20050304.
I changed PORTVERSION to 3.0.${CVS_DATE}.
I changed repository to reflect the one on www.linuxprinting.org/foomatic.html

I enclose a patch to this port:
srv# cat print/foomatic-db/Makefile.diff
--- print/foomatic-db/Makefile-ORG      Wed Mar  2 13:37:34 2005
+++ print/foomatic-db/Makefile  Fri Mar  4 08:21:43 2005
@@ -6,8 +6,8 @@
 #

 PORTNAME=      foomatic-db
-PORTVERSION=   20040107
-PORTREVISION=  2
+PORTVERSION=   3.0.${CVS_DATE}
+PORTEPOCH=     1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
 NO_CHECKSUM=   ${DISTFILES}
@@ -27,8 +27,9 @@

 .include <bsd.port.pre.mk>
 CVS_CMD?=      cvs -z3
-CVS_DATE=      ${PORTVERSION}
-CVS_SITES?=    pserver:anonymous@cvs.linuxprinting.org:/usr/local/cvs
+CVS_DATE=      20050304
+CVS_SITES?=    pserver:anonymous@cvs.linuxprinting.org:/var/lib/cvs
+CVS_BRANCH=    foomatic-3_0-branch     # STABLE
 CVS_MODULE=    foomatic-db

 #
@@ -41,7 +42,7 @@
                cd ${DISTDIR}/${DISTNAME}; \
                for CVS_SITE in ${CVS_SITES}; do \
                        ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
-                       if ${CVS_CMD} -d:$${CVS_SITE} co -D "${CVS_DATE}" ${CVS_MODULE}; \
+                       if ${CVS_CMD} -d:$${CVS_SITE} co -D "${CVS_DATE}" -r ${CVS_BRANCH} ${CVS_MODULE}; \
                            then \
                                cd ${DISTDIR}; \
                                ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
srv#

Is it somehow possible to name a package version with the date of
building (here fetching) a port? It would be unnecessary to update
CVS_DATE manually in Makefile.
Thanks for reading.
Pawel Wieleba
>Release-Note:
>Audit-Trail:

From: Pawel Wieleba <P.Wieleba@iem.pw.edu.pl>
To: freebsd-gnats-submit@freebsd.org, P.Wieleba@iem.pw.edu.pl
Cc:  
Subject: Re: ports/78397: [port update] print/foomatic-db - changed: port versioning, CVS_BRANCH to stable (3.0), CVS_DATE
Date: Wed, 9 Mar 2005 12:30:44 +0100

 Hello once again.
 I've created an updated print/foomatic-db port, which includes patches 
 from the PR 78397 and it can be downloaded from:
  http://www.iem.pw.edu.pl/~wielebap/foomatic-db/foomatic-db.tar.gz
 
 Additionally to the PR 78397 there are updated:
  pkg-plist
  files/patch-make_configure
 
 They can be downloaded separately from:
 http://www.iem.pw.edu.pl/~wielebap/foomatic-db/foomatic-db
 
 It will be nice to see an updated version in ports tree.
 Thanks for attention
 Pawel Wieleba
Responsible-Changed-From-To: freebsd-ports-bugs->lawrance 
Responsible-Changed-By: lawrance 
Responsible-Changed-When: Thu Jun 9 14:22:50 GMT 2005 
Responsible-Changed-Why:  
Grabba dabba doo 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78397 
State-Changed-From-To: open->closed 
State-Changed-By: lawrance 
State-Changed-When: Sat Jun 11 06:42:24 GMT 2005 
State-Changed-Why:  
Committed with a few minor modifications, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78397 
>Unformatted:
