]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricatasc: move lib to suricata.sc
authorJason Ish <ish@unx.ca>
Mon, 26 Mar 2018 13:55:10 +0000 (07:55 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Mar 2018 06:49:41 +0000 (08:49 +0200)
Pull the sc python package under the suricata top level
package. A suricatasc package still exists for compatibility
that pulls in suricata.sc.

python/bin/suricatasc.in
python/setup.py
python/suricata/sc/__init__.py [new file with mode: 0644]
python/suricata/sc/suricatasc.py [moved from python/suricatasc/suricatasc.py with 100% similarity]
python/suricatasc/__init__.py

index 00b39d4d3d0fbdd2d3c0938e06ce3930de81f4ed..0027469cc215c7179f1127c73c64c0b3ce69e860 100755 (executable)
@@ -36,7 +36,7 @@ else:
     if os.path.exists(path):
         sys.path.insert(0, os.path.dirname(path))
 
-from suricatasc import *
+from suricata.sc import *
 
 parser = argparse.ArgumentParser(prog='suricatasc', description='Client for Suricata unix socket')
 parser.add_argument('-v', '--verbose', action='store_const', const=True, help='verbose output (including JSON dump)')
index f6cb3a196c90f8c0447d0ea04fd007feb4a8314a..6a6d2a03f34ec4b4022b2bfd8f4d9270bee079db 100644 (file)
@@ -29,6 +29,7 @@ setup(
     packages=[
         "suricata",
         "suricata.ctl",
+        "suricata.sc",
         "suricatasc",
     ],
     scripts=[
diff --git a/python/suricata/sc/__init__.py b/python/suricata/sc/__init__.py
new file mode 100644 (file)
index 0000000..976e1fc
--- /dev/null
@@ -0,0 +1 @@
+from suricata.sc.suricatasc import *
index 1a61f42636f292696d78ba3ff6219fe6387b4dc4..28689843ca6cbed4a9bc24763f3258858e132f69 100644 (file)
@@ -1,2 +1 @@
-
-from suricatasc import *
+from suricata.sc import *