]> CyberLeo.Net >> Repos - CDN/cdn-ports-overlay.git/blob - cdn/patch/Makefile-rsync-update.patch
Makefile: include ports/171681 rsync update patch
[CDN/cdn-ports-overlay.git] / cdn / patch / Makefile-rsync-update.patch
1 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171681
2
3 --- Makefile.orig       2012-08-05 13:06:49.000000000 -0400
4 +++ Makefile    2012-09-16 05:56:08.885054241 -0400
5 @@ -155,6 +155,8 @@
6  GIT?= git
7  SVN?= svn
8  SUP?= csup
9 +RSYNC?= rsync
10 +RSYNC_FLAGS?= --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --verbose
11  PORTSNAP?= portsnap
12  PORTSNAP_FLAGS?= -p ${.CURDIR}
13  .if defined(SUPHOST)
14 @@ -172,6 +174,11 @@
15         @echo ">>> Updating ${.CURDIR} from CVS repository" ${CVSROOT}
16         @echo "--------------------------------------------------------------"
17         cd ${.CURDIR}; ${CVS} -R -q update -A -P -d -I!
18 +.elif defined(RSYNC_UPDATE) && defined(PORTS_RSYNC_SOURCE)
19 +       @echo "--------------------------------------------------------------"
20 +       @echo ">>> Updating with ${RSYNC} from ${PORTS_RSYNC_SOURCE}"
21 +       @echo "--------------------------------------------------------------"
22 +       @${RSYNC} ${RSYNC_FLAGS} ${PORTS_RSYNC_SOURCE}/ ${.CURDIR}/
23  .elif exists(${.CURDIR}/.svn)
24         @echo "--------------------------------------------------------------"
25         @echo ">>> Updating ${.CURDIR} using Subversion"