Introduce an option that builds rsync with the "detect-renamed" patch. It

detects renamed hierarchies and avoids re-copying the files in those
hierarchies.

Requested by:	"J.R. Oldroyd" <jr@opal.com> (via mail)
Feature safe:	yes
This commit is contained in:
Emanuel Haupt 2012-04-03 21:08:40 +00:00
parent 078c4a4478
commit c32ba7b6af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294170

View file

@ -43,7 +43,8 @@ OPTIONS= POPT_PORT "Use popt from devel/popt instead of bundled one" off \
ATIMES "Preserve access times, adds --atimes" off \
ACL "Add backward-compatibility for the --acls option" off \
ICONV "Add iconv support" off \
TIMELIMIT "Time limit patch" off
TIMELIMIT "Time limit patch" off \
RENAMED "Add support for renamed file detection" on
.include <bsd.port.pre.mk>
@ -66,7 +67,7 @@ IGNORE= flags and atimes can't be enabled simultaneously. Please rerun 'make co
.endif
.endif
.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum) || defined(WITH_TIMELIMIT) || defined(WITH_ATIMES)
.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum) || defined(WITH_TIMELIMIT) || defined(WITH_ATIMES) || defined(WITH_RENAMED)
DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX}
CFLAGS+= -I${LOCALBASE}/include
.endif
@ -87,6 +88,11 @@ PATCH_STRIP= -p1
EXTRA_PATCHES+= ${WRKSRC}/patches/fileflags.diff
.endif
.if defined(WITH_RENAMED)
PATCH_STRIP= -p1
EXTRA_PATCHES+= ${WRKSRC}/patches/detect-renamed.diff
.endif
.if defined(WITH_ACL)
PATCH_STRIP= -p1
EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff