diff options
author | Ashley Wiren (spook) <spook123@gmail.com> | 2010-05-11 22:55:11 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:11 +0200 |
commit | 81b6d4abf571b78baad247ebc40253262084ace3 (patch) | |
tree | 545541c9e30f4749b27f9e1745a2d6566b540e4d | |
parent | e6ede276b07c3fb52a6d5c2300f6afc35c408252 (diff) | |
download | slackbuilds-81b6d4abf571b78baad247ebc40253262084ace3.tar.gz |
system/adcfw-log: Added to 12.1 repository
-rw-r--r-- | system/adcfw-log/README | 9 | ||||
-rw-r--r-- | system/adcfw-log/adcfw-log.SlackBuild | 76 | ||||
-rw-r--r-- | system/adcfw-log/adcfw-log.info | 8 | ||||
-rw-r--r-- | system/adcfw-log/slack-desc | 19 |
4 files changed, 112 insertions, 0 deletions
diff --git a/system/adcfw-log/README b/system/adcfw-log/README new file mode 100644 index 0000000000..2a325958eb --- /dev/null +++ b/system/adcfw-log/README @@ -0,0 +1,9 @@ +adcfw-log An iptables (among other things) Log analyser + +adcfw-log is a tool for analyzing firewall logs in order to extract +meaningful information. It is designed to generate different kinds of +reports such as fully formatted reports of what had been logged, with +summaries protocol. There are also options to filter the input data by +date, host, protocol, service, and so on. Only netfilter log format is +supported at this time. + diff --git a/system/adcfw-log/adcfw-log.SlackBuild b/system/adcfw-log/adcfw-log.SlackBuild new file mode 100644 index 0000000000..1aae4fcdd8 --- /dev/null +++ b/system/adcfw-log/adcfw-log.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for adcfw-log + +# Written by Ashley Wiren (Spook) spook123@gmail.com + +PRGNAM=adcfw-log +VERSION=${VERSION:-0.10.0} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +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 . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man + +# Compile the application and install it into the $PKG directory +make +make install DESTDIR=$PKG + +# Strip binaries and libraries +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +# Compress man pages +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +# Copy program documentation into the package +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make the package; be sure to leave it in $OUTPUT +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz + diff --git a/system/adcfw-log/adcfw-log.info b/system/adcfw-log/adcfw-log.info new file mode 100644 index 0000000000..3a27485347 --- /dev/null +++ b/system/adcfw-log/adcfw-log.info @@ -0,0 +1,8 @@ +PRGNAM="adcfw-log" +VERSION="0.10.0" +HOMEPAGE="http://adcfw-log.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/adcfw-log/adcfw-log-0.10.0.tar.gz" +MD5SUM="ef87de194d5a64e04b8d2553b3acad43" +MAINTAINER="Ashley Wiren (spook)" +EMAIL="spook123@gmail.com" +APPROVED="David Somero" diff --git a/system/adcfw-log/slack-desc b/system/adcfw-log/slack-desc new file mode 100644 index 0000000000..659ebe928c --- /dev/null +++ b/system/adcfw-log/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 ':'. + + |-----handy-ruler------------------------------------------------------| +adcfw-log: adcfw-log (iptables Log analyser) +adcfw-log: +adcfw-log: adcfw-log is a tool for analyzing firewall logs in order to extract +adcfw-log: meaningful information. It is designed to generate different kinds of +adcfw-log: reports such as fully formatted reports of what had been logged, with +adcfw-log: summaries protocol. There are also options to filter the input data +adcfw-log: by date, host, protocol, service, and so on. +adcfw-log: Only netfilter log format is supported at this time. +adcfw-log: +adcfw-log: http://adcfw-log.sourceforge.net/ +adcfw-log: |