ports/78397: [port update] print/foomatic-db - changed: port versioning, CVS_BRANCH to stable (3.0), CVS_DATE
Pawel Wieleba
P.Wieleba at iem.pw.edu.pl
Fri Mar 4 08:10:11 UTC 2005
>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: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 04 08:10:10 GMT 2005
>Closed-Date:
>Last-Modified:
>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 at 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 at cvs.linuxprinting.org:/usr/local/cvs
+CVS_DATE= 20050304
+CVS_SITES?= pserver:anonymous at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list