diff options
Diffstat (limited to 'misc/fbdump')
-rw-r--r-- | misc/fbdump/README | 16 | ||||
-rw-r--r-- | misc/fbdump/fbdump.SlackBuild | 22 | ||||
-rw-r--r-- | misc/fbdump/fbdump.info | 6 |
3 files changed, 25 insertions, 19 deletions
diff --git a/misc/fbdump/README b/misc/fbdump/README index c7cd539bb1..43c62d8ed7 100644 --- a/misc/fbdump/README +++ b/misc/fbdump/README @@ -1,15 +1,17 @@ fbdump (captures the visible portion of framebuffer to stdout) -fbdump is a simple tool that captures the contents of the visible portion of -the Linux framebuffer device and writes it to the standard output as a PPM -file. In other words, it takes a screenshot of anything running on the -framebuffer. It currently has fairly complete support for packed-pixel -framebuffer types and also works with the VGA16 framebuffer driver. +fbdump is a simple tool that captures the contents of the visible +portion of the Linux framebuffer device and writes it to the standard +output as a PPM file. In other words, it takes a screenshot of +anything running on the framebuffer. It currently has fairly complete +support for packed-pixel framebuffer types and also works with the +VGA16 framebuffer driver. To get a popular image format, issue a command like: fbdump | pnmtopng > shot.png Note: fbdump is rather slow on modern systems with high-resolution -framebuffers at 32-bit color depth. On the maintainer's system, it takes -8 seconds to dump a 1920x1080x32 framebuffer. Be patient. +framebuffers at 32-bit color depth. On some systems, it takes several +seconds to dump a 1920x1080x32 framebuffer. Be patient. Or use fbcat +instead. diff --git a/misc/fbdump/fbdump.SlackBuild b/misc/fbdump/fbdump.SlackBuild index 37847bb764..53fce81492 100644 --- a/misc/fbdump/fbdump.SlackBuild +++ b/misc/fbdump/fbdump.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for fbdump @@ -26,7 +26,7 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Now maintained by B. Watson (yalhcru@gmail.com) +# Now maintained by B. Watson (urchlay@slackware.uk) # 20170324 bkw: # - take over maintenance. @@ -42,10 +42,13 @@ # framebuffer format these days. Compiling with lots of optimizations # doesn't seem to help (even switching from gcc to clang). +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=fbdump VERSION=${VERSION:-0.4.2} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -55,7 +58,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -83,11 +90,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # 20170324 bkw: maybe returning from main() used to cause stdout to # be flushed, back when fbdump was new... but these days we need to @@ -123,4 +127,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/misc/fbdump/fbdump.info b/misc/fbdump/fbdump.info index 790bce43a3..543ba417cc 100644 --- a/misc/fbdump/fbdump.info +++ b/misc/fbdump/fbdump.info @@ -1,10 +1,10 @@ PRGNAM="fbdump" VERSION="0.4.2" -HOMEPAGE="http://www.rcdrummond.net/fbdump/" -DOWNLOAD="http://www.rcdrummond.net/fbdump/fbdump-0.4.2.tar.gz" +HOMEPAGE="https://www.rcdrummond.net/fbdump/" +DOWNLOAD="https://www.rcdrummond.net/fbdump/fbdump-0.4.2.tar.gz" MD5SUM="85ae97c0800a2caf2b04ad7764e3915b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" |