summaryrefslogtreecommitdiff
path: root/network/p0f/p0f.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2011-12-28 23:47:42 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-28 23:47:42 -0600
commit6e00aece385590ef3552f14b1b8cc56fe70b0b88 (patch)
tree36fcd75ffb621cf2800ebb5fcf790467e61fdb8f /network/p0f/p0f.SlackBuild
parent8c89e5e758aad5bd51f79e65a9e5f9e07ef0444d (diff)
downloadslackbuilds-6e00aece385590ef3552f14b1b8cc56fe70b0b88.tar.gz
network/p0f: Updated email and license
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/p0f/p0f.SlackBuild')
-rw-r--r--network/p0f/p0f.SlackBuild38
1 files changed, 28 insertions, 10 deletions
diff --git a/network/p0f/p0f.SlackBuild b/network/p0f/p0f.SlackBuild
index 9f3b6d43fc..5d4866d4b3 100644
--- a/network/p0f/p0f.SlackBuild
+++ b/network/p0f/p0f.SlackBuild
@@ -1,23 +1,38 @@
#!/bin/sh
-# Slackware build script for p0f
-# Written by David Spencer <nobbutl@yahoo.co.uk>
-#==============================================================================
+# Slackware build script for p0f
+
+# Copyright 2011 David Spencer, Baildon, West Yorkshire, U.K.
+# 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.
# Modified by the SlackBuilds.org project
-# Assumed to be public domain per our submission policy
PRGNAM=p0f
-VERSION=2.0.8
+VERSION=${VERSION:-2.0.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -47,13 +62,16 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
-tar -xzvf $CWD/$PRGNAM-$VERSION.tgz
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-make CFLAGS="$SLKCFLAGS -DUSE_BPF=\\\"pcap-bpf.h\\\" -I/usr/include/pcap" \
- -f mk/Linux p0f
+make p0f \
+ CFLAGS="$SLKCFLAGS \
+ -DUSE_BPF=\\\"pcap-bpf.h\\\" \
+ -I/usr/include/pcap" \
+ -f mk/Linux
mkdir -p $PKG/usr/sbin/
cp -f p0f p0frep $PKG/usr/sbin/