From d5ed70a5223470eedbb2ca57527066d5adc96f11 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Wed, 6 Nov 2002 22:53:55 +0000 Subject: 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 --- java/gnu-regexp/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'java/gnu-regexp') diff --git a/java/gnu-regexp/Makefile b/java/gnu-regexp/Makefile index 09190ef3a6b7..f200663d7721 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 -- cgit v1.2.3