Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 09:30:17 +0200 (CEST)
From:      Volker Stolz <vs@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/81824: [patch] Porters' Handbook: Document DISTVERSION
Message-ID:  <200506030730.j537UHYG072444@i2.informatik.rwth-aachen.de>
Resent-Message-ID: <200506030740.j537e2HL086001@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         81824
>Category:       docs
>Synopsis:       [patch] Porters' Handbook: Document DISTVERSION
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 03 07:40:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Lehrstuhl für Informatik II; RWTH Aachen Universität
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506030730.j537UHYG072444>