slackware-current/source/n/mtr/mtr.SlackBuild
Patrick J Volkerding 1d3ade18ad Wed Jan 12 22:04:33 UTC 2022
Good hello, and welcome to the third and final release candidate for Slackware
15.0. We're 99% frozen at this point and are mostly looking for regression or
other bug reports that might be able to be addressed before this goes stable.
Of course, the management here reserves the right to make exceptions... that
5.15.15 kernel version has a nice ring to it. If your requests didn't make it
into this iteration, perhaps we will revisit them for the next -current cycle.
Some were just a little too late but will more than likely be needed next time
(I'm looking at Didier's grubconfig), while others are just out of scope for
the main tree where I like to abide by YAGNI as much as possible.
Anyway, let's get some testing done and we'll be there soon. Enjoy! :-)
a/aaa_base-15.0-x86_64-2.txz:  Rebuilt.
  The Linux Counter has shut down, so remove the registration email.
  Update the welcome email for Slackware 15.0.
a/aaa_libraries-15.0-x86_64-13.txz:  Rebuilt.
  Upgraded: libsigsegv.so.2.0.7.
a/eudev-3.2.11-x86_64-1.txz:  Upgraded.
a/haveged-1.9.17-x86_64-1.txz:  Upgraded.
a/hdparm-9.63-x86_64-1.txz:  Upgraded.
a/kernel-firmware-20220111_13dca28-noarch-1.txz:  Upgraded.
a/kernel-generic-5.15.14-x86_64-1.txz:  Upgraded.
a/kernel-huge-5.15.14-x86_64-1.txz:  Upgraded.
a/kernel-modules-5.15.14-x86_64-1.txz:  Upgraded.
ap/vim-8.2.4065-x86_64-1.txz:  Upgraded.
d/kernel-headers-5.15.14-x86-1.txz:  Upgraded.
d/strace-5.16-x86_64-1.txz:  Upgraded.
d/vala-0.54.6-x86_64-1.txz:  Upgraded.
k/kernel-source-5.15.14-noarch-1.txz:  Upgraded.
  VMD m -> y
  Thanks to dr.s.
kde/attica-5.90.0-x86_64-1.txz:  Upgraded.
kde/baloo-5.90.0-x86_64-1.txz:  Upgraded.
kde/bluez-qt-5.90.0-x86_64-1.txz:  Upgraded.
kde/breeze-icons-5.90.0-noarch-1.txz:  Upgraded.
kde/extra-cmake-modules-5.90.0-x86_64-1.txz:  Upgraded.
kde/frameworkintegration-5.90.0-x86_64-1.txz:  Upgraded.
kde/kactivities-5.90.0-x86_64-1.txz:  Upgraded.
kde/kactivities-stats-5.90.0-x86_64-1.txz:  Upgraded.
kde/kapidox-5.90.0-x86_64-1.txz:  Upgraded.
kde/karchive-5.90.0-x86_64-1.txz:  Upgraded.
kde/kauth-5.90.0-x86_64-1.txz:  Upgraded.
kde/kbookmarks-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcalendarcore-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcmutils-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcodecs-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcompletion-5.90.0-x86_64-1.txz:  Upgraded.
kde/kconfig-5.90.0-x86_64-1.txz:  Upgraded.
kde/kconfigwidgets-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcontacts-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcoreaddons-5.90.0-x86_64-1.txz:  Upgraded.
kde/kcrash-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdav-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdbusaddons-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdeclarative-5.90.0-x86_64-1.txz:  Upgraded.
kde/kded-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdelibs4support-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdesignerplugin-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdesu-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdewebkit-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdnssd-5.90.0-x86_64-1.txz:  Upgraded.
kde/kdoctools-5.90.0-x86_64-1.txz:  Upgraded.
kde/kemoticons-5.90.0-x86_64-1.txz:  Upgraded.
kde/kfilemetadata-5.90.0-x86_64-1.txz:  Upgraded.
kde/kglobalaccel-5.90.0-x86_64-1.txz:  Upgraded.
kde/kguiaddons-5.90.0-x86_64-1.txz:  Upgraded.
kde/kholidays-5.90.0-x86_64-1.txz:  Upgraded.
kde/khtml-5.90.0-x86_64-1.txz:  Upgraded.
kde/ki18n-5.90.0-x86_64-1.txz:  Upgraded.
kde/kiconthemes-5.90.0-x86_64-1.txz:  Upgraded.
kde/kidletime-5.90.0-x86_64-1.txz:  Upgraded.
kde/kimageformats-5.90.0-x86_64-1.txz:  Upgraded.
kde/kinit-5.90.0-x86_64-1.txz:  Upgraded.
kde/kio-5.90.0-x86_64-1.txz:  Upgraded.
kde/kirigami2-5.90.0-x86_64-1.txz:  Upgraded.
kde/kitemmodels-5.90.0-x86_64-1.txz:  Upgraded.
kde/kitemviews-5.90.0-x86_64-1.txz:  Upgraded.
kde/kjobwidgets-5.90.0-x86_64-1.txz:  Upgraded.
kde/kjs-5.90.0-x86_64-1.txz:  Upgraded.
kde/kjsembed-5.90.0-x86_64-1.txz:  Upgraded.
kde/kmediaplayer-5.90.0-x86_64-1.txz:  Upgraded.
kde/knewstuff-5.90.0-x86_64-1.txz:  Upgraded.
kde/knotifications-5.90.0-x86_64-1.txz:  Upgraded.
kde/knotifyconfig-5.90.0-x86_64-1.txz:  Upgraded.
kde/kpackage-5.90.0-x86_64-1.txz:  Upgraded.
kde/kparts-5.90.0-x86_64-1.txz:  Upgraded.
kde/kpeople-5.90.0-x86_64-1.txz:  Upgraded.
kde/kplotting-5.90.0-x86_64-1.txz:  Upgraded.
kde/kpty-5.90.0-x86_64-1.txz:  Upgraded.
kde/kquickcharts-5.90.0-x86_64-1.txz:  Upgraded.
kde/kross-5.90.0-x86_64-1.txz:  Upgraded.
kde/krunner-5.90.0-x86_64-1.txz:  Upgraded.
kde/kservice-5.90.0-x86_64-1.txz:  Upgraded.
kde/ktexteditor-5.90.0-x86_64-1.txz:  Upgraded.
kde/ktextwidgets-5.90.0-x86_64-1.txz:  Upgraded.
kde/kunitconversion-5.90.0-x86_64-1.txz:  Upgraded.
kde/kwallet-5.90.0-x86_64-1.txz:  Upgraded.
kde/kwayland-5.90.0-x86_64-1.txz:  Upgraded.
kde/kwidgetsaddons-5.90.0-x86_64-1.txz:  Upgraded.
kde/kwindowsystem-5.90.0-x86_64-1.txz:  Upgraded.
kde/kxmlgui-5.90.0-x86_64-1.txz:  Upgraded.
kde/kxmlrpcclient-5.90.0-x86_64-1.txz:  Upgraded.
kde/latte-dock-0.10.7-x86_64-1.txz:  Upgraded.
kde/modemmanager-qt-5.90.0-x86_64-1.txz:  Upgraded.
kde/networkmanager-qt-5.90.0-x86_64-1.txz:  Upgraded.
kde/oxygen-icons5-5.90.0-noarch-1.txz:  Upgraded.
kde/plasma-framework-5.90.0-x86_64-1.txz:  Upgraded.
kde/plasma-workspace-5.23.5-x86_64-2.txz:  Rebuilt.
  [PATCH] [libtaskmanager] Increase buffer for pipewire format negotiation.
  Thanks to ZhaoLin1457.
  [PATCH] runners/shell: Port from KToolInvocation::invokeTerminal
  to KTerminalLauncherJob.
  Thanks to gmgf.
kde/prison-5.90.0-x86_64-1.txz:  Upgraded.
kde/purpose-5.90.0-x86_64-1.txz:  Upgraded.
kde/qqc2-desktop-style-5.90.0-x86_64-1.txz:  Upgraded.
kde/solid-5.90.0-x86_64-1.txz:  Upgraded.
kde/sonnet-5.90.0-x86_64-1.txz:  Upgraded.
kde/syndication-5.90.0-x86_64-1.txz:  Upgraded.
kde/syntax-highlighting-5.90.0-x86_64-1.txz:  Upgraded.
kde/threadweaver-5.90.0-x86_64-1.txz:  Upgraded.
l/SDL2-2.0.20-x86_64-1.txz:  Upgraded.
l/SDL2_ttf-2.0.18-x86_64-1.txz:  Upgraded.
l/libsigsegv-2.14-x86_64-1.txz:  Upgraded.
l/pango-1.48.11-x86_64-1.txz:  Upgraded.
l/python-urllib3-1.26.8-x86_64-1.txz:  Upgraded.
n/getmail-6.18.6-x86_64-1.txz:  Upgraded.
n/iproute2-5.16.0-x86_64-1.txz:  Upgraded.
n/metamail-2.7-x86_64-10.txz:  Rebuilt.
  Fixed misnamed mimencode man page. Thanks to mbeninca.
n/mtr-0.95-x86_64-1.txz:  Upgraded.
n/socat-1.7.4.3-x86_64-1.txz:  Upgraded.
xap/freerdp-2.5.0-x86_64-1.txz:  Upgraded.
xap/gnuplot-5.4.3-x86_64-1.txz:  Upgraded.
xap/mozilla-firefox-91.5.0esr-x86_64-1.txz:  Upgraded.
  This release contains security fixes and improvements.
  For more information, see:
    https://www.mozilla.org/en-US/firefox/91.5.0/releasenotes/
    https://www.mozilla.org/security/advisories/mfsa2022-02/
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22746
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22743
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22742
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22741
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22740
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22738
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22737
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4140
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22748
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22745
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22744
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22747
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22739
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22751
  (* Security fix *)
xap/mozilla-thunderbird-91.5.0-x86_64-1.txz:  Upgraded.
  This release contains security fixes and improvements.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/91.5.0/releasenotes/
    https://www.mozilla.org/en-US/security/advisories/mfsa2022-03/
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22746
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22743
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22742
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22741
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22740
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22738
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22737
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4140
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22748
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22745
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22744
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22747
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22739
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22751
  (* Security fix *)
xap/vim-gvim-8.2.4065-x86_64-1.txz:  Upgraded.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2022-01-13 08:59:55 +01:00

118 lines
3.7 KiB
Bash
Executable file

#!/bin/bash
# Copyright 2006 Eric Hameleers, Eindhoven, Netherlands
# Copyright 2007, 2008, 2009, 2018, 2019 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mtr
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
exit 0
fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-${VERSION}.tar.?z || exit 1
cd ${PKGNAM}-${VERSION} || exit 1
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" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--localstatedir=/var \
--sysconfdir=/etc \
--without-gtk \
--build=$ARCH-slackware-linux || exit 1
make $NUMJOBS || make || exit 1
make DESTDIR=$PKG install || exit 1
chmod -s $PKG/usr/sbin/mtr
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
AUTHORS COPYING* FORMATS INSTALL NEWS README* SECURITY TODO \
$PKG/usr/doc/$PKGNAM-$VERSION
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then
DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
touch -r ChangeLog $DOCSDIR/ChangeLog
fi
# Compress the man page(s)
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \+
# Strip binaries
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz