Skip to content

Commit

Permalink
sysutils/screenfetch: update to hunk b1f0893
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjgh committed Nov 29, 2023
1 parent 36616a2 commit b6dc95d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sysutils/screenfetch/Makefile
@@ -1,7 +1,7 @@
PORTNAME= screenFetch
DISTVERSIONPREFIX= v
DISTVERSION= 3.9.1-59
DISTVERSIONSUFFIX= -gd2b0f2b
DISTVERSION= 3.9.1-64
DISTVERSIONSUFFIX= -gb1f0893
CATEGORIES= sysutils

MAINTAINER= jgh@FreeBSD.org
Expand Down
6 changes: 3 additions & 3 deletions sysutils/screenfetch/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1675965448
SHA256 (KittyKatt-screenFetch-v3.9.1-59-gd2b0f2b_GH0.tar.gz) = 05a571057ab3f3c8a51edf19f0874c684ec4f8895c82b95e0fd4350277bb2312
SIZE (KittyKatt-screenFetch-v3.9.1-59-gd2b0f2b_GH0.tar.gz) = 78772
TIMESTAMP = 1701133097
SHA256 (KittyKatt-screenFetch-v3.9.1-64-gb1f0893_GH0.tar.gz) = 50dc7aaea0c01605f895b4a4e8f2f4a8383cb56931237b6e93498f290149bfbd
SIZE (KittyKatt-screenFetch-v3.9.1-64-gb1f0893_GH0.tar.gz) = 79351
4 changes: 2 additions & 2 deletions sysutils/screenfetch/files/patch-screenfetch-dev
Expand Up @@ -22,8 +22,8 @@
cpu="Unknown"
fi
elif [ "$distro" == "FreeBSD" ]; then
- cpu=$(dmesg | awk -F': ' '/^CPU/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}')
+ cpu=$(sysctl -n hw.model |sed -e 's/ \{2,\}/ /g')
- cpu=$(dmesg | "${AWK}" -F': ' '/^CPU/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}')
+ cpu=$(sysctl -n hw.model)
elif [ "$distro" == "DragonFlyBSD" ]; then
cpu=$(sysctl -n hw.model)
elif [ "$distro" == "OpenBSD" ]; then
Expand Down

0 comments on commit b6dc95d

Please sign in to comment.