]> CyberLeo.Net >> Repos - CDN/cdn-ports-overlay.git/blob - cdn/patch/Makefile-rsync-update.patch
Makefile: CVS removal broke rsync ports update patch
[CDN/cdn-ports-overlay.git] / cdn / patch / Makefile-rsync-update.patch
1 --- Makefile.orig       2013-06-01 01:11:59.374630772 -0400
2 +++ Makefile    2013-06-01 01:13:32.861834918 -0400
3 @@ -152,11 +152,18 @@
4  
5  GIT?= git
6  SVN?= svn
7 +RSYNC?= rsync
8 +RSYNC_FLAGS?= --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --verbose
9  PORTSNAP?= portsnap
10  PORTSNAP_FLAGS?= -p ${.CURDIR}
11  .if !target(update)
12  update:
13 -.if exists(${.CURDIR}/.svn)
14 +.if defined(RSYNC_UPDATE) && defined(PORTS_RSYNC_SOURCE)
15 +       @echo "--------------------------------------------------------------"
16 +       @echo ">>> Updating with ${RSYNC} from ${PORTS_RSYNC_SOURCE}"
17 +       @echo "--------------------------------------------------------------"
18 +       @${RSYNC} ${RSYNC_FLAGS} ${PORTS_RSYNC_SOURCE}/ ${.CURDIR}/
19 +.elif exists(${.CURDIR}/.svn)
20         @echo "--------------------------------------------------------------"
21         @echo ">>> Updating ${.CURDIR} using Subversion"
22         @echo "--------------------------------------------------------------"