FreeBSD Bugzilla – Attachment 44816 Details for
Bug 69271
Porter's Handbook: hint on proper pkg-message usage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.15 KB, created by
Alexey Dokuchaev
on 2004-07-19 10:10:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alexey Dokuchaev
Created:
2004-07-19 10:10:07 UTC
Size:
1.15 KB
patch
obsolete
>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">
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69271
: 44816