mirror of
https://github.com/OISF/suricata.git
synced 2026-02-03 20:41:46 -05:00
Will be built and installed as part of the Python code used for suricatactl, which is intended to be the generic place for all Python utility code that gets installed with Suricata. No change to suricatasc code.
49 lines
1.4 KiB
Python
49 lines
1.4 KiB
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",
|
|
description="Suricata control tools",
|
|
version=version,
|
|
author='OISF Developers, Eric Leblond',
|
|
author_email='oisf-devel@lists.openinfosecfoundation.org, eric@regit.org',
|
|
url='https://www.suricata-ids.org/',
|
|
packages=[
|
|
"suricata",
|
|
"suricata.ctl",
|
|
"suricatasc",
|
|
],
|
|
scripts=[
|
|
"bin/suricatactl",
|
|
"bin/suricatasc",
|
|
],
|
|
provides=['suricatactl', 'suricatasc'],
|
|
requires=['argparse','simplejson'],
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Environment :: Console',
|
|
'Intended Audience :: System Administrators',
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
'Operating System :: POSIX',
|
|
'Programming Language :: Python',
|
|
'Topic :: System :: Systems Administration',
|
|
],
|
|
)
|