diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-11 19:46:43 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 19:46:43 +0200 |
commit | b63a0f19679e0e09408a568922d267952a19c36e (patch) | |
tree | c95af946a68d7854a093e0923399797c8e19fe4e /system/ulogd/ulogd.SlackBuild | |
parent | 1a743c5fbe5d588b38c021bffea42ed6f62cc64a (diff) | |
download | slackbuilds-b63a0f19679e0e09408a568922d267952a19c36e.tar.gz |
system/ulogd: Updated for version 1.24
Diffstat (limited to 'system/ulogd/ulogd.SlackBuild')
-rw-r--r-- | system/ulogd/ulogd.SlackBuild | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/system/ulogd/ulogd.SlackBuild b/system/ulogd/ulogd.SlackBuild index f8558543b4..8ba20de525 100644 --- a/system/ulogd/ulogd.SlackBuild +++ b/system/ulogd/ulogd.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ulogd -# Copyright 2006 Robby Workman (http://rlworkman.net) +# Copyright 2006-2007 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,13 @@ # 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 - PRGNAM=ulogd VERSION=1.24 ARCH=${ARCH:-i486} -BUILD=${BUILD:-4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -40,12 +39,14 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -53,20 +54,21 @@ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var \ - || exit 1 + --localstatedir=/var -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG -find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) install -D -m 0755 $CWD/rc.ulogd $PKG/etc/rc.d/rc.ulogd.new mv $PKG/etc/ulogd.conf $PKG/etc/ulogd.conf.new # Install logrotate script -install -D -m 0644 ulogd.logrotate $PKG/etc/logrotate.d/ulogd.logrotate.new +install -D -m 0644 ulogd.logrotate $PKG/etc/logrotate.d/ulogd.new # Install man page mkdir -p $PKG/usr/man/man8 @@ -76,8 +78,8 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING README TODO Changes $PKG/usr/doc/$PRGNAM-$VERSION for i in \ mysql.table mysql.table.ipaddr-as-string pgsql.table sqlite3.table \ - ulogd.a4.ps ulogd.html ulogd.sgml ulogd.txt ; -do cat doc/$i > $PKG/usr/doc/$PRGNAM-$VERSION/$i ; + ulogd.a4.ps ulogd.html ulogd.sgml ulogd.txt ; do + cat doc/$i > $PKG/usr/doc/$PRGNAM-$VERSION/$i ; done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |