1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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 <dmagda@magda.ca>
This commit is contained in:
Yen-Ming Lee 2003-04-06 18:15:30 +00:00
parent 034cbdb998
commit 8914da5694
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78441

View File

@ -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}