aboutsummaryrefslogtreecommitdiffstats
path: root/build_rsync.sh
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-10-21 11:50:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-10-21 11:50:24 +0300
commit9e2dba8c295bc4a328590c4eabfd4afe2f78c9f6 (patch)
tree3f02eded3bcbc4f8f972bd85358ec35225d3d758 /build_rsync.sh
parent58ed950ac7c7282e6a639cc15c4accac4597665a (diff)
downloadmtk-9e2dba8c295bc4a328590c4eabfd4afe2f78c9f6.tar.gz
mtk-9e2dba8c295bc4a328590c4eabfd4afe2f78c9f6.tar.bz2
mtk-9e2dba8c295bc4a328590c4eabfd4afe2f78c9f6.zip
updated build_rsync, added aptest
Diffstat (limited to 'build_rsync.sh')
-rwxr-xr-xbuild_rsync.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build_rsync.sh b/build_rsync.sh
index 6fd7834..6a8d591 100755
--- a/build_rsync.sh
+++ b/build_rsync.sh
@@ -34,14 +34,22 @@ if [[ $? -ne 0 ]]; then
exit 1
fi
-echo "Extracting rsync..."
+echo "Extracting..."
tar -zxvf rsync-${RSYNC_VERSION}.tar.gz
tar -zxvf rsync-patches-${RSYNC_VERSION}.tar.gz
cd rsync-${RSYNC_VERSION}
+curl -o patches/hfs_compression.diff 'http://www.bombich.com/software/opensource/rsync_3.0.7-hfs_compression_20100701.diff'
+curl -o patches/crtimes-64bit.diff 'https://bugzilla.samba.org/attachment.cgi?id=5288'
+curl -o patches/crtimes-hfs+.diff 'https://bugzilla.samba.org/attachment.cgi?id=5966'
-echo "Building rsync..."
+echo "Applying patches..."
patch -p1 <patches/fileflags.diff
patch -p1 <patches/crtimes.diff
+patch -p1 <patches/crtimes-64bit.diff
+patch -p1 <patches/crtimes-hfs+.diff
+patch -p1 <patches/hfs_compression.diff
+
+echo "Building..."
export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" MACOSX_DEPLOYMENT_TARGET=10.5
./prepare-source
./configure