]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
hyperscan: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Apr 2019 11:55:30 +0000 (12:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Apr 2019 11:55:30 +0000 (12:55 +0100)
Hyperscan is a high-performance multiple regex matching library. It
follows the regular expression syntax of the commonly-used libpcre
library, but is a standalone library with its own C API.

Hyperscan uses hybrid automata techniques to allow simultaneous
matching of large numbers (up to tens of thousands) of regular
expressions and for the matching of regular expressions across
streams of data.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
hyperscan/hyperscan.nm [new file with mode: 0644]

diff --git a/hyperscan/hyperscan.nm b/hyperscan/hyperscan.nm
new file mode 100644 (file)
index 0000000..c781f73
--- /dev/null
@@ -0,0 +1,59 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = hyperscan
+version    = 5.1.0
+release    = 1
+
+groups     = System/Libraries
+url        = https://github.com/intel/hyperscan
+license    = BSD
+summary    = High-performance regular expression matching library
+
+description
+       Hyperscan is a high-performance multiple regex matching library. It
+       follows the regular expression syntax of the commonly-used libpcre
+       library, but is a standalone library with its own C API.
+
+       Hyperscan uses hybrid automata techniques to allow simultaneous
+       matching of large numbers (up to tens of thousands) of regular
+       expressions and for the matching of regular expressions across
+       streams of data.
+end
+
+source_dl  = https://github.com/intel/hyperscan/archive/v%{version}.tar.gz#/
+
+build
+       requires
+               boost-devel >= 1.57
+               cmake
+               gcc-c++
+               pcre-devel
+               ragel
+               sqlite-devel
+       end
+
+       build
+               %{cmake} . \
+                       -DCMAKE_INSTALL_PREFIX=/usr \
+                       -DCMAKE_INSTALL_LIBDIR=%{lib} \
+                       -DBUILD_SHARED_LIBS:BOOL=ON \
+                       -DBUILD_STATIC_AND_SHARED:BOOL=OFF
+
+               make %{PARALLELISMFLAGS}
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end