From stolz@i2.informatik.rwth-aachen.de  Fri Jun  3 07:30:20 2005
Return-Path: <stolz@i2.informatik.rwth-aachen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2B56916A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Jun 2005 07:30:20 +0000 (GMT)
	(envelope-from stolz@i2.informatik.rwth-aachen.de)
Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 735CC43D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Jun 2005 07:30:18 +0000 (GMT)
	(envelope-from stolz@i2.informatik.rwth-aachen.de)
Received: from i2.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73])
	by atlas.informatik.rwth-aachen.de (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j537UHK4010580
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 3 Jun 2005 09:30:17 +0200
Received: (from stolz@localhost)
	by i2.informatik.rwth-aachen.de (8.13.1/8.13.1/Submit) id j537UHYG072444;
	Fri, 3 Jun 2005 09:30:17 +0200 (CEST)
	(envelope-from stolz)
Message-Id: <200506030730.j537UHYG072444@i2.informatik.rwth-aachen.de>
Date: Fri, 3 Jun 2005 09:30:17 +0200 (CEST)
From: Volker Stolz <vs@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Porters' Handbook: Document DISTVERSION
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81824
>Category:       docs
>Synopsis:       [patch] Porters' Handbook: Document DISTVERSION
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jcamou
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 03 07:40:01 GMT 2005
>Closed-Date:    Sat Jun 25 00:03:02 GMT 2005
>Last-Modified:  Sat Jun 25 00:03:02 GMT 2005
>Originator:     Volker Stolz
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Lehrstuhl fr Informatik II; RWTH Aachen Universitt
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.11-STABLE FreeBSD 4.11-STABLE #23: Fri Jan 14 09:26:11 CET 2005 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
Document DISTVERSION
>How-To-Repeat:
>Fix:
--- distversion.diff begins here ---
Index: book.sgml
===================================================================
RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v
retrieving revision 1.569
diff -u -r1.569 book.sgml
--- book.sgml	31 May 2005 20:02:17 -0000	1.569
+++ book.sgml	3 Jun 2005 07:27:01 -0000
@@ -758,7 +758,8 @@
 	  gzip'd tarball named something like
 	  <filename>foozolix-1.2.tar.gz</filename>? If so, you can go on
 	  to the next step.  If not, you should look at overriding any of
-	  the <makevar>DISTNAME</makevar>, <makevar>EXTRACT_CMD</makevar>,
+	  the <makevar>DISTVERSION</makevar>, <makevar>DISTNAME</makevar>,
+          <makevar>EXTRACT_CMD</makevar>,
 	  <makevar>EXTRACT_BEFORE_ARGS</makevar>,
 	  <makevar>EXTRACT_AFTER_ARGS</makevar>,
 	  <makevar>EXTRACT_SUFX</makevar>, or <makevar>DISTFILES</makevar>
@@ -2096,7 +2097,7 @@
 	they can be downloaded from.</para>
 
       <sect2>
-	<title><makevar>DISTNAME</makevar></title>
+	<title><makevar>DISTVERSION/DISTNAME</makevar></title>
 
 	<para><makevar>DISTNAME</makevar> is the name of the port as
 	  called by the authors of the software.
@@ -2110,6 +2111,43 @@
 	  subdirectory named <makevar>WRKSRC</makevar>, which defaults
 	  to <filename>work/<makevar>${DISTNAME}</makevar></filename>.</para>
 
+        <para>Some vendor's distribution names which do not fit into the
+	  <literal>${PORTNAME}-${PORTVERSION}</literal>-scheme can be handled
+	  automatically by setting <makevar>DISTVERSION</makevar>.
+	  <makevar>PORTVERSION</makevar> and <makevar>DISTNAME</makevar> will be
+	  derived automatically, but can of course be overridden. The following
+	  table lists some examples:</para>
+
+	<informaltable frame="none" pgwide="1">
+	  <tgroup cols="2">
+	    <thead>
+	      <row>
+		<entry><makevar>DISTVERSION</makevar></entry>
+		<entry><makevar>PORTVERSION</makevar></entry>
+	      </row>
+	    </thead>
+	    
+	    <tbody>
+	      <row>
+		<entry>0.7.1d</entry>
+		<entry>0.7.1.d</entry>
+	      </row>
+	      <row>
+		<entry>10Alpha3</entry>
+		<entry>10.a3</entry>
+	      </row>
+	      <row>
+		<entry>3Beta7-pre2</entry>
+		<entry>3.b7.p2</entry>
+	      </row>
+	      <row>
+		<entry>8:f_17</entry>
+		<entry>8f.17</entry>
+	      </row>
+	    </tbody>
+	  </tgroup>
+	</informaltable>
+
 	<note>
 	  <para><makevar>PKGNAMEPREFIX</makevar> and
 	    <makevar>PKGNAMESUFFIX</makevar> do not affect
--- distversion.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->jcamou  
Responsible-Changed-By: jcamou 
Responsible-Changed-When: Tue Jun 21 09:41:05 GMT 2005 
Responsible-Changed-Why:  
Take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81824 
State-Changed-From-To: open->closed  
State-Changed-By: jcamou 
State-Changed-When: Sat Jun 25 00:02:02 GMT 2005 
State-Changed-Why:  
Patch committed with a minor fix.  Thanks! 

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