diff options
author | Petr Kletecka <petr@kle.cz> | 2017-03-09 13:24:36 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-09 13:35:18 +0000 |
commit | 81f6864f2574c0dd14192e35f5a676cbbc198c72 (patch) | |
tree | d5da6a8c4e2d66481826d1dc4f80d4e25a77c919 /misc | |
parent | 6e85056388d72ec5f7d0fa401a93be1fc7123224 (diff) | |
download | slackbuilds-81f6864f2574c0dd14192e35f5a676cbbc198c72.tar.gz |
misc/snow: Added (whitespace steganography).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/snow/README | 4 | ||||
-rw-r--r-- | misc/snow/slack-desc | 19 | ||||
-rw-r--r-- | misc/snow/snow.SlackBuild | 92 | ||||
-rw-r--r-- | misc/snow/snow.info | 10 |
4 files changed, 125 insertions, 0 deletions
diff --git a/misc/snow/README b/misc/snow/README new file mode 100644 index 0000000000..e7d0525af5 --- /dev/null +++ b/misc/snow/README @@ -0,0 +1,4 @@ +The program SNOW is used to conceal messages in ASCII text by appending +whitespace to the end of lines. Because spaces and tabs are generally +not visible in text viewers, the message is effectively hidden from +casual observers. diff --git a/misc/snow/slack-desc b/misc/snow/slack-desc new file mode 100644 index 0000000000..5e7ca5bd40 --- /dev/null +++ b/misc/snow/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +snow: snow (whitespace steganography) +snow: +snow: The program SNOW is used to conceal messages in ASCII text by +snow: appending whitespace to the end of lines. Because spaces and tabs are +snow: generally not visible in text viewers, the message is effectively +snow: hidden from casual observers. And if the built-in encryption is used, +snow: the message cannot be read even if it is detected. +snow: +snow: website: http://www.darkside.com.au/snow/ +snow: +snow: diff --git a/misc/snow/snow.SlackBuild b/misc/snow/snow.SlackBuild new file mode 100644 index 0000000000..477f3a9cbe --- /dev/null +++ b/misc/snow/snow.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/sh + +# Slackware build script for snow + +# Petr Kletecka petr@kle.cz <2017> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=snow +VERSION=${VERSION:-20130616} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +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 {} \; + +make CFLAGS="$SLKCFLAGS" + +install -D -m755 snow $PKG/usr/bin/snow +strip --strip-unneeded $PKG/usr/bin/snow + +mkdir -p $PKG/usr/man/man1 +cat snow.1 > $PKG/usr/man/man1/snow.1 +gzip $PKG/usr/man/man1/snow.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat AUTHORS > $PKG/usr/doc/$PRGNAM-$VERSION/AUTHORS +cat COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING +cat ChangeLog > $PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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} diff --git a/misc/snow/snow.info b/misc/snow/snow.info new file mode 100644 index 0000000000..9147d2e557 --- /dev/null +++ b/misc/snow/snow.info @@ -0,0 +1,10 @@ +PRGNAM="snow" +VERSION="20130616" +HOMEPAGE="http://www.darkside.com.au/snow/" +DOWNLOAD="http://www.darkside.com.au/snow/snow-20130616.tar.gz" +MD5SUM="be8a28b7fb6e2c751fde7c0cc8ae01ec" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Petr Kletecka" +EMAIL="petr@kle.cz" |