Ming Di Leom 2023-07-14 10:12:39 +00:00
parent 414e8aa1de
commit 06fbf1c42e
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
3 changed files with 6 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# Splunk Add-on for malware-filter
# malware-filter Add-on (Splunk)
- [Installation](#installation)
- [Usage](#usage)

View File

@ -54,8 +54,8 @@ def exclusion(tarinfo):
):
return None
# rename parent folder as "malware_filter"
tarinfo.name = sub(r"^.", "malware_filter", pathname)
# rename parent folder as "TA-malware-filter"
tarinfo.name = sub(r"^.", "TA-malware-filter", pathname)
# reset file stats
# based on https://splunkbase.splunk.com/app/833
@ -81,7 +81,7 @@ check_call(
]
)
pkg_file = f"malware_filter-{version()}.tar.gz"
pkg_file = f"TA-malware-filter-{version()}.tar.gz"
print(f"Creating {pkg_file}...")
with tarfile.open(pkg_file, "w:gz") as tar:
tar.add(".", filter=exclusion)

View File

@ -5,16 +5,11 @@
is_configured = false
[package]
id = malware_filter
check_for_updates = false
[id]
name = malware_filter
version = 0.0.11
id = TA-malware-filter
[ui]
is_visible = false
label = malware-filter
label = malware-filter Add-on
[launcher]
author = Ming Di Leom