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:
parent
31ae5740e3
commit
9c4b099138
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64594
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user