aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/db/Makefile5
-rw-r--r--databases/db2/Makefile5
2 files changed, 6 insertions, 4 deletions
diff --git a/databases/db/Makefile b/databases/db/Makefile
index 48c920ecd8ad..260660428f73 100644
--- a/databases/db/Makefile
+++ b/databases/db/Makefile
@@ -23,10 +23,11 @@ CONFIGURE_ARGS= --enable-compat185 \
--enable-dump185 --enable-cxx
post-install:
+ @-${RM} -fr ${PREFIX}/share/examples/db2
${MKDIR} ${PREFIX}/share/examples/db2
cd ${WRKSRC}/..; \
- tar -cf - --exclude tags examples/ examples_cxx/ examples_java/ | \
- ( cd ${PREFIX}/share/examples/db2; tar xf - )
+ tar -cf - --exclude tags examples/ examples_cxx/ examples_java/. \
+ | ( cd ${PREFIX}/share/examples/db2; tar xf - )
@${ECHO_MSG} ""
@${ECHO_MSG} "Java support for ${PKGNAME} is *not* built by default, and requires that you"
@${ECHO_MSG} "have a working copy of the JDK (v1.1) installed."
diff --git a/databases/db2/Makefile b/databases/db2/Makefile
index 48c920ecd8ad..260660428f73 100644
--- a/databases/db2/Makefile
+++ b/databases/db2/Makefile
@@ -23,10 +23,11 @@ CONFIGURE_ARGS= --enable-compat185 \
--enable-dump185 --enable-cxx
post-install:
+ @-${RM} -fr ${PREFIX}/share/examples/db2
${MKDIR} ${PREFIX}/share/examples/db2
cd ${WRKSRC}/..; \
- tar -cf - --exclude tags examples/ examples_cxx/ examples_java/ | \
- ( cd ${PREFIX}/share/examples/db2; tar xf - )
+ tar -cf - --exclude tags examples/ examples_cxx/ examples_java/. \
+ | ( cd ${PREFIX}/share/examples/db2; tar xf - )
@${ECHO_MSG} ""
@${ECHO_MSG} "Java support for ${PKGNAME} is *not* built by default, and requires that you"
@${ECHO_MSG} "have a working copy of the JDK (v1.1) installed."