slackware-current/source/n/metamail/metamail.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

172 lines
5 KiB
Bash
Executable file

#!/bin/bash
# Copyright 2009, 2018, 2022 Patrick J. Volkerding, Sebeka, Minnesota, 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=metamail
VERSION=2.7
BUILD=${BUILD:-10}
# 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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "armel" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-metamail
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf metamail-$VERSION
tar xvf $CWD/metamail-$VERSION.tar.xz || exit 1
cd metamail-$VERSION || exit 1
xz -dc $CWD/metamail_2.7-54.diff.xz | patch -p1 || exit 1
xz -dc $CWD/metamail.automake.diff.xz | patch -p1 || exit 1
zcat $CWD/metamail.uue.getline.diff.gz | patch -p1 || exit 1
chmod 755 configure
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 {} \+
# Fix misnamed man page:
mv man/mmencode.1 man/mimencode.1
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--disable-static \
--program-prefix="" \
--program-suffix="" \
--build=$ARCH-slackware-linux || exit 1
( cd bin
cat showexternal | perl -pi -e 's|sensible-pager|more|' > se
chmod 755 se ; mv se showexternal
cat sun-message | perl -pi -e 's|sensible-pager|more|' > sm
chmod 755 sm ; mv sm sun-message
)
( cd src/metamail
cat mailto.c | perl -pi -e 's|sensible-pager|more|' > m.c
mv m.c mailto.c
)
make $NUMJOBS || make || exit 1
( cd bin
cat mailto-hebrew | perl -pi -e 's|/usr/lib/X11/fonts/misc|/usr/share/metamail/fonts|' > mh
chmod 755 mh ; mv mh mailto-hebrew
)
make install DESTDIR=$PKG || exit 1
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
( cd fonts
make || exit 1
mkdir -p $PKG/usr/share/metamail/fonts
for file in *.pcf ; do
cat $file > $PKG/usr/share/metamail/fonts/$file
done
cat fonts.alias > $PKG/usr/share/metamail/fonts/fonts.alias
cat fonts.dir > $PKG/usr/share/metamail/fonts/fonts.dir
) || exit 1
( cd man
mkdir -p $PKG/usr/man/man{1,5}
for file in *.1 ; do
cat $file | gzip -9c > $PKG/usr/man/man1/$file.gz
done
#for file in *.4 ; do
# cat $file | gzip -9c > $PKG/usr/man/man4/$file.gz
#done
for file in *.5 ; do
cat $file | gzip -9c > $PKG/usr/man/man5/$file.gz
done
)
# These are obsolete, broken, and/or undocumented.
# Complain to volkerdi@slackware.com if you miss any of them...
for file in \
mailserver rcvAppSingle richtoatk sndAppSingle sun-audio-file sun-message \
sun-to-mime sun2mime rcvAppleSingle sndAppleSingle sun-message.csh ; do
rm -f $PKG/usr/bin/$file $PKG/usr/man/man?/$file.*
done
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/usr/doc/metamail-$VERSION
cp -a \
COPYING CREDITS INSTALL README \
$PKG/usr/doc/metamail-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/metamail-$VERSION-$ARCH-$BUILD.txz