Compare commits
No commits in common. "8935c8a1e9769c23a0597d012396a6866e86a054" and "6648bdf03ab132884234708c786349f9a7431fa7" have entirely different histories.
8935c8a1e9
...
6648bdf03a
4 changed files with 39 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -607,6 +607,9 @@
|
|||
[submodule "rustzx"]
|
||||
path = rustzx
|
||||
url = ssh://aur@aur.archlinux.org/rustzx.git
|
||||
[submodule "samhain"]
|
||||
path = samhain
|
||||
url = ssh://aur@aur.archlinux.org/samhain.git
|
||||
[submodule "shiori"]
|
||||
path = shiori
|
||||
url = ssh://aur@aur.archlinux.org/shiori.git
|
||||
|
|
|
@ -292,7 +292,7 @@ prefix = "v"
|
|||
source = "github"
|
||||
github = "mborgerson/xemu"
|
||||
use_latest_release = true
|
||||
prefix = "v"
|
||||
prefix = "gh-release/"
|
||||
|
||||
[fancy-mouse-boot-rom]
|
||||
source = "github"
|
||||
|
@ -1771,6 +1771,10 @@ regex = "html-xml-utils-(.*?).tar.gz"
|
|||
source = "cmd"
|
||||
cmd = "./.repo/pkgver/enigma.sh"
|
||||
|
||||
[samhain]
|
||||
source = "cmd"
|
||||
cmd = "./.repo/pkgver/samhain.sh"
|
||||
|
||||
["sendmail/libmilter"]
|
||||
source = "cmd"
|
||||
cmd = "./.repo/pkgver/sendmail.sh"
|
||||
|
|
30
.repo/pkgver/samhain.sh
Executable file
30
.repo/pkgver/samhain.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/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
Submodule
1
samhain
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f2f1904731f6d206c8d36bb66d7530c1e7ca63a5
|
Loading…
Reference in a new issue