summaryrefslogtreecommitdiffstats
path: root/java/gnu-regexp
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2002-11-06 22:53:55 +0000
committerglewis <glewis@FreeBSD.org>2002-11-06 22:53:55 +0000
commite63950f3ec0dd5c77001be39eab28bb397f7850f (patch)
tree1607e6c849fd3d3621b60dbeb405ff342e3a3233 /java/gnu-regexp
parent5ccea0eab4e8d2184fd2a06716209f6e7bae4d8a (diff)
downloadFreeBSD-ports-e63950f3ec0dd5c77001be39eab28bb397f7850f.zip
FreeBSD-ports-e63950f3ec0dd5c77001be39eab28bb397f7850f.tar.gz
Fix user and group ownership of the installed files when they have been
built by someone other than root. Instead of moving the files with tar, move them with cpio and set up ownership. PR: 36411 (9 more ports to go) Submitted by: alane
Diffstat (limited to 'java/gnu-regexp')
-rw-r--r--java/gnu-regexp/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/gnu-regexp/Makefile b/java/gnu-regexp/Makefile
index 09190ef..f200663 100644
--- a/java/gnu-regexp/Makefile
+++ b/java/gnu-regexp/Makefile
@@ -20,9 +20,12 @@ NO_BUILD= yes
DOCDIR= ${PREFIX}/share/doc/${PORTNAME}
+CPIO?= /usr/bin/cpio
+
do-install:
${MKDIR} ${DOCDIR}
- (cd ${WRKSRC}/docs && tar cf - . | tar --unlink -xpf - -C ${DOCDIR})
+ cd ${WRKSRC}/docs && ${FIND} . \
+ | ${CPIO} -pdmu -R ${DOCOWN}:${DOCGRP} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar \
${PREFIX}/share/java/classes/${PORTNAME}.jar
OpenPOWER on IntegriCloud