From 593d3afa7a532859737e158e55ecfb3315806e26 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Nov 2010 11:37:30 +0100 Subject: [PATCH] Add librsync to depkgs --- bacula/src/win32/External-mingw-w64 | 1 + bacula/src/win32/External-mingw32 | 1 + bacula/src/win32/build-depkgs-mingw-w64 | 10 ++++++++++ bacula/src/win32/build-depkgs-mingw32 | 12 ++++++++++++ 4 files changed, 24 insertions(+) diff --git a/bacula/src/win32/External-mingw-w64 b/bacula/src/win32/External-mingw-w64 index 85f906f51f..446674912f 100644 --- a/bacula/src/win32/External-mingw-w64 +++ b/bacula/src/win32/External-mingw-w64 @@ -39,6 +39,7 @@ PTHREADS|http://www.bacula.org/depkgs-mingw32/pthreads-snap-2004-06-22.tar.gz #STAB2CV|http://www.bacula.org/depkgs-mingw32/stab2cv-0.1.tar.bz2 #WX|http://www.bacula.org/depkgs-mingw32/wxWidgets-2.8.7.tar.gz ZLIB|http://www.bacula.org/depkgs-mingw32/zlib-1.2.3.tar.gz +RSYNC|http://www.bacula.org/depkgs-mingw32/librsync-0.9.7.tar.gz #DB|http://www.bacula.org/depkgs-mingw32/db-4.7.25.tar.gz # # diff --git a/bacula/src/win32/External-mingw32 b/bacula/src/win32/External-mingw32 index 1ab7ee2c52..c0b9794e1b 100644 --- a/bacula/src/win32/External-mingw32 +++ b/bacula/src/win32/External-mingw32 @@ -39,6 +39,7 @@ SQLITE|http://www.bacula.org/depkgs-mingw32/sqlite-3.3.17.tar.gz STAB2CV|http://www.bacula.org/depkgs-mingw32/stab2cv-0.1.tar.bz2 WX|http://www.bacula.org/depkgs-mingw32/wxWidgets-2.8.7.tar.gz ZLIB|http://www.bacula.org/depkgs-mingw32/zlib-1.2.3.tar.gz +RSYNC|http://www.bacula.org/depkgs-mingw32/librsync-0.9.7.tar.gz DB|http://www.bacula.org/depkgs-mingw32/db-4.7.25.tar.gz # # diff --git a/bacula/src/win32/build-depkgs-mingw-w64 b/bacula/src/win32/build-depkgs-mingw-w64 index 3bc822092c..ef15d80ed3 100755 --- a/bacula/src/win32/build-depkgs-mingw-w64 +++ b/bacula/src/win32/build-depkgs-mingw-w64 @@ -164,6 +164,15 @@ do_make() fi | tee -a make.log | parse_output } +process_rsync() +{ + get_source "${URL_RSYNC}" "${DIR_RSYNC}" "${MKD_RSYNC}" + ./configure --host=x86_64-pc-mingw32 + make -k # rdiff.exe has a problem + cp .libs/librsync.a ${DEPPKG_DIR}/lib + cp librsync*h ${DEPPKG_DIR}/include +} + process_zlib() { if get_source "${URL_ZLIB}" "${DIR_ZLIB}" "${MKD_ZLIB}" @@ -274,6 +283,7 @@ process_openssl() if [ "$#" -eq 0 ] then process_zlib + process_rsync process_pcre process_pthreads process_openssl diff --git a/bacula/src/win32/build-depkgs-mingw32 b/bacula/src/win32/build-depkgs-mingw32 index 7ccad8bc3e..041bb5ff33 100755 --- a/bacula/src/win32/build-depkgs-mingw32 +++ b/bacula/src/win32/build-depkgs-mingw32 @@ -177,6 +177,17 @@ process_zlib() do_make win32/Makefile.mingw32 PREFIX=${DEPPKG_DIR} install } +process_rsync() +{ + get_source "${URL_RSYNC}" "${DIR_RSYNC}" "${MKD_RSYNC}" + ./configure --host=mingw32 + echo Building librsync + do_make Makefile + echo Installing lib and headers + cp .libs/librsync.a ${DEPPKG_DIR}/lib + cp librsync*h ${DEPPKG_DIR}/include +} + process_pcre() { if get_source "${URL_PCRE}" "${DIR_PCRE}" "${MKD_PCRE}" @@ -525,6 +536,7 @@ process_qt4() if [ "$#" -eq 0 ] then process_zlib + process_rsync process_pcre process_pthreads process_openssl -- 2.39.5