Skip to content

Commit

Permalink
add fastzlib to windows
Browse files Browse the repository at this point in the history
this patch enables the use of fastlzlib
for the windows version of bareos.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
pstorz authored and Marco van Wieringen committed May 5, 2013
1 parent acce025 commit 70c544f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions platforms/win32/winbareos-nsi.spec
Expand Up @@ -68,9 +68,9 @@ for file in \
bpipe-fd.dll libbareos.dll libbareosfind.dll \
libcrypto-8.dll libgcc_s_sjlj-1.dll libhistory6.dll \
libreadline6.dll libssl-8.dll libstdc++-6.dll \
libtermcap-0.dll pthreadGCE2.dll zlib1.dll\
QtCore4.dll QtGui4.dll liblzo2-2.dll libpng15-15.dll\
openssl.exe sed.exe; do
libtermcap-0.dll pthreadGCE2.dll zlib1.dll \
QtCore4.dll QtGui4.dll liblzo2-2.dll libfastlz.dll \
libpng15-15.dll openssl.exe sed.exe; do
cp %{_mingw32_bindir}/$file $RPM_BUILD_ROOT/release32
cp %{_mingw64_bindir}/$file $RPM_BUILD_ROOT/release64
done
Expand Down
2 changes: 2 additions & 0 deletions platforms/win32/winbareos.nsi
Expand Up @@ -269,6 +269,7 @@ SectionIn 1 2 3
File "pthreadGCE2.dll"
File "zlib1.dll"
File "liblzo2-2.dll"
File "libfastlz.dll"

# for password generation
File "openssl.exe"
Expand Down Expand Up @@ -794,6 +795,7 @@ ConfDeleteSkip:
Delete "$INSTDIR\QtCore4.dll"
Delete "$INSTDIR\QtGui4.dll"
Delete "$INSTDIR\liblzo2-2.dll"
Delete "$INSTDIR\libfastlz.dll"
Delete "$INSTDIR\libpng15-15.dll"
Delete "$INSTDIR\openssl.exe"
Delete "$INSTDIR\sed.exe"
Expand Down
4 changes: 3 additions & 1 deletion platforms/win32/winbareos32.spec
Expand Up @@ -55,6 +55,8 @@ BuildRequires: mingw32-readline
BuildRequires: mingw32-readline-devel
BuildRequires: mingw32-lzo
BuildRequires: mingw32-lzo-devel
BuildRequires: mingw32-libfastlz
BuildRequires: mingw32-libfastlz-devel

BuildRequires: sed
BuildRequires: vim, procps, bc
Expand Down Expand Up @@ -84,7 +86,7 @@ tar xvf %SOURCE2
cd src/win32/


make BUILD_QTGUI=yes %{?jobs:-j%jobs}
make BUILD_QTGUI=yes %{?jobs:-j%jobs}
#make %{?jobs:-j%jobs}

#make BUILD_QTGUI=yes WIN_VERSION=64 %{?jobs:-j%jobs}
Expand Down
3 changes: 2 additions & 1 deletion platforms/win32/winbareos64.spec
Expand Up @@ -23,7 +23,6 @@ BuildArch: noarch
Source1: fillup.sed
Source2: vss_headers.tar


Patch1: tray-monitor-conf.patch

BuildRequires: mingw64-filesystem
Expand Down Expand Up @@ -56,6 +55,8 @@ BuildRequires: mingw64-readline
BuildRequires: mingw64-readline-devel
BuildRequires: mingw64-lzo
BuildRequires: mingw64-lzo-devel
BuildRequires: mingw64-libfastlz
BuildRequires: mingw64-libfastlz-devel

BuildRequires: sed
BuildRequires: vim, procps, bc
Expand Down
4 changes: 4 additions & 0 deletions src/win32/compat/include/mingwconfig.h
Expand Up @@ -48,6 +48,10 @@
/* Define to 1 if you have the <lzo/lzoconf.h> header file. */
#define HAVE_LZO_LZOCONF_H 1

/* Define if you have fastlz lib */
#define HAVE_FASTLZ 1


/* File daemon specif libraries */
#define FDLIBS 1

Expand Down
1 change: 1 addition & 0 deletions src/win32/filed/Makefile
Expand Up @@ -27,6 +27,7 @@ LDLIBS = ../lib/libbareos.a \
$(MINGW_LIB)/libpthreadGCE2.a \
$(MINGW_LIB)/libz.dll.a \
$(MINGW_LIB)/liblzo2.dll.a \
$(MINGW_LIB)/libfastlz.dll.a \
$(WINSOCKLIB) -lole32 -loleaut32 -luuid -lcomctl32

SVRSRCS = accurate.c authenticate.c backup.c compression.c \
Expand Down

0 comments on commit 70c544f

Please sign in to comment.