Hi, Here is an update for neofetch to 7.1.0. There are various improvements with this version [0], noticeably this includes the OpenBSD flavor used.
Port-wise, it's a simple update, but i added improvements that are yet to be committed [1]: - fix the cpu temperature and add ksmn(4) and adt(4) support - make glxinfo(1) call faster; you probably won't notice it on modern machines It runs fine on all my machines. OK? Charlène. [0] https://github.com/dylanaraps/neofetch/releases/tag/7.1.0 [1] https://github.com/dylanaraps/neofetch/pull/1494 Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/neofetch/Makefile,v retrieving revision 1.8 diff -u -p -u -p -r1.8 Makefile --- Makefile 14 May 2020 17:10:20 -0000 1.8 +++ Makefile 16 Aug 2020 16:43:21 -0000 @@ -5,7 +5,7 @@ CATEGORIES = sysutils misc GH_ACCOUNT = dylanaraps GH_PROJECT = neofetch -GH_TAGNAME = 7.0.0 +GH_TAGNAME = 7.1.0 MAINTAINER = Charlene Wendling <c...@openbsd.org> Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/neofetch/distinfo,v retrieving revision 1.4 diff -u -p -u -p -r1.4 distinfo --- distinfo 14 May 2020 17:10:20 -0000 1.4 +++ distinfo 16 Aug 2020 16:43:21 -0000 @@ -1,2 +1,2 @@ -SHA256 (neofetch-7.0.0.tar.gz) = jGvSF89tNPwfPcuw6LETdlW8E/uyEWUnPbsqe84NMTA= -SIZE (neofetch-7.0.0.tar.gz) = 90892 +SHA256 (neofetch-7.1.0.tar.gz) = WKlea3FOQe/IBOyjiaIjMJFpst7zXlf6k0SCprR8J+c= +SIZE (neofetch-7.1.0.tar.gz) = 95400 Index: patches/patch-neofetch =================================================================== RCS file: /cvs/ports/sysutils/neofetch/patches/patch-neofetch,v retrieving revision 1.6 diff -u -p -u -p -r1.6 patch-neofetch --- patches/patch-neofetch 14 May 2020 17:10:20 -0000 1.6 +++ patches/patch-neofetch 16 Aug 2020 16:43:21 -0000 @@ -1,20 +1,26 @@ $OpenBSD: patch-neofetch,v 1.6 2020/05/14 17:10:20 cwen Exp $ -From https://github.com/dylanaraps/neofetch/pull/1426 -Can be removed >7.0.0 +From https://github.com/dylanaraps/neofetch/pull/1494 Index: neofetch --- neofetch.orig +++ neofetch -@@ -1032,6 +1032,11 @@ get_distro() { - *) distro="Guix System $(guix system -V | awk 'NR==1{printf $5}')" - esac +@@ -2196,8 +2196,7 @@ get_cpu() { + ;; + "OpenBSD"* | "Bitrig"*) + deg="$(sysctl hw.sensors | \ +- awk -F '=| degC' '/lm0.temp|cpu0.temp/ {print $2; exit}')" +- deg="${deg/00/0}" ++ awk -F'=|degC' '/(ksmn|adt|lm|cpu)0.temp0/ {printf("%2.1f", $2); exit}')" + ;; + esac + ;; +@@ -2520,7 +2519,7 @@ get_gpu() { + ;; -+ # Display whether using '-current' or '-release' on OpenBSD. -+ elif [[ $kernel_name = OpenBSD ]] ; then -+ read -ra kernel_info <<< "$(sysctl -n kern.version)" -+ distro=${kernel_info[*]:0:2} -+ - else - for release_file in /etc/*-release; do - distro+=$(< "$release_file") + *) +- gpu="$(glxinfo | grep -F 'OpenGL renderer string')" ++ gpu="$(glxinfo -B | grep -F 'OpenGL renderer string')" + gpu="${gpu/OpenGL renderer string: }" + ;; + esac