forked from OISF/suricata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
71 lines (64 loc) · 3.01 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
environment:
matrix:
- COMPILER: mingw-w64
PCAP_URL: https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
PCAP_FILE: WpdPack_4_1_2.zip
PCAP_EXTRACT: c:\
PCAP_PATH: "c:\\WpdPack\\Lib\\x64;c:\\WinDivert-1.4.3-A\\x86_64"
CONFIGURE: "--with-libpcap-libraries=/c/WpdPack/Lib/x64 --with-libpcap-includes=/c/WpdPack/Include --enable-windivert --with-windivert-include=/c/WinDivert-1.4.3-A/include --with-windivert-libraries=/c/WinDivert-1.4.3-A/x86_64 --enable-unittests"
MINGW_DIR: c:\msys64\mingw64
MINGW_ARCH: x86_64
RUST: disable
WINDIVERT: enable
UNITTESTS: enable
CFLAGS: -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
- COMPILER: mingw
PCAP_URL: https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
PCAP_FILE: WpdPack_4_1_2.zip
PCAP_EXTRACT: c:\
PCAP_PATH: "c:\\WpdPack\\Lib"
CONFIGURE: "--with-libpcap-libraries=/c/WpdPack/Lib --with-libpcap-includes=/c/WpdPack/Include"
MINGW_DIR: c:\msys64\mingw32
MINGW_ARCH: i686
RUST: disable
WINDIVERT: disable
UNITTESTS: disable
CFLAGS: -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
- COMPILER: mingw-w64
PCAP_URL: https://nmap.org/npcap/dist/npcap-sdk-1.01.zip
PCAP_FILE: npcap-sdk-1.01.zip
PCAP_EXTRACT: c:\npcap\
PCAP_PATH: "c:\\npcap\\Lib\\x64"
CONFIGURE: "--with-libpcap-libraries=/c/npcap/Lib/x64 --with-libpcap-includes=/c/npcap/Include"
MINGW_DIR: c:\msys64\mingw64
MINGW_ARCH: x86_64
RUST: disable
WINDIVERT: disable
UNITTESTS: disable
CFLAGS: -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
before_build:
- set Path=%MINGW_DIR%\bin;%Path%
- c:\msys64\usr\bin\pacman -Su --noconfirm libyaml-devel pcre-devel jansson-devel
- c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-libyaml
- c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-pcre
- c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-rust
- c:\msys64\usr\bin\pacman -Su --noconfirm mingw-w64-"%MINGW_ARCH%"-jansson
install:
- choco install winpcap # winpcap userspace
- if not exist "%PCAP_FILE%" appveyor DownloadFile "%PCAP_URL%" -FileName "%PCAP_FILE%"
- 7z x -y -o%PCAP_EXTRACT% "%PCAP_FILE%"
- if "%WINDIVERT%"=="enable" appveyor DownloadFile https://reqrypt.org/download/WinDivert-1.4.3-A.zip -FileName windivert.zip
- if "%WINDIVERT%"=="enable" 7z x -y -oc:\ windivert.zip
build_script:
- set Path=%MINGW_DIR%\bin;c:\msys64\usr\bin;%PCAP_PATH%;%Path%
- git clone https://github.com/OISF/libhtp -b 0.5.x
- bash autogen.sh
- bash configure %CONFIGURE% --disable-shared --%RUST%-rust
- make -j3
- ldd src\suricata
- src\suricata --build-info
- if "%UNITTESTS%"=="enable" src\suricata -u -l %TEMP% --fatal-unittests
artifacts:
- path: '*.zip'
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))