mirror of
https://github.com/OISF/suricata.git
synced 2026-02-03 20:41:46 -05:00
Use a new directory, Python to host the Suricata python modules. One entry point is suricatactl, a control script for miscalleneous tasks. Currently onl filestore pruning is implemented.
32 lines
680 B
Python
32 lines
680 B
Python
from __future__ import print_function
|
|
|
|
import os
|
|
import re
|
|
import sys
|
|
|
|
from distutils.core import setup
|
|
|
|
version = None
|
|
if os.path.exists("../configure.ac"):
|
|
with open("../configure.ac", "r") as conf:
|
|
for line in conf:
|
|
m = re.search("AC_INIT\(suricata,\s+(\d.+)\)", line)
|
|
if m:
|
|
version = m.group(1)
|
|
break
|
|
if version is None:
|
|
print("error: failed to parse Suricata version, will use 0.0.0",
|
|
file=sys.stderr)
|
|
version = "0.0.0"
|
|
|
|
setup(
|
|
name="suricata",
|
|
version=version,
|
|
packages=[
|
|
"suricata",
|
|
"suricata.ctl",
|
|
],
|
|
scripts=[
|
|
"bin/suricatactl",
|
|
]
|
|
)
|