From danfe@regency.nsu.ru  Mon Jul 19 09:07:32 2004
Return-Path: <danfe@regency.nsu.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E0CF816A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Jul 2004 09:07:32 +0000 (GMT)
Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA4F43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Jul 2004 09:07:31 +0000 (GMT)
	(envelope-from danfe@regency.nsu.ru)
Received: from regency.nsu.ru ([193.124.210.26])
	by mx.nsu.ru with esmtp (Exim 4.32)
	id 1BmUDs-00055n-8y
	for FreeBSD-gnats-submit@freebsd.org; Mon, 19 Jul 2004 16:14:12 +0700
Received: from regency.nsu.ru (localhost [127.0.0.1])
	by regency.nsu.ru (8.12.10/8.12.10) with ESMTP id i6J99Z9k042670
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Jul 2004 16:09:35 +0700 (NOVST)
	(envelope-from danfe@regency.nsu.ru)
Received: (from danfe@localhost)
	by regency.nsu.ru (8.12.10/8.12.10/Submit) id i6J99Yof042470;
	Mon, 19 Jul 2004 16:09:34 +0700 (NOVST)
	(envelope-from danfe)
Message-Id: <200407190909.i6J99Yof042470@regency.nsu.ru>
Date: Mon, 19 Jul 2004 16:09:34 +0700 (NOVST)
From: Alexey Dokuchaev <danfe@regency.nsu.ru>
Reply-To: Alexey Dokuchaev <danfe@regency.nsu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Porter's Handbook: hint on proper pkg-message usage
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69271
>Category:       docs
>Synopsis:       Porter's Handbook: hint on proper pkg-message usage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    flz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 19 09:10:07 GMT 2004
>Closed-Date:    Sun May 29 12:22:39 GMT 2005
>Last-Modified:  Sun May 29 12:22:39 GMT 2005
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Mar 3 13:17:54 NOVT 2004 root@regency.nsu.ru:/usr/src/sys/compile/REGENCY i386
>Description:
Sometimes porter might want to alter supplied pkg-message so it reflects
the reality better, with information available at run-time.  Special
care should be taken here, as to ensure coherent pkg-message would go
into package.  Since it's not that obvious to an average porter, and
straightforward solution is, in fact, wrong, I therefore propose the
following text to be added to Porter's Handbook (see below).
>How-To-Repeat:
N/A (but you can see games/fuhquake/Makefile for real-life usage).
>Fix:
%%%
Index: book.sgml
===================================================================
RCS file: /home/pub/ftp/pub/FreeBSD/development/FreeBSD-CVS/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v
retrieving revision 1.461
diff -u -r1.461 book.sgml
--- book.sgml	12 Jul 2004 08:24:15 -0000	1.461
+++ book.sgml	19 Jul 2004 03:47:03 -0000
@@ -4986,6 +5004,22 @@
 	    package, so you should probably display it from the
 	    <maketarget>post-install</maketarget> target yourself.</para>
 	</note>
+
+	<para>Sometimes you have your <filename>pkg-message</filename> semi-ready,
+	  that is, having to substitute some text in it with actual run-time
+	  value.  In this case, make sure you preserve modified
+	  <filename>pkg-message</filename> since you likely need it to make the
+	  package.  For example:</para>
+
+	<programlisting>post-install:
+	@${SED} -e 's|$${DATADIR}|${DATADIR}|g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}</programlisting>
+
+	<para>Contrary, wrong way would be:</para>
+
+	<programlisting>post-install:
+	@${SED} -e 's|$${DATADIR}|${DATADIR}|g' ${PKGMESSAGE}</programlisting>
+
       </sect1>
 
       <sect1 id="pkg-install">
>Release-Note:
>Audit-Trail:

From: Florent Thoumie <flz@xbsd.org>
To: Alexey Dokuchaev <danfe@regency.nsu.ru>,
	freebsd-gnats-submit@FreeBSD.org, freebsd-doc@FreeBSD.org
Cc:  
Subject: Re: docs/69271
Date: Tue, 22 Feb 2005 13:29:41 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigA31806C884BDDE4C335F8B87
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 	I think this PR has been superseded by docs/76688.
 
 --------------enigA31806C884BDDE4C335F8B87
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
 iD8DBQFCGyW9MxEkbVFH3PQRAmrFAKCOAeMd7+BJoOOt0PxaO/Nh1I+scwCeMRNb
 BEfN4HMxDJFJU/4PV57NzUk=
 =0wGa
 -----END PGP SIGNATURE-----
 
 --------------enigA31806C884BDDE4C335F8B87--
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Sun May 29 12:21:59 GMT 2005 
State-Changed-Why:  
Superseded by docs/76688. 


Responsible-Changed-From-To: freebsd-doc->flz 
Responsible-Changed-By: flz 
Responsible-Changed-When: Sun May 29 12:21:59 GMT 2005 
Responsible-Changed-Why:  
Take replies, just in case. 

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