diff options
Diffstat (limited to 'network/driftnet')
-rw-r--r-- | network/driftnet/README | 17 | ||||
-rw-r--r-- | network/driftnet/driftnet.SlackBuild | 23 | ||||
-rw-r--r-- | network/driftnet/driftnet.info | 6 |
3 files changed, 34 insertions, 12 deletions
diff --git a/network/driftnet/README b/network/driftnet/README index 03ebbda903..bdcc236f51 100644 --- a/network/driftnet/README +++ b/network/driftnet/README @@ -1,9 +1,18 @@ -Driftnet is a program designed to capture JPEG and GIF images by sniffing -network traffic and display them in an X window. Optionally, you may also -capture MPEG audio streams and play them. According to the author, "It is -a horrific invasion of privacy and shouldn't be used by anyone anywhere." +Driftnet is a program designed to capture JPEG and GIF images by +sniffing network traffic and display them in an X window. Optionally, +you may also capture MPEG audio streams and play them. According to +the author, "It is a horrific invasion of privacy and shouldn't be +used by anyone anywhere." Original project: http://www.ex-parrot.com/~chris/driftnet/ This is an updated version available from GitHub, which includes several patches for use on newer systems. + +HTTP websockets display +----------------------- + +Disabled by default. + +This feature requires libwebsockets as a dependency and remove this +build flag: --disable-http-display diff --git a/network/driftnet/driftnet.SlackBuild b/network/driftnet/driftnet.SlackBuild index d9999b0e3b..69308123bd 100644 --- a/network/driftnet/driftnet.SlackBuild +++ b/network/driftnet/driftnet.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackbuild build script for driftnet # Copyright 2010, JK Wood <joshuakwood@gmail.com> -# Copyright 2017-2018 Brenton Earl <brent@exitstatuosne.com> +# Copyright 2017-2018, 2020 Brenton Earl <brent@exitstatuosne.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=driftnet -VERSION=${VERSION:-1.2.0} +VERSION=${VERSION:-1.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} @@ -87,6 +97,9 @@ make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING INSTALL CREDITS README.md Changelog TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -97,4 +110,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/network/driftnet/driftnet.info b/network/driftnet/driftnet.info index 0a4f69fa15..a7d40d2e0e 100644 --- a/network/driftnet/driftnet.info +++ b/network/driftnet/driftnet.info @@ -1,8 +1,8 @@ PRGNAM="driftnet" -VERSION="1.2.0" +VERSION="1.3.0" HOMEPAGE="https://github.com/deiv/driftnet" -DOWNLOAD="https://github.com/deiv/driftnet/archive/v1.2.0/driftnet-1.2.0.tar.gz" -MD5SUM="86fda7573a2c17ba02059e63e0f097b8" +DOWNLOAD="https://github.com/deiv/driftnet/archive/v1.3.0/driftnet-1.3.0.tar.gz" +MD5SUM="60e8955771e028cab44ecd6b2800f326" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |