From clsung@FreeBSD.csie.nctu.edu.tw  Tue Jun 27 15:53:44 2006
Return-Path: <clsung@FreeBSD.csie.nctu.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3D2F316A409
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jun 2006 15:53:44 +0000 (UTC)
	(envelope-from clsung@FreeBSD.csie.nctu.edu.tw)
Received: from FreeBSD.csie.nctu.edu.tw (freebsd.csie.nctu.edu.tw [140.113.17.209])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 88F75449C3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jun 2006 15:53:43 +0000 (GMT)
	(envelope-from clsung@FreeBSD.csie.nctu.edu.tw)
Received: from localhost (localhost.csie.nctu.edu.tw [127.0.0.1])
	by FreeBSD.csie.nctu.edu.tw (Postfix) with ESMTP id 86B767E93A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jun 2006 23:55:05 +0800 (CST)
Received: from FreeBSD.csie.nctu.edu.tw ([127.0.0.1])
	by localhost (FreeBSD.csie.nctu.edu.tw [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5daOXqh6dyQ6 for <FreeBSD-gnats-submit@freebsd.org>;
	Tue, 27 Jun 2006 23:55:04 +0800 (CST)
Received: by FreeBSD.csie.nctu.edu.tw (Postfix, from userid 1038)
	id C3BE57E94F; Tue, 27 Jun 2006 23:55:04 +0800 (CST)
Message-Id: <20060627155504.C3BE57E94F@FreeBSD.csie.nctu.edu.tw>
Date: Tue, 27 Jun 2006 23:55:04 +0800 (CST)
From: Cheng-Lung Sung <clsung@FreeBSD.org>
Reply-To: Cheng-Lung Sung <clsung@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] suggestion about MASTER_SITE_SUBDIR for perl in porter's handbook 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         99554
>Category:       docs
>Synopsis:       [patch] suggestion about MASTER_SITE_SUBDIR for perl in porter's handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 27 16:00:37 GMT 2006
>Closed-Date:    Tue Jun 27 16:52:31 GMT 2006
>Last-Modified:  Tue Jun 27 16:52:31 GMT 2006
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD FreeBSD.csie.nctu.edu.tw 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #7: Thu Apr 13 03:20:20 CST 2006 root@FreeBSD.csie.nctu.edu.tw:/home/usr.obj/usr/src/sys/FREEBSD i386

>Description:
    We encourage p5-* ports maintainer to set MASTER_SITE_SUBDIR to module's
upper-level name, but this is not documented.
>How-To-Repeat:
>Fix:

--- porters-handbook/book.sgml.orig	Tue Jun 27 18:44:10 2006
+++ porters-handbook/book.sgml	Tue Jun 27 23:49:25 2006
@@ -4561,6 +4561,32 @@
     <sect1 id="using-perl">
       <title>Using <literal>perl</literal></title>
 
+      <para>If <literal>MASTER_SITES</literal> is set to 
+	<literal>&dollar;{MASTER_SITE_PERL_CPAN}</literal>, 
+	then preferred value of <literal>MASTER_SITE_SUBDIR</literal> 
+	is top-level hierarchy name instead of author's id. 
+	For example, the recommend value for 
+	<literal>p5-Module-Name</literal> is <literal>Module</literal>.
+	The top-level hierarchy can be examined in 
+	<ulink url="http://cpan.org/modules/by-module/">cpan.org</ulink>.
+      </para>
+
+      <para>The exception is:</para>
+	<itemizedlist>
+	  <listitem>
+	    <para>The top-level hierarchy name of module does not exist in 
+	      <ulink url="http://cpan.org/modules/by-module/">cpan.org</ulink>.
+	      In such case, using author's id is more appropriate.
+	    </para>
+	  </listitem>
+	</itemizedlist>
+
+      <note>
+	<para>The reasons is that author of the Perl module may
+	  change, and it will cause <maketarget>fetch</maketarget>
+	  cannot find the required files.</para>
+      </note>
+
       <table frame="none">
 	<title>Variables for ports that use <literal>perl</literal></title>
 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Jun 27 16:52:12 UTC 2006 
State-Changed-Why:  
I have committed a rather reworded text to the Porter's Handbook. 

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