rmpkg: samhain
This commit is contained in:
parent
6648bdf03a
commit
10eb61a312
4 changed files with 0 additions and 38 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -607,9 +607,6 @@
|
||||||
[submodule "rustzx"]
|
[submodule "rustzx"]
|
||||||
path = rustzx
|
path = rustzx
|
||||||
url = ssh://aur@aur.archlinux.org/rustzx.git
|
url = ssh://aur@aur.archlinux.org/rustzx.git
|
||||||
[submodule "samhain"]
|
|
||||||
path = samhain
|
|
||||||
url = ssh://aur@aur.archlinux.org/samhain.git
|
|
||||||
[submodule "shiori"]
|
[submodule "shiori"]
|
||||||
path = shiori
|
path = shiori
|
||||||
url = ssh://aur@aur.archlinux.org/shiori.git
|
url = ssh://aur@aur.archlinux.org/shiori.git
|
||||||
|
|
|
@ -1771,10 +1771,6 @@ regex = "html-xml-utils-(.*?).tar.gz"
|
||||||
source = "cmd"
|
source = "cmd"
|
||||||
cmd = "./.repo/pkgver/enigma.sh"
|
cmd = "./.repo/pkgver/enigma.sh"
|
||||||
|
|
||||||
[samhain]
|
|
||||||
source = "cmd"
|
|
||||||
cmd = "./.repo/pkgver/samhain.sh"
|
|
||||||
|
|
||||||
["sendmail/libmilter"]
|
["sendmail/libmilter"]
|
||||||
source = "cmd"
|
source = "cmd"
|
||||||
cmd = "./.repo/pkgver/sendmail.sh"
|
cmd = "./.repo/pkgver/sendmail.sh"
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# check dependencies
|
|
||||||
count=0
|
|
||||||
for dependency in hxnormalize hxselect grep sed sort tail; do
|
|
||||||
if [ ! -x "$(command -v $dependency)" ]; then
|
|
||||||
echo "$dependency missing"
|
|
||||||
count=$((count+1))
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# exit script if any dependencies missing
|
|
||||||
if [ $count -ne 0 ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# upstream URL
|
|
||||||
UPSTREAM_URL="https://www.la-samhna.de/samhain/s_download.html"
|
|
||||||
|
|
||||||
# options to pass to cURL, including custom user agent
|
|
||||||
USER_AGENT="samhain-version-checker/1.0 george@rawlinson.net.nz"
|
|
||||||
CURL_OPTS=(--silent --user-agent "$USER_AGENT")
|
|
||||||
|
|
||||||
curl "${CURL_OPTS[@]}" "$UPSTREAM_URL" | \
|
|
||||||
hxnormalize -x | \
|
|
||||||
hxselect -c 'div.table-wrapper ' 'td' | \
|
|
||||||
head -n 1 | \
|
|
||||||
sed -e "s/Version //" -e "s/<.*//"
|
|
||||||
exit 0
|
|
1
samhain
1
samhain
|
@ -1 +0,0 @@
|
||||||
Subproject commit f2f1904731f6d206c8d36bb66d7530c1e7ca63a5
|
|
Loading…
Reference in a new issue