1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix extract for non-root users.

Noticed by:	nectar
Pointy hat to:	cy
This commit is contained in:
Cy Schubert 2002-08-17 00:29:41 +00:00
parent 31ae5740e3
commit 9c4b099138
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64594
4 changed files with 24 additions and 8 deletions

View File

@ -81,8 +81,12 @@ do-fetch:
post-extract:
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
@${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}
@${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
@if [ `id -u` = 0 ]; then \
${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}; \
${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}; \
fi
.endif
.endif
pre-build:

View File

@ -81,8 +81,12 @@ do-fetch:
post-extract:
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
@${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}
@${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
@if [ `id -u` = 0 ]; then \
${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}; \
${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}; \
fi
.endif
.endif
pre-build:

View File

@ -81,8 +81,12 @@ do-fetch:
post-extract:
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
@${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}
@${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
@if [ `id -u` = 0 ]; then \
${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}; \
${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}; \
fi
.endif
.endif
pre-build:

View File

@ -81,8 +81,12 @@ do-fetch:
post-extract:
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz
@${RM} ${WRKDIR}/${DISTNAME}.tar.gz ${WRKDIR}/${DISTNAME}.tar.gz.asc
@${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}
@${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
@if [ `id -u` = 0 ]; then \
${CHMOD} -R ug-s,go-w ${WRKDIR}/${DISTNAME}; \
${CHOWN} -R 0:0 ${WRKDIR}/${DISTNAME}; \
fi
.endif
.endif
pre-build: