diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-12-14 11:44:24 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-12-14 11:44:24 +0000 |
commit | 9cb1f86730cb9856a5995edcdaff1dad98d8500e (patch) | |
tree | a1f84e1df13ae6664ad32a1b519cbc17dfefee73 /Mk/bsd.port.mk | |
parent | fa77662c1d43035ad07b968a279175e4be580dcd (diff) | |
download | ports-9cb1f86730cb9856a5995edcdaff1dad98d8500e.tar.gz ports-9cb1f86730cb9856a5995edcdaff1dad98d8500e.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index bbb5d2f9a9de..cc39e9d47adb 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -768,19 +768,14 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # # For extract: # -# EXTRACT_CMD - Command for extracting archive: "bzip2" if USE_BZIP2 -# is set, "gzip" otherwise. +# EXTRACT_CMD - Command for extracting archive +# Default: ${TAR} # EXTRACT_BEFORE_ARGS # - Arguments to ${EXTRACT_CMD} before filename. -# Default: "-dc" +# Default: "-xf" # EXTRACT_AFTER_ARGS # - Arguments to ${EXTRACT_CMD} following filename. -# default: "| tar -xf -" -# EXTRACT_PRESERVE_OWNERSHIP -# - Normally, when run as "root", the extract stage will -# change the owner and group of all files under ${WRKDIR} -# to 0:0. Set this variable if you want to turn off this -# feature. +# Default: "--no-same-owner --no-same-permissions" # For patch: # # EXTRA_PATCHES - Define this variable if you have patches not in @@ -2155,11 +2150,7 @@ TAR?= /usr/bin/tar # EXTRACT_SUFX is defined in .pre.mk section EXTRACT_CMD?= ${TAR} EXTRACT_BEFORE_ARGS?= -xf -.if defined(EXTRACT_PRESERVE_OWNERSHIP) -EXTRACT_AFTER_ARGS?= -.else EXTRACT_AFTER_ARGS?= --no-same-owner --no-same-permissions -.endif # Figure out where the local mtree file is .if !defined(MTREE_FILE) && !defined(NO_MTREE) @@ -3319,13 +3310,11 @@ do-extract: exit 1; \ fi; \ done -.if !defined(EXTRACT_PRESERVE_OWNERSHIP) @if [ ${UID} = 0 ]; then \ ${CHMOD} -R ug-s ${WRKDIR}; \ ${CHOWN} -R 0:0 ${WRKDIR}; \ fi .endif -.endif # Patch |