From 68e32ddc351073dee73e1bad330053dda09201ab Mon Sep 17 00:00:00 2001 From: koitsu Date: Wed, 9 Jul 2008 12:44:01 +0000 Subject: Add support for --atimes patch, which preserves access times. Reviewed by: ehaupt Approved by: ehaupt --- net/rsync/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/rsync/Makefile b/net/rsync/Makefile index b1c7f14918e..d0c8c551420 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -40,6 +40,7 @@ MAN5= rsyncd.conf.5 OPTIONS= POPT_PORT "Use popt from devel/popt instead of bundled one" off \ SSH "Use SSH instead of RSH" on \ FLAGS "File system flags support patch, adds --fileflags" 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 @@ -52,9 +53,20 @@ EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff .if defined(WITH_FLAGS) IGNORE= flags and timelimit can't be both enabled at the same time. Please rerun 'make config' and disable one of them .endif +.if defined(WITH_ATIMES) +IGNORE= atimes and timelimit can't be enabled simultaneously. Please rerun 'make config' and disable one of them +.endif +.endif + +.if !defined(WITHOUT_ATIMES) +PATCH_STRIP= -p1 +EXTRA_PATCHES+= ${WRKSRC}/patches/atimes.diff +.if defined(WITH_FLAGS) +IGNORE= flags and atimes can't be enabled simultaneously. Please rerun 'make config' and disable one of them +.endif .endif -.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum) || defined(WITH_TIMELIMIT) +.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum) || defined(WITH_TIMELIMIT) || defined(WITH_ATIMES) DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX} .endif -- cgit