Add STAGEDIR where needed (in some cases)
This commit is contained in:
parent
a4948a4701
commit
7fd18f8169
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43055
1 changed files with 8 additions and 8 deletions
|
@ -5036,7 +5036,7 @@ PORTVERSION= 1.0</programlisting>
|
|||
example:</para>
|
||||
|
||||
<programlisting>post-install:
|
||||
${STRIP_CMD} ${PREFIX}/bin/xdl</programlisting>
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl</programlisting>
|
||||
|
||||
<para>Use the &man.file.1; command on the installed executable
|
||||
to check whether the binary is stripped or not. If it does
|
||||
|
@ -5068,8 +5068,8 @@ PORTVERSION= 1.0</programlisting>
|
|||
target.</para>
|
||||
|
||||
<programlisting>post-install:
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})</programlisting>
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})</programlisting>
|
||||
|
||||
<para>This example will install the contents of
|
||||
<filename>examples</filename> directory in the vendor
|
||||
|
@ -5077,8 +5077,8 @@ PORTVERSION= 1.0</programlisting>
|
|||
port.</para>
|
||||
|
||||
<programlisting>post-install:
|
||||
${MKDIR} ${DATADIR}/summer
|
||||
(cd ${WRKSRC}/temperatures && ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer)</programlisting>
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/summer
|
||||
(cd ${WRKSRC}/temperatures && ${COPYTREE_SHARE} "June July August" ${STAGEDIR}${DATADIR}/summer)</programlisting>
|
||||
|
||||
<para>And this example will install the data of summer months
|
||||
to the <filename>summer</filename> subdirectory of a
|
||||
|
@ -5091,9 +5091,9 @@ PORTVERSION= 1.0</programlisting>
|
|||
one can use the following command.</para>
|
||||
|
||||
<programlisting>post-install:
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples && \
|
||||
${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -name Makefile")</programlisting>
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile")</programlisting>
|
||||
|
||||
<para>Note that these macros does not add the installed files
|
||||
to <filename>pkg-plist</filename>. You still need to list
|
||||
|
@ -10008,7 +10008,7 @@ lib/X11/oneko/sounds/cat.au
|
|||
|
||||
<programlisting>post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/orbit.conf ]; then \
|
||||
${CP} -p ${PREFIX}/etc/orbit.conf.sample ${PREFIX}/etc/orbit.conf ; \
|
||||
${CP} -p ${PREFIX}/etc/orbit.conf.sample ${STAGEDIR}${PREFIX}/etc/orbit.conf ; \
|
||||
fi</programlisting>
|
||||
|
||||
<para>For each configuration file, create the following three
|
||||
|
|
Loading…
Reference in a new issue