Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active May 30, 2017 17:46
Show Gist options
  • Save gretel/d8d19be5e0d9c2996355 to your computer and use it in GitHub Desktop.
Save gretel/d8d19be5e0d9c2996355 to your computer and use it in GitHub Desktop.
install suricata on openbsd-current https://suricata-ids.org
#!/bin/sh
## adopted from https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup
doas pkg_add gcc git libtool pcre jansson libmagic libyaml
## version strings might change like patchlevel and stuff
doas pkg_add libnet-1.1.2.1p3v0 autoconf-2.69p2 automake-1.14.1p0
cd
git clone --depth 1 git://phalanx.openinfosecfoundation.org/oisf.git
cd oisf
git clone --depth 1 https://github.com/OISF/libhtp.git -b 0.5.x
export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.14
./autogen.sh
CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib" ./configure --prefix=/usr/local --sysconfdir=/etc/ --localstatedir=/var/ --enable-python --enable-gccmarch-native --enable-gccprotect
make
doas make install install-conf install-rules
suricata -V
# This is Suricata version 3.2dev
@gretel
Copy link
Author

gretel commented May 30, 2017

@vikerian cant confirm your issue on my side. did you checkout the right branch of libhtp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment