From 1c78829f1b07ab11e680884fb0d32c790abd089e Mon Sep 17 00:00:00 2001 From: leeym Date: Sun, 6 Apr 2003 18:15:30 +0000 Subject: use cpio(1) instead of tar(1), avoid owner's problem when the port is built and installed by different user. Submitted by: David Magda --- mail/openwebmail/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mail') diff --git a/mail/openwebmail/Makefile b/mail/openwebmail/Makefile index 700d15befb4..dedc171a99e 100644 --- a/mail/openwebmail/Makefile +++ b/mail/openwebmail/Makefile @@ -80,11 +80,9 @@ post-patch: .endif do-install: - @${MKDIR} ${OWCGIDIR:S,${PORTNAME},,} - @cd ${WRKSRC}/cgi-bin && ${TAR} cf - ${PORTNAME} | (cd ${OWCGIDIR:S,${PORTNAME},,}; ${TAR} xf -) - @${MKDIR} ${OWDATADIR:S,${PORTNAME},,} - @cd ${WRKSRC}/data && ${TAR} cf - ${PORTNAME} | (cd ${OWDATADIR:S,${PORTNAME},,}; ${TAR} xf -) - @${CHOWN} -R root:mail ${OWCGIDIR} + @${MKDIR} ${OWCGIDIR} ${OWDATADIR} + @cd ${WRKSRC}/cgi-bin/openwebmail && ${FIND} . | cpio -dpum -R ${BINOWN}:mail ${OWCGIDIR} + @cd ${WRKSRC}/data/openwebmail && ${FIND} . | cpio -dpum -R ${SHAREOWN}:${SHAREGRP} ${OWDATADIR} @${CHMOD} 0770 ${OWCGIDIR}/etc/sessions ${OWCGIDIR}/etc/users @${CHMOD} 4755 ${OWCGIDIR}/openwebmail*pl @${PERL} ${OWCGIDIR}/uty/wrapsuid.pl ${OWCGIDIR} -- cgit