|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
# Slackware build script for darkstat |
|
|
|
# Originally Written by Jorey Bump |
|
|
|
# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> |
|
|
|
# Copyright 2015-2022 Willy Sudiarto Raharjo <willysr@slackbuilds.org> |
|
|
|
# All rights reserved. |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
|
@ -25,7 +25,7 @@ |
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=darkstat |
|
|
|
VERSION=${VERSION:-3.0.719} |
|
|
|
VERSION=${VERSION:-3.0.721} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
@ -50,7 +50,7 @@ TMP=${TMP:-/tmp/SBo} |
|
|
|
PKG=$TMP/package-$PRGNAM |
|
|
|
OUTPUT=${OUTPUT:-/tmp} |
|
|
|
|
|
|
|
DOCS="AUTHORS ChangeLog COPYING.GPL NEWS README" |
|
|
|
DOCS="AUTHORS ChangeLog COPYING.GPL NEWS README*" |
|
|
|
|
|
|
|
if [ "$ARCH" = "i586" ]; then |
|
|
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686" |
|
|
|
@ -68,7 +68,7 @@ rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
cd $TMP |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz |
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
|
@ -77,13 +77,18 @@ find -L . \ |
|
|
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ |
|
|
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; |
|
|
|
|
|
|
|
autoreconf -fiv |
|
|
|
CFLAGS="$SLKCFLAGS" \ |
|
|
|
CXXFLAGS="$SLKCFLAGS" \ |
|
|
|
./configure \ |
|
|
|
--prefix=/usr \ |
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|
|
|
--sysconfdir=/etc \ |
|
|
|
--localstatedir=/var \ |
|
|
|
--mandir=/usr/man |
|
|
|
--mandir=/usr/man \ |
|
|
|
--docdir=/usr/doc/$PRGNAM-$VERSION \ |
|
|
|
--disable-static \ |
|
|
|
--build=$ARCH-slackware-linux |
|
|
|
|
|
|
|
make |
|
|
|
make install DESTDIR=$PKG |
|
|
|
|