aboutsummaryrefslogtreecommitdiff
path: root/network/pmacct
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2022-02-25 20:56:12 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-27 01:09:53 +0700
commitdaeace651417cf5f9918ee634bd721332318b4e5 (patch)
treed05bd846da1fea337e1aa81052b6fa67701c676d /network/pmacct
parentef152f76609681de02cb32e36f080b8378120d83 (diff)
network/pmacct: Add -fcommon to CFLAGS.
Removed the VERSION adjustment, which doesn't seem necessary. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/pmacct')
-rw-r--r--network/pmacct/pmacct.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/pmacct/pmacct.SlackBuild b/network/pmacct/pmacct.SlackBuild
index 1dd2769e29564..1ed93b8cb4290 100644
--- a/network/pmacct/pmacct.SlackBuild
+++ b/network/pmacct/pmacct.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pmacct
VERSION=${VERSION:-1.7.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -44,7 +44,7 @@ fi
# 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-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -80,7 +80,7 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -fcommon" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -105,4 +105,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.$PKGTYPE
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE