pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/screenfetch



Module Name:    pkgsrc
Committed By:   kamil
Date:           Mon Jul 18 22:56:44 UTC 2016

Added Files:
        pkgsrc/sysutils/screenfetch: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/screenfetch/patches: patch-screenfetch-dev

Log Message:
Import screenFetch-3.7.0 as sysutils/screenfetch

screenFetch is a "Bash Screenshot Information Tool". This handy Bash script can
be used to generate one of those nifty terminal theme information + ASCII
distribution logos you see in everyone's screenshots nowadays. It will
auto-detect your distribution and display an ASCII version of that
distribution's logo and some valuable information to the right. There are
options to specify no ASCII art, colors, taking a screenshot upon displaying
info, and even customizing the screenshot command! This script is very easy to
add to and can easily be extended.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/screenfetch/DESCR \
    pkgsrc/sysutils/screenfetch/Makefile pkgsrc/sysutils/screenfetch/PLIST \
    pkgsrc/sysutils/screenfetch/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/screenfetch/patches/patch-screenfetch-dev

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/screenfetch/DESCR
diff -u /dev/null pkgsrc/sysutils/screenfetch/DESCR:1.1
--- /dev/null   Mon Jul 18 22:56:44 2016
+++ pkgsrc/sysutils/screenfetch/DESCR   Mon Jul 18 22:56:44 2016
@@ -0,0 +1,8 @@
+screenFetch is a "Bash Screenshot Information Tool". This handy Bash script can
+be used to generate one of those nifty terminal theme information + ASCII
+distribution logos you see in everyone's screenshots nowadays. It will
+auto-detect your distribution and display an ASCII version of that
+distribution's logo and some valuable information to the right. There are
+options to specify no ASCII art, colors, taking a screenshot upon displaying
+info, and even customizing the screenshot command! This script is very easy to
+add to and can easily be extended.
Index: pkgsrc/sysutils/screenfetch/Makefile
diff -u /dev/null pkgsrc/sysutils/screenfetch/Makefile:1.1
--- /dev/null   Mon Jul 18 22:56:44 2016
+++ pkgsrc/sysutils/screenfetch/Makefile        Mon Jul 18 22:56:44 2016
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2016/07/18 22:56:44 kamil Exp $
+
+DISTNAME=      screenFetch-3.7.0
+PKGNAME=       ${DISTNAME:tl}
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=KittyKatt/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/KittyKatt/screenFetch/
+COMMENT=       Fetches system/theme information in terminal for screenshots
+LICENSE=       gnu-gpl-v3
+
+WRKSRC=                ${WRKDIR}/${DISTNAME}
+
+USE_TOOLS+=    bash:run
+USE_LANGUAGES= # none
+
+REPLACE_BASH+= screenfetch-dev
+
+NO_BUILD=      yes
+
+# These are optional, however the purpose of screenfetch is to make use of them
+DEPENDS+=      curl-[0-9]*:../../www/curl
+DEPENDS+=      scrot-[0-9]*:../../graphics/scrot
+
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
+do-install:
+       ${RUN} cd ${WRKSRC} && ${INSTALL_SCRIPT} screenfetch-dev \
+               ${DESTDIR}${PREFIX}/bin/screenfetch
+       ${RUN} cd ${WRKSRC} && ${INSTALL_DATA} screenfetch.1 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/screenfetch.1
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/screenfetch/PLIST
diff -u /dev/null pkgsrc/sysutils/screenfetch/PLIST:1.1
--- /dev/null   Mon Jul 18 22:56:44 2016
+++ pkgsrc/sysutils/screenfetch/PLIST   Mon Jul 18 22:56:44 2016
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/18 22:56:44 kamil Exp $
+bin/screenfetch
+man/man1/screenfetch.1
Index: pkgsrc/sysutils/screenfetch/distinfo
diff -u /dev/null pkgsrc/sysutils/screenfetch/distinfo:1.1
--- /dev/null   Mon Jul 18 22:56:44 2016
+++ pkgsrc/sysutils/screenfetch/distinfo        Mon Jul 18 22:56:44 2016
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/07/18 22:56:44 kamil Exp $
+
+SHA1 (screenFetch-3.7.0.tar.gz) = 5a3702504e154335e372df56e4cb621840dc5506
+RMD160 (screenFetch-3.7.0.tar.gz) = f3be9d4d8fb044cb592f9c41af4ceb5eb9c6a9a4
+SHA512 (screenFetch-3.7.0.tar.gz) = 9a6e89ef2cd48f12b22230c7aff356ac2ece8dc7437034a51a66f8026e5ca4a630af43511a60b21e9fc9f89af9e2493b8cfa3a06294e74c3d611ae3bb0db922d
+Size (screenFetch-3.7.0.tar.gz) = 60223 bytes
+SHA1 (patch-screenfetch-dev) = 08d9508aa79e37d2776a557e9fa185bb5242256a

Index: pkgsrc/sysutils/screenfetch/patches/patch-screenfetch-dev
diff -u /dev/null pkgsrc/sysutils/screenfetch/patches/patch-screenfetch-dev:1.1
--- /dev/null   Mon Jul 18 22:56:44 2016
+++ pkgsrc/sysutils/screenfetch/patches/patch-screenfetch-dev   Mon Jul 18 22:56:44 2016
@@ -0,0 +1,37 @@
+$NetBSD: patch-screenfetch-dev,v 1.1 2016/07/18 22:56:44 kamil Exp $
+
+Cherry-pick upstream improvements for NetBSD.
+"NetBSD: add package count, fix shell and cpu detection #300"
+
+-- https://patch-diff.githubusercontent.com/raw/KittyKatt/screenFetch/pull/300.patch
+
+--- screenfetch-dev.orig       2016-07-18 21:56:20.367098431 +0000
++++ screenfetch-dev
+@@ -877,6 +877,9 @@ detectpkgs () {
+                       pkgs=$(if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 PACKAGESITE=file:///nonexistent pkg info pkg >/dev/null 2>&1; then 
+                               pkg info | wc -l | awk '{print $1}'; else pkg_info | wc -l | awk '{sub(" ", "");print $1}'; fi)
+               ;;
++              'NetBSD')
++                      pkgs=$(pkg_info | wc -l | tr -d ' ')
++              ;;
+               'Cygwin')
+                       cygfix=2
+                       pkgs=$(($(cygcheck -cd | wc -l) - ${cygfix}))
+@@ -928,7 +931,7 @@ detectcpu () {
+                       cpu="$cpu @ ${cpu_mhz}MHz"
+               fi
+       else
+-              cpu=$(awk 'BEGIN{FS=":"} /model name/ { print $2; exit }' /proc/cpuinfo | sed 's/ @/\n/' | head -1)
++              cpu=$(awk 'BEGIN{FS=":"} /model name/ { print $2; exit }' /proc/cpuinfo | awk 'BEGIN{FS=" @"; OFS="\n"} { print $1; exit }')
+               cpun=$(grep "physical id" /proc/cpuinfo | sort | uniq | wc -l)
+               if [ -z "$cpu" ]; then
+                       cpu=$(awk 'BEGIN{FS=":"} /Hardware/ { print $2; exit }' /proc/cpuinfo)
+@@ -1169,7 +1172,7 @@ detectshell () {
+               else
+                       if [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" ]]; then
+                               shell_type=$(ps -p $PPID -o cmd --no-heading)
+-                      elif [[ "${distro}" == "Mac OS X" || "${distro}" == "FreeBSD" || "${distro}" == "OpenBSD" ]]; then
++                      elif [[ "${distro}" == "Mac OS X" || "${distro}" == "FreeBSD" || "${distro}" == "OpenBSD" || "${distro}" == "NetBSD" ]]; then
+                               shell_type=$(ps -p $PPID -o args | tail -1)
+                       else
+                               shell_type=$(ps -p $(ps -p $PPID | awk '$1 !~ /PID/ {print $1}') | awk 'FNR>1 {print $1}')



Home | Main Index | Thread Index | Old Index