diff options
author | hq <hq@FreeBSD.org> | 2005-09-14 16:41:23 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-09-14 16:41:23 +0000 |
commit | 34c0475b6b76c7f2810436ac50bcea03dce903df (patch) | |
tree | 3c4529972fb3f08362b4cb3e6667a2e955270f8e /databases/mysql-connector-java | |
parent | fc07befd9126cf5ae38b35257349d16f60bb6dcf (diff) | |
download | FreeBSD-ports-34c0475b6b76c7f2810436ac50bcea03dce903df.zip FreeBSD-ports-34c0475b6b76c7f2810436ac50bcea03dce903df.tar.gz |
Install documentation using ${INSTALL_DATA} rather than ${CP} to ensure that
ownerships and permissions come out right when port is built as a mortal user
then installed as root
PR: 86088
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
Diffstat (limited to 'databases/mysql-connector-java')
-rw-r--r-- | databases/mysql-connector-java/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/databases/mysql-connector-java/Makefile b/databases/mysql-connector-java/Makefile index b08afee..7735523 100644 --- a/databases/mysql-connector-java/Makefile +++ b/databases/mysql-connector-java/Makefile @@ -89,7 +89,14 @@ do-install-apidocs: .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 |