FreeBSD Bugzilla – Attachment 123242 Details for
Bug 166541
[patch] Clarification for configuration file handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
configfiles-clarification.patch
configfiles-clarification.patch (text/plain), 1.51 KB, created by
Rachel Flynn
on 2012-03-31 21:10:10 UTC
(
hide
)
Description:
configfiles-clarification.patch
Filename:
MIME Type:
Creator:
Rachel Flynn
Created:
2012-03-31 21:10:10 UTC
Size:
1.51 KB
patch
obsolete
>Index: en_US.ISO8859-1/books/porters-handbook/book.sgml >=================================================================== >RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v >retrieving revision 1.1173 >diff -u -r1.1173 book.sgml >--- en_US.ISO8859-1/books/porters-handbook/book.sgml 22 Mar 2012 04:09:20 -0000 1.1173 >+++ en_US.ISO8859-1/books/porters-handbook/book.sgml 31 Mar 2012 19:49:36 -0000 >@@ -9378,14 +9378,19 @@ > ${CP} -p ${PREFIX}/etc/orbit.conf.sample ${PREFIX}/etc/orbit.conf ; \ > fi</programlisting> > >- <para>Example of the <filename>pkg-plist</filename> part:</para> >+ <para>For each configuration file create the following tuple in >+ <filename>pkg-plist</filename>:</para> > > <programlisting>@unexec if cmp -s %D/etc/orbit.conf.sample %D/etc/orbit.conf; then rm -f %D/etc/orbit.conf; fi > etc/orbit.conf.sample > @exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi</programlisting> > >- <para>For information on the above variables see >- &man.pkg.create.1;</para> >+ <para>The ordering is important, since the sample file still has >+ to exist in order to be compared upon deinstallation. Upon >+ installation, the sample file has to be extracted before it can be >+ copied. To debug any issues, temporarily remove the -s flag to >+ &man.cmp.1;. For information on the above variables see >+ &man.pkg.create.1;</para> > > <para>If there is a very good reason not to install a working > configuration file by default, use a <link
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 166541
: 123242