View | Details | Raw Unified | Return to bug 166541
Collapse All | Expand All

(-)en_US.ISO8859-1/books/porters-handbook/book.sgml (-3 / +8 lines)
Lines 9378-9391 Link Here
9378
		${CP} -p ${PREFIX}/etc/orbit.conf.sample ${PREFIX}/etc/orbit.conf ; \
9378
		${CP} -p ${PREFIX}/etc/orbit.conf.sample ${PREFIX}/etc/orbit.conf ; \
9379
	fi</programlisting>
9379
	fi</programlisting>
9380
9380
9381
      <para>Example of the <filename>pkg-plist</filename> part:</para>
9381
      <para>For each configuration file create the following tuple in
9382
      <filename>pkg-plist</filename>:</para>
9382
9383
9383
      <programlisting>@unexec if cmp -s %D/etc/orbit.conf.sample %D/etc/orbit.conf; then rm -f %D/etc/orbit.conf; fi
9384
      <programlisting>@unexec if cmp -s %D/etc/orbit.conf.sample %D/etc/orbit.conf; then rm -f %D/etc/orbit.conf; fi
9384
etc/orbit.conf.sample
9385
etc/orbit.conf.sample
9385
@exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi</programlisting>
9386
@exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi</programlisting>
9386
9387
9387
      <para>For information on the above variables see
9388
      <para>The ordering is important, since the sample file still has
9388
	&man.pkg.create.1;</para>
9389
      to exist in order to be compared upon deinstallation. Upon
9390
      installation, the sample file has to be extracted before it can be
9391
      copied. To debug any issues, temporarily remove the -s flag to
9392
      &man.cmp.1;. For information on the above variables see
9393
      &man.pkg.create.1;</para>
9389
9394
9390
      <para>If there is a very good reason not to install a working
9395
      <para>If there is a very good reason not to install a working
9391
	configuration file by default, use a <link
9396
	configuration file by default, use a <link

Return to bug 166541