mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-02 06:34:44 +03:00
iis: Improves the iis build system
Now checking for common errors while building. Refactoring on the build scripts, now there is this build_dependencies.bat script on the iis sub-folder. By calling this script all the dependencies should be build under the winbuild/. This commit also removes build scripts that were not needed anymore.
This commit is contained in:
committed by
Felipe Zimmerle
parent
a946a163f0
commit
b277e538f2
@@ -1,40 +1,47 @@
|
||||
cd %WORK%
|
||||
rmdir /s /q %APACHE%
|
||||
rmdir /s /q %HTTPD%
|
||||
IF NOT DEFINED BUILD_APACHE GOTO USE_APACHE_24
|
||||
7z.exe x %HTTPD%-win32-src.zip
|
||||
fart.exe -r -i -C %WORK%\%HTTPD%\*.mak \x2Fmachine:x86 " "
|
||||
fart.exe -r -i -C %WORK%\%HTTPD%\*.mk.win \x2Fmachine:x86 " "
|
||||
copy /y %WORK%\libhttpd.mak %WORK%\%HTTPD%
|
||||
copy /y %WORK%\mod_ssl.mak %WORK%\%HTTPD%\modules\ssl
|
||||
copy /y %WORK%\apr.mak %WORK%\%HTTPD%\srclib\apr
|
||||
copy /y %WORK%\libapr.mak %WORK%\%HTTPD%\srclib\apr
|
||||
copy /y %WORK%\aprutil.mak %WORK%\%HTTPD%\srclib\apr-util
|
||||
copy /y %WORK%\libaprutil.mak %WORK%\%HTTPD%\srclib\apr-util
|
||||
copy /y %WORK%\dftables.mak %WORK%\%HTTPD%\srclib\pcre
|
||||
copy /y %WORK%\pcre.mak %WORK%\%HTTPD%\srclib\pcre
|
||||
cd %HTTPD%
|
||||
nmake -f Makefile.win installr
|
||||
IF NOT DEFINED FULLBUILD pause
|
||||
GOTO END
|
||||
|
||||
:USE_APACHE_24
|
||||
set APACHE=%WORK%\Apache24
|
||||
del /q /f --*.*
|
||||
del /q /f readme.txt
|
||||
rmdir /s /q %APACHE%
|
||||
7z.exe x %APACHE24_ZIP%
|
||||
7z.exe x %HTTPD%.zip
|
||||
|
||||
:END
|
||||
copy /y %APACHE%\bin\libapr-1.dll %DROP%
|
||||
copy /y %APACHE%\bin\libapr-1.pdb %DROP%
|
||||
copy /y %APACHE%\lib\libapr-1.lib %DROP%
|
||||
copy /y %APACHE%\bin\libapriconv-1.dll %DROP%
|
||||
copy /y %APACHE%\bin\libapriconv-1.pdb %DROP%
|
||||
copy /y %APACHE%\lib\libapriconv-1.lib %DROP%
|
||||
copy /y %APACHE%\bin\libaprutil-1.dll %DROP%
|
||||
copy /y %APACHE%\bin\libaprutil-1.pdb %DROP%
|
||||
copy /y %APACHE%\lib\libaprutil-1.lib %DROP%
|
||||
SET HTTPD_BUILD=%WORK%\%HTTPD%
|
||||
cd %WORK%
|
||||
@cd "%WORK_DIR%"
|
||||
@set APACHE=%WORK_DIR%\Apache24
|
||||
|
||||
@if NOT EXIST "%SOURCE_DIR%\%APACHE_BIN%" goto file_not_found_bin
|
||||
@if NOT EXIST "%SOURCE_DIR%\%APACHE_SRC%" goto file_not_found_src
|
||||
|
||||
@7z.exe x "%SOURCE_DIR%\%APACHE_BIN%"
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto something_went_wrong
|
||||
|
||||
@7z.exe x "%SOURCE_DIR%\%APACHE_SRC%" -so | 7z.exe x -aoa -si -ttar
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto something_went_wrong
|
||||
|
||||
:: Missing: %APACHE%\bin\libapr-1.pdb %APACHE%\bin\libapr-1.lib ?
|
||||
copy /y "%APACHE%\bin\libapr-1.dll" "%OUTPUT_DIR%"
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto something_went_wrong_copy
|
||||
|
||||
:: Missing: %APACHE%\bin\libapriconv-1.pdb %APACHE%\lib\libapriconv-1.lib ?
|
||||
copy /y "%APACHE%\bin\libapriconv-1.dll" "%OUTPUT_DIR%"
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto something_went_wrong_copy
|
||||
|
||||
:: Missing: %APACHE%\bin\libaprutil-1.pdb %APACHE%\lib\libaprutil-1.lib ?
|
||||
copy /y "%APACHE%\bin\libaprutil-1.dll" "%OUTPUT_DIR%"
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto something_went_wrong_copy
|
||||
|
||||
@cd "%WORK_DIR%"
|
||||
|
||||
@exit /B 0
|
||||
|
||||
:something_went_wrong_copy
|
||||
@echo Something went wrong while trying to copy Apache binaries files.
|
||||
@goto failed
|
||||
|
||||
:file_not_found_bin
|
||||
@echo File not found: %SOURCE_DIR%\%APACHE_BIN%
|
||||
@goto failed
|
||||
|
||||
:file_not_found_src
|
||||
@echo File not found: %SOURCE_DIR%\%APACHE_SRC%
|
||||
@goto failed
|
||||
|
||||
:something_went_wrong
|
||||
@echo Something went wrong while unzip Apache files.
|
||||
@goto failed
|
||||
|
||||
:failed
|
||||
@exit /B 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user