Skip to content

Commit

Permalink
Refresh d/p/0005-15_maldetect-no-autoupdate.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
waja committed Oct 10, 2023
1 parent 4d7ac9b commit 9a65ed0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/packaging_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ jobs:
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.4.0
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
- name: Debug
run: |
ls -la
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ jobs:
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.4.0
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
# - name: Build Debian package
# uses: pi-top/action-debian-package@v0.2.0
# with:
Expand Down
15 changes: 11 additions & 4 deletions debian/patches/0005-15_maldetect-no-autoupdate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Subject: 15_maldetect-no-autoupdate

--- a/files/internals/functions
+++ b/files/internals/functions
@@ -375,7 +375,7 @@
@@ -438,7 +438,7 @@
[-f|--file-list PATH] [-i|--include-regex] [-x|--exclude-regex]
[-b|--background] [-m|--monitor] [-k|--kill-monitor] [-c|--checkout]
[-q|--quarantine] [-s|--restore] [-n|--clean] [-l|--log] [-e|--report]
Expand All @@ -17,7 +17,7 @@ Subject: 15_maldetect-no-autoupdate
EOF
}

@@ -390,9 +390,6 @@
@@ -453,9 +453,6 @@
-u, --update-sigs [--force]
Update malware detection signatures from rfxn.com

Expand All @@ -27,7 +27,7 @@ Subject: 15_maldetect-no-autoupdate
-f, --file-list
Scan files or paths defined in line spaced file
e.g: maldet -f /root/scan_file_list
@@ -1846,104 +1843,6 @@
@@ -2149,111 +2146,6 @@
fi
}

Expand All @@ -36,6 +36,12 @@ Subject: 15_maldetect-no-autoupdate
- tmpwd="$tmpdir/.lmdup.$RANDOM.$$"
- upstreamver="$tmpwd/.lmdup_vercheck.$$"
- mkdir -p $tmpwd ; chmod 700 $tmpwd
-
- if [ "$lmdup_beta" ]; then
- lmd_hash_url="${lmd_hash_url}.beta"
- lmd_version_url="${lmd_version_url}.beta"
- lmd_current_tgzfile="maldetect-beta.tar.gz"
- fi
-
- eout "{update} checking for available updates..." 1
- get_remote_file "$lmd_version_url" "update" "1"
Expand Down Expand Up @@ -111,7 +117,8 @@ Subject: 15_maldetect-no-autoupdate
- fi
- if [ -s "$tmpwd/${lmd_current_tgzfile}" ]; then
- tar xfz ${lmd_current_tgzfile}
- cd maldetect-*
- rm -f ${lmd_current_tgzfile} ${lmd_current_tgzfile}.md5
- cd maldetect-${upstreamver_readable}
- chmod 750 install.sh
- sh -c './install.sh' >> /dev/null 2>&1
- cp -f $inspath.last/sigs/custom.* $sigdir/ 2> /dev/null
Expand Down

0 comments on commit 9a65ed0

Please sign in to comment.