In revision 1.351, All files/directories in ${CHROOTDIR}/usr/ports/distfiles
are removed, because ports.tgz includes distfiles by accident. However, removing files/directories is *not* mandatory. The only requirement is "ports.tgz doesn't include distfiles/* but distfiles directory itself". If this is correct, the right way is to set an option to tar(1), not to include these files. This commit is based on PR: 34194, but a little bit of modification is made by me (original patch doesn't include 'distfiles' directory). PR: 34194 Reviewed by: Adrian Steinmann <ast@marabu.ch> (PR submitter) MFC after: 9 days
This commit is contained in:
parent
a3aa8c3ee8
commit
65718a83c9
@ -778,9 +778,9 @@ cdrom.1:
|
||||
@cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies
|
||||
.endif
|
||||
.if !defined(NOPORTS)
|
||||
@-rm -rf /usr/ports/distfiles/*
|
||||
@mkdir -p ${CD_DISC1}/ports && \
|
||||
tar --exclude CVS -czf ${CD_DISC1}/ports/ports.tgz -C /usr ports && \
|
||||
tar --exclude CVS --exclude 'ports/distfiles/*' -czf \
|
||||
${CD_DISC1}/ports/ports.tgz -C /usr ports && \
|
||||
cp ${.CURDIR}/scripts/ports-install.sh ${CD_DISC1}/ports/install.sh \
|
||||
&& (cd ${CD_DISC1}/ports; md5 * > CHECKSUM.MD5)
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user