diff --git a/.gitmodules b/.gitmodules index 045625c..d380213 100644 --- a/.gitmodules +++ b/.gitmodules @@ -607,9 +607,6 @@ [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 diff --git a/.repo/nvchecker.toml b/.repo/nvchecker.toml index 09e1e46..45bcd88 100644 --- a/.repo/nvchecker.toml +++ b/.repo/nvchecker.toml @@ -1771,10 +1771,6 @@ 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" diff --git a/.repo/pkgver/samhain.sh b/.repo/pkgver/samhain.sh deleted file mode 100755 index a74ffd2..0000000 --- a/.repo/pkgver/samhain.sh +++ /dev/null @@ -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 diff --git a/samhain b/samhain deleted file mode 160000 index f2f1904..0000000 --- a/samhain +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f2f1904731f6d206c8d36bb66d7530c1e7ca63a5