diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-16 00:13:45 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-16 00:13:45 +0700 |
commit | 831a6b69396a7f8a1bf8d66b6d4b649a4a7d80e0 (patch) | |
tree | 0041fc6b8ff69ae20fc394ed920067998f2cd83f /network/vnstat/vnstat.SlackBuild | |
parent | a5c6ddbd70e2928ae72b2bfb6a3718f39b76b61d (diff) |
network/vnstat: Updated for version 1.17 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/vnstat/vnstat.SlackBuild')
-rw-r--r-- | network/vnstat/vnstat.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/network/vnstat/vnstat.SlackBuild b/network/vnstat/vnstat.SlackBuild index f1cf91a1f5272..cbc350e19900e 100644 --- a/network/vnstat/vnstat.SlackBuild +++ b/network/vnstat/vnstat.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for vnstat # Copyright 2007-2009 Michiel van Wessem, Manchester, United Kingdom. +# Copyright 2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,16 +23,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by Mario Preksavec <mario@slackware.hr> - PRGNAM=vnstat -VERSION=${VERSION:-1.13} +VERSION=${VERSION:-1.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -42,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -73,6 +72,15 @@ set -e CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + make all make install DESTDIR=$PKG MAN=$PKG/usr/man |