diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-05 05:07:06 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-05 05:07:06 +0800 |
commit | e58e4729413e9492f9052bfcc6f6e19c59a6f5a4 (patch) | |
tree | b53409650a8463dd4240c43aab45717a113aaf08 /Mk | |
parent | a02a2ec0c3eb7867abed9b225bff507be2cd269f (diff) | |
download | freebsd-ports-gnome-e58e4729413e9492f9052bfcc6f6e19c59a6f5a4.tar.gz freebsd-ports-gnome-e58e4729413e9492f9052bfcc6f6e19c59a6f5a4.tar.zst freebsd-ports-gnome-e58e4729413e9492f9052bfcc6f6e19c59a6f5a4.zip |
Add USE_LINUX_RPM_BAD_PERMS
This allows extracting to extract rpm containings hardlinks on read only files
when extracted as a regular user
Differential Revision: https://reviews.freebsd.org/D2734
Reviewed by: mat
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.linux-rpm.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Mk/bsd.linux-rpm.mk b/Mk/bsd.linux-rpm.mk index 99e4e734d654..1d69d1a1a511 100644 --- a/Mk/bsd.linux-rpm.mk +++ b/Mk/bsd.linux-rpm.mk @@ -147,9 +147,16 @@ MASTER_SITE_SUBDIR+= ${MASTER_SITE_SRC_SUBDIR} ALWAYS_KEEP_DISTFILES= yes . endif +.if !defined(USE_LINUX_RPM_BAD_PERMS) EXTRACT_CMD?= ${TAR} -EXTRACT_BEFORE_ARGS?= -xf +EXTRACT_BEFORE_ARGS?= --no-same-permissions --no-same-owner -xf EXTRACT_AFTER_ARGS?= +.else +EXTRACT_DEPENDS+= rpm2archive:${PORTSDIR}/archivers/rpm4 +EXTRACT_CMD?= rpm2archive +EXTRACT_BEFORE_ARGS?= < +EXTRACT_AFTER_ARGS?= | ${TAR} xf - --no-same-permissions --no-same-owner +.endif DISTINFO_FILE?= ${MASTERDIR}/distinfo.${LINUX_RPM_ARCH} |