diff -u -r ./Portfile ../rsync.new/Portfile
old
|
new
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name rsync |
7 | | version 3.0.8 |
8 | | revision 1 |
| 7 | version 3.0.9 |
| 8 | revision 2 |
9 | 9 | categories net |
10 | 10 | license GPL-3+ |
11 | 11 | installs_libs no |
12 | 12 | platforms darwin freebsd sunos |
13 | | maintainers nomaintainer |
| 13 | maintainers gmail.com:jimjag |
14 | 14 | description Fast incremental file transfer |
15 | 15 | long_description rsync is an open source utility that provides fast \ |
16 | 16 | incremental file transfer. It works both locally and remote \ |
… |
… |
|
21 | 21 | master_sites http://rsync.samba.org/ftp/rsync/ \ |
22 | 22 | http://rsync.samba.org/ftp/rsync/src/ |
23 | 23 | |
24 | | checksums md5 0ee8346ce16bdfe4c88a236e94c752b4 \ |
25 | | sha1 10e80173c7e9ed8b8a4dc9e8fdab08402da5f08d \ |
26 | | rmd160 f00c5ba42e33a1745976c9af5e770c220a6fa4a6 |
| 24 | checksums md5 5ee72266fe2c1822333c407e1761b92b \ |
| 25 | sha1 c64c8341984aea647506eb504496999fd968ddfc \ |
| 26 | rmd160 e5ee8d786defb0d8f937c8d027466f418c63c97e \ |
| 27 | sha256 30f10f8dd5490d28240d4271bb652b1da7a60b22ed2b9ae28090668de9247c05 |
27 | 28 | |
28 | 29 | depends_lib port:popt port:libiconv |
29 | 30 | |
30 | | # these come from http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.8.tar.gz |
| 31 | # these come from http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.9.tar.gz |
31 | 32 | # and need to be updated with each release |
32 | 33 | patchfiles patch-fileflags.diff \ |
33 | 34 | patch-crtimes.diff |
diff -u -r ./files/patch-crtimes.diff ../rsync.new/files/patch-crtimes.diff
old
|
new
|
|
462 | 462 | diff --git a/rsync.yo b/rsync.yo |
463 | 463 | --- a/rsync.yo |
464 | 464 | +++ b/rsync.yo |
465 | | @@ -354,6 +354,7 @@ to the detailed description below for a complete description. verb( |
| 465 | @@ -367,6 +367,7 @@ to the detailed description below for a complete description. verb( |
466 | 466 | -D same as --devices --specials |
467 | 467 | -t, --times preserve modification times |
468 | 468 | -O, --omit-dir-times omit directories from --times |
… |
… |
|
470 | 470 | --super receiver attempts super-user activities |
471 | 471 | --fake-super store/recover privileged attrs using xattrs |
472 | 472 | -S, --sparse handle sparse files efficiently |
473 | | @@ -1086,6 +1087,9 @@ it is preserving modification times (see bf(--times)). If NFS is sharing |
| 473 | @@ -1105,6 +1106,9 @@ it is preserving modification times (see bf(--times)). If NFS is sharing |
474 | 474 | the directories on the receiving side, it is a good idea to use bf(-O). |
475 | 475 | This option is inferred if you use bf(--backup) without bf(--backup-dir). |
476 | 476 | |
… |
… |
|
480 | 480 | dit(bf(--super)) This tells the receiving side to attempt super-user |
481 | 481 | activities even if the receiving rsync wasn't run by the super-user. These |
482 | 482 | activities include: preserving users via the bf(--owner) option, preserving |
483 | | @@ -1782,7 +1786,7 @@ with older versions of rsync, but that also turns on the output of other |
| 483 | @@ -1811,7 +1815,7 @@ with older versions of rsync, but that also turns on the output of other |
484 | 484 | verbose messages). |
485 | 485 | |
486 | 486 | The "%i" escape has a cryptic output that is 11 letters long. The general |
… |
… |
|
489 | 489 | type of update being done, bf(X) is replaced by the file-type, and the |
490 | 490 | other letters represent attributes that may be output if they are being |
491 | 491 | modified. |
492 | | @@ -1841,6 +1845,8 @@ quote(itemization( |
| 492 | @@ -1870,6 +1874,8 @@ quote(itemization( |
493 | 493 | it() The bf(f) means that the fileflags information changed. |
494 | 494 | it() The bf(a) means that the ACL information changed. |
495 | 495 | it() The bf(x) means that the extended attribute information changed. |
… |
… |
|
713 | 713 | diff -up a/rsync.1 b/rsync.1 |
714 | 714 | --- a/rsync.1 |
715 | 715 | +++ b/rsync.1 |
716 | | @@ -429,6 +429,7 @@ to the detailed description below for a |
| 716 | @@ -443,6 +443,7 @@ to the detailed description below for a |
717 | 717 | \-D same as \-\-devices \-\-specials |
718 | 718 | \-t, \-\-times preserve modification times |
719 | 719 | \-O, \-\-omit\-dir\-times omit directories from \-\-times |
… |
… |
|
721 | 721 | \-\-super receiver attempts super\-user activities |
722 | 722 | \-\-fake\-super store/recover privileged attrs using xattrs |
723 | 723 | \-S, \-\-sparse handle sparse files efficiently |
724 | | @@ -1253,6 +1254,10 @@ it is preserving modification times (see |
| 724 | @@ -1273,6 +1274,10 @@ it is preserving modification times (see |
725 | 725 | the directories on the receiving side, it is a good idea to use \fB\-O\fP. |
726 | 726 | This option is inferred if you use \fB\-\-backup\fP without \fB\-\-backup\-dir\fP. |
727 | 727 | .IP |
… |
… |
|
732 | 732 | .IP "\fB\-\-super\fP" |
733 | 733 | This tells the receiving side to attempt super\-user |
734 | 734 | activities even if the receiving rsync wasn\(cq\&t run by the super\-user. These |
735 | | @@ -2037,7 +2042,7 @@ with older versions of rsync, but that a |
| 735 | @@ -2067,7 +2072,7 @@ with older versions of rsync, but that a |
736 | 736 | verbose messages). |
737 | 737 | .IP |
738 | 738 | The \(dq\&%i\(dq\& escape has a cryptic output that is 11 letters long. The general |
… |
… |
|
741 | 741 | type of update being done, \fBX\fP is replaced by the file\-type, and the |
742 | 742 | other letters represent attributes that may be output if they are being |
743 | 743 | modified. |
744 | | @@ -2112,6 +2117,9 @@ The \fBf\fP means that the fileflags inf |
| 744 | @@ -2142,6 +2147,9 @@ The \fBf\fP means that the fileflags inf |
745 | 745 | The \fBa\fP means that the ACL information changed. |
746 | 746 | .IP o |
747 | 747 | The \fBx\fP means that the extended attribute information changed. |
diff -u -r ./files/patch-fileflags.diff ../rsync.new/files/patch-fileflags.diff
old
|
new
|
|
8 | 8 | ./configure |
9 | 9 | make |
10 | 10 | |
11 | | based-on: 1ddcdaf3f6808ba53aef9e19f630a18808de22ac |
| 11 | based-on: 40afd365cc8ca968fd16e161d24df5b8a8a520cc |
12 | 12 | diff --git a/Makefile.in b/Makefile.in |
13 | 13 | --- a/Makefile.in |
14 | 14 | +++ b/Makefile.in |
… |
… |
|
271 | 271 | if (statret != 0 && basis_dir[0] != NULL) { |
272 | 272 | int j = try_dests_non(file, fname, ndx, fnamecmpbuf, &sx, |
273 | 273 | itemizing, code); |
274 | | @@ -1526,10 +1551,17 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, |
275 | | /* We need to ensure that the dirs in the transfer have writable |
276 | | * permissions during the time we are putting files within them. |
277 | | * This is then fixed after the transfer is done. */ |
| 274 | @@ -1535,10 +1560,17 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, |
| 275 | * readable and writable permissions during the time we are |
| 276 | * putting files within them. This is then restored to the |
| 277 | * former permissions after the transfer is done. */ |
278 | 278 | +#ifdef SUPPORT_FORCE_CHANGE |
279 | 279 | + if (force_change && F_FFLAGS(file) & force_change) { |
280 | 280 | + mode_t mode = file->mode; |
… |
… |
|
283 | 283 | + } |
284 | 284 | +#endif |
285 | 285 | #ifdef HAVE_CHMOD |
286 | | if (!am_root && !(file->mode & S_IWUSR) && dir_tweaking) { |
287 | | mode_t mode = file->mode | S_IWUSR; |
| 286 | if (!am_root && (file->mode & S_IRWXU) != S_IRWXU && dir_tweaking) { |
| 287 | mode_t mode = file->mode | S_IRWXU; |
288 | 288 | - if (do_chmod(fname, mode) < 0) { |
289 | 289 | + if (do_chmod(fname, mode, 0) < 0) { |
290 | 290 | rsyserr(FERROR_XFER, errno, |
291 | 291 | "failed to modify permissions on %s", |
292 | 292 | full_fname(fname)); |
293 | | @@ -1572,6 +1604,10 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, |
| 293 | @@ -1573,6 +1605,10 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, |
294 | 294 | file->mode = dest_mode(file->mode, sx.st.st_mode, dflt_perms, |
295 | 295 | exists); |
296 | 296 | } |
… |
… |
|
301 | 301 | |
302 | 302 | #ifdef SUPPORT_HARD_LINKS |
303 | 303 | if (preserve_hard_links && F_HLINK_NOT_FIRST(file) |
304 | | @@ -2115,13 +2151,17 @@ static void touch_up_dirs(struct file_list *flist, int ndx) |
| 304 | @@ -2116,13 +2152,17 @@ static void touch_up_dirs(struct file_list *flist, int ndx) |
305 | 305 | continue; |
306 | 306 | fname = f_name(file, NULL); |
307 | 307 | if (fix_dir_perms) |
… |
… |
|
766 | 766 | diff --git a/rsync.yo b/rsync.yo |
767 | 767 | --- a/rsync.yo |
768 | 768 | +++ b/rsync.yo |
769 | | @@ -342,6 +342,7 @@ to the detailed description below for a complete description. verb( |
| 769 | @@ -355,6 +355,7 @@ to the detailed description below for a complete description. verb( |
770 | 770 | -K, --keep-dirlinks treat symlinked dir on receiver as dir |
771 | 771 | -H, --hard-links preserve hard links |
772 | 772 | -p, --perms preserve permissions |
… |
… |
|
774 | 774 | -E, --executability preserve executability |
775 | 775 | --chmod=CHMOD affect file and/or directory permissions |
776 | 776 | -A, --acls preserve ACLs (implies -p) |
777 | | @@ -373,7 +374,10 @@ to the detailed description below for a complete description. verb( |
778 | | --delete-after receiver deletes after transfer, not before |
| 777 | @@ -386,7 +387,10 @@ to the detailed description below for a complete description. verb( |
| 778 | --delete-after receiver deletes after transfer, not during |
779 | 779 | --delete-excluded also delete excluded files from dest dirs |
780 | 780 | --ignore-errors delete even if there are I/O errors |
781 | 781 | - --force force deletion of dirs even if not empty |
… |
… |
|
786 | 786 | --max-delete=NUM don't delete more than NUM files |
787 | 787 | --max-size=SIZE don't transfer any file larger than SIZE |
788 | 788 | --min-size=SIZE don't transfer any file smaller than SIZE |
789 | | @@ -547,7 +551,8 @@ specified, in which case bf(-r) is not implied. |
| 789 | @@ -566,7 +570,8 @@ specified, in which case bf(-r) is not implied. |
790 | 790 | |
791 | 791 | Note that bf(-a) bf(does not preserve hardlinks), because |
792 | 792 | finding multiply-linked files is expensive. You must separately |
… |
… |
|
796 | 796 | |
797 | 797 | dit(--no-OPTION) You may turn off one or more implied options by prefixing |
798 | 798 | the option name with "no-". Not all options may be prefixed with a "no-": |
799 | | @@ -827,7 +832,7 @@ they would be using bf(--copy-links). |
| 799 | @@ -846,7 +851,7 @@ they would be using bf(--copy-links). |
800 | 800 | Without this option, if the sending side has replaced a directory with a |
801 | 801 | symlink to a directory, the receiving side will delete anything that is in |
802 | 802 | the way of the new symlink, including a directory hierarchy (as long as |
… |
… |
|
805 | 805 | |
806 | 806 | See also bf(--keep-dirlinks) for an analogous option for the receiving |
807 | 807 | side. |
808 | | @@ -990,6 +995,29 @@ Note that this option does not copy rsyncs special xattr values (e.g. those |
| 808 | @@ -1009,6 +1014,29 @@ Note that this option does not copy rsyncs special xattr values (e.g. those |
809 | 809 | used by bf(--fake-super)) unless you repeat the option (e.g. -XX). This |
810 | 810 | "copy all xattrs" mode cannot be used with bf(--fake-super). |
811 | 811 | |
… |
… |
|
833 | 833 | +bf(--force-change) and bf(--force-schange). |
834 | 834 | + |
835 | 835 | dit(bf(--chmod)) This option tells rsync to apply one or more |
836 | | comma-separated "chmod" strings to the permission of the files in the |
| 836 | comma-separated "chmod" modes to the permission of the files in the |
837 | 837 | transfer. The resulting value is treated as though it were the permissions |
838 | | @@ -1260,12 +1288,13 @@ See bf(--delete) (which is implied) for more details on file-deletion. |
| 838 | @@ -1289,12 +1317,13 @@ See bf(--delete) (which is implied) for more details on file-deletion. |
839 | 839 | dit(bf(--ignore-errors)) Tells bf(--delete) to go ahead and delete files |
840 | 840 | even when there are I/O errors. |
841 | 841 | |
… |
… |
|
852 | 852 | bf(--recursive) option was also enabled. |
853 | 853 | |
854 | 854 | dit(bf(--max-delete=NUM)) This tells rsync not to delete more than NUM |
855 | | @@ -1753,7 +1782,7 @@ with older versions of rsync, but that also turns on the output of other |
| 855 | @@ -1782,7 +1811,7 @@ with older versions of rsync, but that also turns on the output of other |
856 | 856 | verbose messages). |
857 | 857 | |
858 | 858 | The "%i" escape has a cryptic output that is 11 letters long. The general |
… |
… |
|
861 | 861 | type of update being done, bf(X) is replaced by the file-type, and the |
862 | 862 | other letters represent attributes that may be output if they are being |
863 | 863 | modified. |
864 | | @@ -1809,7 +1838,7 @@ quote(itemization( |
| 864 | @@ -1838,7 +1867,7 @@ quote(itemization( |
865 | 865 | sender's value (requires bf(--owner) and super-user privileges). |
866 | 866 | it() A bf(g) means the group is different and is being updated to the |
867 | 867 | sender's value (requires bf(--group) and the authority to set the group). |
… |
… |
|
1436 | 1436 | diff --git a/xattrs.c b/xattrs.c |
1437 | 1437 | --- a/xattrs.c |
1438 | 1438 | +++ b/xattrs.c |
1439 | | @@ -1041,7 +1041,7 @@ int set_stat_xattr(const char *fname, struct file_struct *file, mode_t new_mode) |
| 1439 | @@ -1042,7 +1042,7 @@ int set_stat_xattr(const char *fname, struct file_struct *file, mode_t new_mode) |
1440 | 1440 | mode = (fst.st_mode & _S_IFMT) | (fmode & ACCESSPERMS) |
1441 | 1441 | | (S_ISDIR(fst.st_mode) ? 0700 : 0600); |
1442 | 1442 | if (fst.st_mode != mode) |
… |
… |
|
1461 | 1461 | diff -up a/configure.sh b/configure.sh |
1462 | 1462 | --- a/configure.sh |
1463 | 1463 | +++ b/configure.sh |
1464 | | @@ -7425,6 +7425,7 @@ fi |
| 1464 | @@ -7444,6 +7444,7 @@ fi |
1465 | 1465 | |
1466 | 1466 | for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \ |
1467 | 1467 | fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \ |
… |
… |
|
1524 | 1524 | diff -up a/rsync.1 b/rsync.1 |
1525 | 1525 | --- a/rsync.1 |
1526 | 1526 | +++ b/rsync.1 |
1527 | | @@ -417,6 +417,7 @@ to the detailed description below for a |
| 1527 | @@ -431,6 +431,7 @@ to the detailed description below for a |
1528 | 1528 | \-K, \-\-keep\-dirlinks treat symlinked dir on receiver as dir |
1529 | 1529 | \-H, \-\-hard\-links preserve hard links |
1530 | 1530 | \-p, \-\-perms preserve permissions |
… |
… |
|
1532 | 1532 | \-E, \-\-executability preserve executability |
1533 | 1533 | \-\-chmod=CHMOD affect file and/or directory permissions |
1534 | 1534 | \-A, \-\-acls preserve ACLs (implies \-p) |
1535 | | @@ -448,7 +449,10 @@ to the detailed description below for a |
1536 | | \-\-delete\-after receiver deletes after transfer, not before |
| 1535 | @@ -462,7 +463,10 @@ to the detailed description below for a |
| 1536 | \-\-delete\-after receiver deletes after transfer, not during |
1537 | 1537 | \-\-delete\-excluded also delete excluded files from dest dirs |
1538 | 1538 | \-\-ignore\-errors delete even if there are I/O errors |
1539 | 1539 | - \-\-force force deletion of dirs even if not empty |
… |
… |
|
1544 | 1544 | \-\-max\-delete=NUM don'\&t delete more than NUM files |
1545 | 1545 | \-\-max\-size=SIZE don'\&t transfer any file larger than SIZE |
1546 | 1546 | \-\-min\-size=SIZE don'\&t transfer any file smaller than SIZE |
1547 | | @@ -638,7 +642,8 @@ specified, in which case \fB\-r\fP is no |
| 1547 | @@ -658,7 +662,8 @@ specified, in which case \fB\-r\fP is no |
1548 | 1548 | .IP |
1549 | 1549 | Note that \fB\-a\fP \fBdoes not preserve hardlinks\fP, because |
1550 | 1550 | finding multiply\-linked files is expensive. You must separately |
… |
… |
|
1554 | 1554 | .IP |
1555 | 1555 | .IP "\-\-no\-OPTION" |
1556 | 1556 | You may turn off one or more implied options by prefixing |
1557 | | @@ -955,7 +960,7 @@ they would be using \fB\-\-copy\-links\f |
| 1557 | @@ -975,7 +980,7 @@ they would be using \fB\-\-copy\-links\f |
1558 | 1558 | Without this option, if the sending side has replaced a directory with a |
1559 | 1559 | symlink to a directory, the receiving side will delete anything that is in |
1560 | 1560 | the way of the new symlink, including a directory hierarchy (as long as |
… |
… |
|
1563 | 1563 | .IP |
1564 | 1564 | See also \fB\-\-keep\-dirlinks\fP for an analogous option for the receiving |
1565 | 1565 | side. |
1566 | | @@ -1142,6 +1147,33 @@ Note that this option does not copy rsyn |
| 1566 | @@ -1162,6 +1167,33 @@ Note that this option does not copy rsyn |
1567 | 1567 | used by \fB\-\-fake\-super\fP) unless you repeat the option (e.g. \-XX). This |
1568 | 1568 | \(dq\© all xattrs\(dq\& mode cannot be used with \fB\-\-fake\-super\fP. |
1569 | 1569 | .IP |
… |
… |
|
1596 | 1596 | +.IP |
1597 | 1597 | .IP "\fB\-\-chmod\fP" |
1598 | 1598 | This option tells rsync to apply one or more |
1599 | | comma\-separated \(dq\&chmod\(dq\& strings to the permission of the files in the |
1600 | | @@ -1442,13 +1474,14 @@ See \fB\-\-delete\fP (which is implied) |
| 1599 | comma\-separated \(dq\&chmod\(dq\& modes to the permission of the files in the |
| 1600 | @@ -1472,13 +1504,14 @@ See \fB\-\-delete\fP (which is implied) |
1601 | 1601 | Tells \fB\-\-delete\fP to go ahead and delete files |
1602 | 1602 | even when there are I/O errors. |
1603 | 1603 | .IP |
… |
… |
|
1615 | 1615 | \fB\-\-recursive\fP option was also enabled. |
1616 | 1616 | .IP |
1617 | 1617 | .IP "\fB\-\-max\-delete=NUM\fP" |
1618 | | @@ -2004,7 +2037,7 @@ with older versions of rsync, but that a |
| 1618 | @@ -2034,7 +2067,7 @@ with older versions of rsync, but that a |
1619 | 1619 | verbose messages). |
1620 | 1620 | .IP |
1621 | 1621 | The \(dq\&%i\(dq\& escape has a cryptic output that is 11 letters long. The general |
… |
… |
|
1624 | 1624 | type of update being done, \fBX\fP is replaced by the file\-type, and the |
1625 | 1625 | other letters represent attributes that may be output if they are being |
1626 | 1626 | modified. |
1627 | | @@ -2074,7 +2107,7 @@ sender\(cq\&s value (requires \fB\-\-own |
| 1627 | @@ -2104,7 +2137,7 @@ sender\(cq\&s value (requires \fB\-\-own |
1628 | 1628 | A \fBg\fP means the group is different and is being updated to the |
1629 | 1629 | sender\(cq\&s value (requires \fB\-\-group\fP and the authority to set the group). |
1630 | 1630 | .IP o |