From 7fd18f8169941f66456c38dabad2a018272527ad Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 28 Oct 2013 19:17:08 +0000 Subject: [PATCH] Add STAGEDIR where needed (in some cases) --- en_US.ISO8859-1/books/porters-handbook/book.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.xml b/en_US.ISO8859-1/books/porters-handbook/book.xml index 68d674e919..dcdd27dd14 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.xml +++ b/en_US.ISO8859-1/books/porters-handbook/book.xml @@ -5036,7 +5036,7 @@ PORTVERSION= 1.0 example: post-install: - ${STRIP_CMD} ${PREFIX}/bin/xdl + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl 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 target. post-install: - ${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) This example will install the contents of examples directory in the vendor @@ -5077,8 +5077,8 @@ PORTVERSION= 1.0 port. post-install: - ${MKDIR} ${DATADIR}/summer - (cd ${WRKSRC}/temperatures && ${COPYTREE_SHARE} "June July August" ${DATADIR}/summer) + ${MKDIR} ${STAGEDIR}${DATADIR}/summer + (cd ${WRKSRC}/temperatures && ${COPYTREE_SHARE} "June July August" ${STAGEDIR}${DATADIR}/summer) And this example will install the data of summer months to the summer subdirectory of a @@ -5091,9 +5091,9 @@ PORTVERSION= 1.0 one can use the following command. post-install: - ${MKDIR} ${EXAMPLESDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && \ - ${COPYTREE_SHARE} . ${EXAMPLESDIR} "! -name Makefile") + ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile") Note that these macros does not add the installed files to pkg-plist. You still need to list @@ -10008,7 +10008,7 @@ lib/X11/oneko/sounds/cat.au 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 For each configuration file, create the following three