ports/86088: [maintainer] databases/mysql-connector-java improve installation of documentation
Matthew Seaman
m.seaman at infracaninophile.co.uk
Tue Sep 13 18:50:12 UTC 2005
>Number: 86088
>Category: ports
>Synopsis: [maintainer] databases/mysql-connector-java improve installation of documentation
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 13 18:50:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Matthew Seaman
>Release: FreeBSD 6.0-BETA3 i386
>Organization:
Infracaninophile
>Environment:
System: FreeBSD lack-of-gravitas.thebunker.net 6.0-BETA3 FreeBSD 6.0-BETA3 #3: Tue Aug 30 13:36:31 BST 2005 root at lack-of-gravitas.thebunker.net:/usr/obj/usr/src/sys/LACK-OF-GRAVITAS i386
>Description:
As suggested by Herve Quiroz in an e-mail conversation quite some time
ago now, instead of using ${CP} -r to install javadocs, use ${FIND}
with ${MKDIR} and ${INSTALL_DATA} to ensure that ownerships and
permissions come out right when port is built as a mortal user then
installed as root.
>How-To-Repeat:
>Fix:
--- mysql-connector-java.diff begins here ---
diff -Nur /usr/ports/databases/mysql-connector-java/Makefile mysql-connector-java/Makefile
--- /usr/ports/databases/mysql-connector-java/Makefile Thu Jul 7 08:37:50 2005
+++ mysql-connector-java/Makefile Tue Sep 13 19:34:33 2005
@@ -89,7 +89,14 @@
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${APIDOCSDIR}
- @${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR}
+ @cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \
+ dst=${APIDOCSDIR}$${src#.} ; \
+ if ${TEST} -d $$src ; then \
+ ${MKDIR} $$dst ; \
+ else \
+ ${INSTALL_DATA} $$src $$dst ; \
+ fi \
+ done
@for extradoc in ${EXTRADOCS} ; do \
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
done
--- mysql-connector-java.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list