summaryrefslogtreecommitdiffstats
path: root/libraries/libnids
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libnids')
-rw-r--r--libraries/libnids/README19
-rw-r--r--libraries/libnids/libnids.SlackBuild20
2 files changed, 26 insertions, 13 deletions
diff --git a/libraries/libnids/README b/libraries/libnids/README
index f6a7a02943..9b2fa9d65d 100644
--- a/libraries/libnids/README
+++ b/libraries/libnids/README
@@ -1,9 +1,10 @@
-Libnids is an implementation of an E-component of Network Intrusion Detection
-System. It emulates the IP stack of Linux 2.0.x. Libnids offers IP
-defragmentation, TCP stream assembly and TCP port scan detection. The most
-valuable feature of libnids is reliability. A number of tests were conducted,
-which proved that libnids predicts behaviour of protected Linux hosts as
-closely as possible. Libnids is highly configurable in run-time and offers a
-convenient interface. Currently it compiles on Linux, *BSD and Solaris.
-Using libnids, one has got a convenient access to data carried by a TCP
-stream, no matter how artfully obscured by an attacker.
+Libnids is an implementation of an E-component of Network Intrusion
+Detection System. It emulates the IP stack of Linux 2.0.x. Libnids
+offers IP defragmentation, TCP stream assembly and TCP port scan
+detection. The most valuable feature of libnids is reliability. A
+number of tests were conducted, which proved that libnids predicts
+behaviour of protected Linux hosts as closely as possible. Libnids is
+highly configurable in run-time and offers a convenient interface.
+Currently it compiles on Linux, *BSD and Solaris. Using libnids, one
+has got a convenient access to data carried by a TCP stream, no matter
+how artfully obscured by an attacker.
diff --git a/libraries/libnids/libnids.SlackBuild b/libraries/libnids/libnids.SlackBuild
index afaff9e645..c62aa5cb72 100644
--- a/libraries/libnids/libnids.SlackBuild
+++ b/libraries/libnids/libnids.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libnids.
#
@@ -23,10 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=libnids
VERSION=${VERSION:-1.24}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,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}
@@ -98,8 +108,10 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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