slackware-current/source/ap/mariadb/mariadb.SlackBuild

243 lines
8.3 KiB
Text
Raw Normal View History

#!/bin/bash
# Copyright 2008, 2009, 2010, 2012, 2013, 2014, 2017, 2018, 2020, 2021, 2022, 2023, 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
# Copyright 2011, 2012, 2013, 2014, 2017 Heinz Wiesinger, Amsterdam, The Netherlands
# 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.
# Build and install MySQL on Slackware
# by: David Cantrell <david@slackware.com>
# MariaDB conversion by: Heinz Wiesinger <pprkut@liwjatan.at>
# Also maintained by: Patrick Volkerding <volkerdi@slackware.com>
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mariadb
VERSION=${VERSION:-$(echo ${PKGNAM}-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-5}
# To reduce the package size, the embedded server may be omitted. Currently
# only amarok uses this. To build without embedded support, set this to NO.
EMBEDDED=${EMBEDDED:-YES}
# Add a description tag to the $BUILD. This is used by
# "build_embedded_package.sh" to mark packages containing the embedded server,
# but can optionally be used with any kind of custom tag desired.
TAG=${TAG:-}
# Don't keep the large static libraries by default:
KEEPSTATIC=${KEEPSTATIC:-NO}
# Don't keep the test suite by default:
KEEPTESTS=${KEEPTESTS:-NO}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i686 ;;
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}${TAG}.txz"
exit 0
fi
Fri Sep 21 18:51:07 UTC 2018 a/eudev-3.2.6-x86_64-1.txz: Upgraded. a/glibc-solibs-2.28-x86_64-2.txz: Upgraded. a/grub-2.02-x86_64-3.txz: Rebuilt. Patched to fix compatibility with recent xfsprogs. Thanks to Markus Wiesner. a/kernel-generic-4.14.71-x86_64-1.txz: Upgraded. a/kernel-huge-4.14.71-x86_64-1.txz: Upgraded. a/kernel-modules-4.14.71-x86_64-1.txz: Upgraded. ap/opus-tools-0.2-x86_64-1.txz: Upgraded. ap/sqlite-3.25.1-x86_64-1.txz: Upgraded. d/icecream-20180905_cdc6ff8-x86_64-1.txz: Upgraded. d/kernel-headers-4.14.71-x86-1.txz: Upgraded. d/llvm-7.0.0-x86_64-1.txz: Upgraded. Shared library .so-version bump. k/kernel-source-4.14.71-noarch-1.txz: Upgraded. l/ffmpeg-3.4.4-x86_64-2.txz: Rebuilt. Don't try to link with Samba since the latest version is not compatible. l/glibc-2.28-x86_64-2.txz: Upgraded. All packages have been patched where needed for glibc-2.28 and compile tested here. Thanks to nobodino for the help. l/glibc-i18n-2.28-x86_64-2.txz: Upgraded. l/glibc-profile-2.28-x86_64-2.txz: Upgraded. l/gst-plugins-base-1.14.3-x86_64-1.txz: Upgraded. l/gst-plugins-good-1.14.3-x86_64-1.txz: Upgraded. l/gst-plugins-libav-1.14.3-x86_64-1.txz: Upgraded. l/gstreamer-1.14.3-x86_64-1.txz: Upgraded. l/imagemagick-6.9.10_11-x86_64-1.txz: Upgraded. l/libopusenc-0.2-x86_64-1.txz: Added. l/librsvg-2.44.3-x86_64-1.txz: Upgraded. l/opus-1.3_rc2-x86_64-1.txz: Upgraded. l/opusfile-0.11-x86_64-1.txz: Upgraded. l/soprano-2.9.4-x86_64-3.txz: Rebuilt. Recompiled to drop virtuoso dependency. l/virtuoso-ose-6.1.8-x86_64-9.txz: Removed. Even KDE4 has migrated away from actually using this for anything. The last thing in Slackware that was dependent on it was Soprano, which has been recompiled to no longer use it. n/postfix-3.3.1-x86_64-2.txz: Rebuilt. Recompiled so that it quits whining about OpenSSL. Thanks to shastah. x/mesa-18.2.1-x86_64-1.txz: Upgraded. Compiled against llvm-7.0.0. x/xf86-video-vmware-13.3.0-x86_64-2.txz: Rebuilt. Recompiled against llvm-7.0.0. x/xterm-336-x86_64-1.txz: Upgraded. extra/pure-alsa-system/ffmpeg-3.4.4-x86_64-2_alsa.txz: Rebuilt. Don't try to link with Samba since the latest version is not compatible. extra/pure-alsa-system/gst-plugins-good-1.14.3-x86_64-1_alsa.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
2018-09-21 20:51:07 +02:00
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf ${PKGNAM}-$VERSION
echo "Extracting $CWD/${PKGNAM}-$VERSION.tar.?z..."
tar xf $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 {} \+
# Edit the instructions after installing a database to say that mariadbd should
# be started with /etc/rc.d/rc.mysqld, not a systemd service file:
cat $CWD/mariadb-install-db.no.systemd.instructions.diff | patch -p1 --verbose || exit 1
mkdir build
cd build
cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DFEATURE_SET="community" \
-DINSTALL_LAYOUT="RPM" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_LIBDIR="lib${LIBDIRSUFFIX}" \
-DINSTALL_SBINDIR=libexec \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_SQLBENCHDIR= \
-DINSTALL_MYSQLTESTDIR=mysql-test \
-DINSTALL_MANDIR=man \
-DINSTALL_PLUGINDIR="lib${LIBDIRSUFFIX}/mysql/plugin" \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLDATADIR="/var/lib/mysql" \
-DINSTALL_DOCREADMEDIR="doc/${PKGNAM}-$VERSION" \
-DINSTALL_DOCDIR="doc/${PKGNAM}-$VERSION" \
-DMYSQL_DATADIR="/var/lib/mysql" \
-DMYSQL_UNIX_ADDR="/var/run/mysql/mysql.sock" \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DENABLED_LOCAL_INFILE=ON \
-DWITH_EMBEDDED_SERVER=${EMBEDDED} \
-DWITH_LIBARCHIVE=ON \
-DWITH_READLINE=ON \
-DWITH_JEMALLOC=system \
-DWITH_ZLIB=system \
-DWITH_EXTERNAL_ZLIB=ON \
-DWITH_SSL=system \
-DCONC_WITH_SSL=ON \
-DUSE_ARIA_FOR_TMP_TABLES=ON \
-DAWS_SDK_EXTERNAL_PROJECT=OFF \
.. || exit 1
# doesn't currently compile
# -DWITH_ROCKSDB_JEMALLOC=ON \
# not building with libwrap. Do we still need tcp_wrappers support?
# -DWITH_LIBWRAP=ON \
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Sorry, I'm not going to put up with "/etc/systemd/" just for a config file
# that isn't really needed anyway:
rm -rf $PKG/etc/systemd
# Leave build directory:
cd ..
# Install innotop
install -m755 debian/additions/innotop/innotop $PKG/usr/bin/
install -m644 debian/additions/innotop/innotop.1 $PKG/usr/man/man1/
# Install mariadb-report
install -m755 debian/additions/mariadb-report $PKG/usr/bin/
install -m644 debian/additions/mariadb-report.1 $PKG/usr/man/man1/
if [ "$KEEPSTATIC" = "NO" ]; then
# Remove large static libraries:
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libmariadbclient.a
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libmariadbd.a
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libmysqlclient.a
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libmysqlclient_r.a
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libmysqld.a
Mon Feb 21 20:21:38 UTC 2022 a/aaa_glibc-solibs-2.35-x86_64-1.txz: Upgraded. a/kernel-firmware-20220218_c53073d-noarch-1.txz: Upgraded. ap/flac-1.3.4-x86_64-1.txz: Upgraded. This update fixes overflow issues with encoding and decoding. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0499 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-0561 (* Security fix *) ap/ksh93-1.0_20220219_bc6c5dbd-x86_64-1.txz: Upgraded. ap/mariadb-10.6.7-x86_64-2.txz: Rebuilt. Removed dangling symlink. ap/vim-8.2.4428-x86_64-1.txz: Upgraded. Patched ctags for glibc-2.35. Thanks to nobodino. d/autoconf-2.71-noarch-1.txz: Upgraded. d/automake-1.16.5-noarch-1.txz: Upgraded. d/binutils-2.38-x86_64-2.txz: Rebuilt. Fixed the SlackBuild to not run autoconf in the libiberty and intl subdirectories. It doesn't work with the latest autoconf, and there doesn't seem to be any need for it anyway. d/cmake-3.22.2-x86_64-1.txz: Upgraded. d/meson-0.61.2-x86_64-1.txz: Upgraded. d/rcs-5.10.0-x86_64-4.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. d/scons-4.3.0-x86_64-1.txz: Upgraded. e/emacs-27.2-x86_64-2.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. kde/digikam-7.5.0-x86_64-2.txz: Rebuilt. Recompiled against jasper-3.0.2. kde/wacomtablet-20220124_dd28b27-x86_64-1.txz: Upgraded. l/LibRaw-0.20.2-x86_64-4.txz: Rebuilt. Recompiled against jasper-3.0.2. l/accountsservice-22.07.5-x86_64-1.txz: Upgraded. l/dconf-editor-3.38.3-x86_64-2.txz: Rebuilt. Fixed build errors with meson. l/expat-2.4.6-x86_64-1.txz: Upgraded. l/fuse-2.9.9-x86_64-4.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. l/gcr-3.40.0-x86_64-2.txz: Rebuilt. Fixed build errors with meson. l/gdk-pixbuf2-2.42.6-x86_64-2.txz: Rebuilt. Fixed meson options. l/gdk-pixbuf2-xlib-2.40.2-x86_64-4.txz: Rebuilt. Fixed meson options. l/gegl-0.4.34-x86_64-3.txz: Rebuilt. Recompiled against jasper-3.0.2. l/glade-3.38.2-x86_64-6.txz: Rebuilt. Fixed build errors with meson. Removed duplicated 'da' from help/LINGUAS. l/glibc-2.35-x86_64-1.txz: Upgraded. l/glibc-i18n-2.35-x86_64-1.txz: Upgraded. l/glibc-profile-2.35-x86_64-1.txz: Upgraded. l/gobject-introspection-1.71.0-x86_64-1.txz: Upgraded. This update was needed to solve failing tests with the new meson. l/gtk+2-2.24.33-x86_64-3.txz: Rebuilt. Changed build/host to $ARCH-slackware-linux-gnu. l/gtk4-4.4.1-x86_64-2.txz: Rebuilt. Fixed meson options. l/gvfs-1.48.1-x86_64-2.txz: Rebuilt. Fixed build errors with meson. l/imagemagick-7.1.0_26-x86_64-1.txz: Upgraded. l/jasper-3.0.2-x86_64-1.txz: Upgraded. Shared library .so-version bump. l/json-glib-1.6.6-x86_64-2.txz: Rebuilt. Fixed meson options. l/libsecret-0.20.5-x86_64-1.txz: Upgraded. l/netpbm-10.97.04-x86_64-1.txz: Upgraded. l/qt5-5.15.3_20211130_014c375b-x86_64-3.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. Recompiled against jasper-3.0.2. l/shared-mime-info-2.1-x86_64-4.txz: Rebuilt. Fixed build errors with meson. n/gpgme-1.17.0-x86_64-1.txz: Upgraded. n/ntp-4.2.8p15-x86_64-9.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. x/libinput-1.19.3-x86_64-2.txz: Rebuilt. Recompiled against libwacom-2.1.0. x/libva-2.14.0-x86_64-1.txz: Upgraded. x/libva-utils-2.14.0-x86_64-1.txz: Upgraded. x/libwacom-2.1.0-x86_64-1.txz: Upgraded. Shared library .so-version bump. x/motif-2.3.8-x86_64-6.txz: Rebuilt. Fixed build with LEXLIB="-lfl". x/vulkan-sdk-1.2.176.1-x86_64-3.txz: Rebuilt. Patched for glibc-2.35. Thanks to nobodino. x/xf86-input-wacom-1.0.0-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.24.0-x86_64-3.txz: Rebuilt. Fixed build errors with meson. xap/vim-gvim-8.2.4428-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. usb-and-pxe-installers/usbboot.img: Rebuilt.
2022-02-21 21:21:38 +01:00
# Remove any resulting dangling symlinks:
( cd $PKG ; find . -xtype l | xargs rm )
fi
if [ "$KEEPTESTS" = "NO" ]; then
# Do not include the test suite:
rm -rf $PKG/usr/mysql-test
fi
Sat Feb 15 22:57:25 UTC 2020 a/libcgroup-0.41-x86_64-6.txz: Rebuilt. ap/mariadb-10.4.12-x86_64-2.txz: Rebuilt. d/Cython-0.29.15-x86_64-1.txz: Upgraded. d/cmake-3.16.4-x86_64-2.txz: Rebuilt. Recompiled against qt5-5.13.2. d/doxygen-1.8.17-x86_64-2.txz: Rebuilt. Recompiled against qt5-5.13.2. l/ConsoleKit2-1.2.1-x86_64-3.txz: Rebuilt. l/gnome-keyring-3.34.0-x86_64-2.txz: Rebuilt. l/imagemagick-7.0.9_23-x86_64-1.txz: Upgraded. l/polkit-0.116-x86_64-2.txz: Rebuilt. l/python-future-0.18.2-x86_64-1.txz: Added. This is needed by fetchmailconf and will probably see additional use as projects jump off of the sinking Python 2 ship. l/v4l-utils-1.18.0-x86_64-2.txz: Rebuilt. Recompiled against qt5-5.13.2. n/cifs-utils-6.10-x86_64-3.txz: Rebuilt. n/fetchmail-6.4.2-x86_64-1.txz: Upgraded. n/pinentry-1.1.0-x86_64-3.txz: Rebuilt. Recompiled against qt5-5.13.2. n/samba-4.11.6-x86_64-2.txz: Rebuilt. n/wpa_supplicant-2.9-x86_64-2.txz: Rebuilt. Recompiled against qt5-5.13.2. xap/xpdf-4.02-x86_64-3.txz: Rebuilt. Recompiled against qt5-5.13.2. testing/packages/PAM/ConsoleKit2-1.2.1-x86_64-3_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. Remove .la files in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/cifs-utils-6.10-x86_64-3_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/gnome-keyring-3.34.0-x86_64-2_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. Remove .la files in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/libcgroup-0.41-x86_64-6_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. Remove .la files in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/libpwquality-1.4.2-x86_64-2_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. Remove .la files in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/mariadb-10.4.12-x86_64-2_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security. testing/packages/PAM/pam-1.3.1-x86_64-2_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security to support multilib. Thanks to GazL. testing/packages/PAM/polkit-0.116-x86_64-2_pam.txz: Rebuilt. Rebuilt using --with-pam-module-dir=/lib${LIBDIRSUFFIX}/security. testing/packages/PAM/samba-4.11.6-x86_64-2_pam.txz: Rebuilt. Put the pam security modules in /lib${LIBDIRSUFFIX}/security.
2020-02-15 23:57:25 +01:00
# Locate PAM module(s) correctly:
if [ -d $PKG/lib/security ]; then
if [ ! "lib" = "lib${LIBDIRSUFFIX}" ]; then
mkdir -p $PKG/lib${LIBDIRSUFFIX}
mv $PKG/lib/security $PKG/lib${LIBDIRSUFFIX}/security
rmdir $PKG/lib 2> /dev/null
fi
fi
# The ./configure option to omit this has gone away, so we'll omit it
# the old-fashioned way. It's all in the source tarball if you need it.
rm -rf $PKG/usr/sql-bench
# This is the directory where databases are stored
mkdir -p $PKG/var/lib/mysql
Tue Nov 8 22:21:43 UTC 2022 a/bash-5.2.009-x86_64-1.txz: Upgraded. a/glibc-zoneinfo-2022f-noarch-1.txz: Upgraded. a/sed-4.9-x86_64-1.txz: Upgraded. ap/mariadb-10.6.11-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://mariadb.com/kb/en/mariadb-10-6-11-release-notes d/ccache-4.7.3-x86_64-1.txz: Upgraded. d/meson-0.64.0-x86_64-1.txz: Upgraded. d/patchelf-0.17.0-x86_64-1.txz: Upgraded. kde/bluedevil-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-grub-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-gtk-5.26.3-x86_64-1.txz: Upgraded. kde/drkonqi-5.26.3-x86_64-1.txz: Upgraded. kde/kactivitymanagerd-5.26.3-x86_64-1.txz: Upgraded. kde/kde-cli-tools-5.26.3-x86_64-1.txz: Upgraded. kde/kde-gtk-config-5.26.3-x86_64-1.txz: Upgraded. kde/kdecoration-5.26.3-x86_64-1.txz: Upgraded. kde/kdeplasma-addons-5.26.3-x86_64-1.txz: Upgraded. kde/kgamma5-5.26.3-x86_64-1.txz: Upgraded. kde/khotkeys-5.26.3-x86_64-1.txz: Upgraded. kde/kinfocenter-5.26.3-x86_64-1.txz: Upgraded. kde/kmenuedit-5.26.3-x86_64-1.txz: Upgraded. kde/kpipewire-5.26.3-x86_64-1.txz: Upgraded. kde/kscreen-5.26.3-x86_64-1.txz: Upgraded. kde/kscreenlocker-5.26.3-x86_64-1.txz: Upgraded. kde/ksshaskpass-5.26.3-x86_64-1.txz: Upgraded. kde/ksystemstats-5.26.3-x86_64-1.txz: Upgraded. kde/kwallet-pam-5.26.3-x86_64-1.txz: Upgraded. kde/kwayland-integration-5.26.3-x86_64-1.txz: Upgraded. kde/kwin-5.26.3-x86_64-1.txz: Upgraded. kde/kwrited-5.26.3-x86_64-1.txz: Upgraded. kde/layer-shell-qt-5.26.3-x86_64-1.txz: Upgraded. kde/libkscreen-5.26.3-x86_64-1.txz: Upgraded. kde/libksysguard-5.26.3-x86_64-1.txz: Upgraded. kde/milou-5.26.3-x86_64-1.txz: Upgraded. kde/oxygen-5.26.3-x86_64-1.txz: Upgraded. kde/oxygen-sounds-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-browser-integration-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-desktop-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-disks-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-firewall-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-integration-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-nm-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-pa-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-sdk-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-systemmonitor-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-vault-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-workspace-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-workspace-wallpapers-5.26.3-x86_64-1.txz: Upgraded. kde/polkit-kde-agent-1-5.26.3-x86_64-1.txz: Upgraded. kde/powerdevil-5.26.3-x86_64-1.txz: Upgraded. kde/qqc2-breeze-style-5.26.3-x86_64-1.txz: Upgraded. kde/sddm-kcm-5.26.3-x86_64-1.txz: Upgraded. kde/systemsettings-5.26.3-x86_64-1.txz: Upgraded. kde/xdg-desktop-portal-kde-5.26.3-x86_64-1.txz: Upgraded. l/Imath-3.1.6-x86_64-1.txz: Upgraded. l/imagemagick-7.1.0_52-x86_64-1.txz: Upgraded. l/libspectre-0.2.11-x86_64-1.txz: Upgraded. n/mutt-2.2.8-x86_64-1.txz: Upgraded. x/mesa-22.2.3-x86_64-1.txz: Upgraded. x/wayland-protocols-1.28-noarch-1.txz: Upgraded.
2022-11-08 23:21:43 +01:00
chown mysql:mysql $PKG/var/lib/mysql
chmod 0750 $PKG/var/lib/mysql
# This is where the socket is stored
mkdir -p $PKG/var/run/mysql
Tue Nov 8 22:21:43 UTC 2022 a/bash-5.2.009-x86_64-1.txz: Upgraded. a/glibc-zoneinfo-2022f-noarch-1.txz: Upgraded. a/sed-4.9-x86_64-1.txz: Upgraded. ap/mariadb-10.6.11-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://mariadb.com/kb/en/mariadb-10-6-11-release-notes d/ccache-4.7.3-x86_64-1.txz: Upgraded. d/meson-0.64.0-x86_64-1.txz: Upgraded. d/patchelf-0.17.0-x86_64-1.txz: Upgraded. kde/bluedevil-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-grub-5.26.3-x86_64-1.txz: Upgraded. kde/breeze-gtk-5.26.3-x86_64-1.txz: Upgraded. kde/drkonqi-5.26.3-x86_64-1.txz: Upgraded. kde/kactivitymanagerd-5.26.3-x86_64-1.txz: Upgraded. kde/kde-cli-tools-5.26.3-x86_64-1.txz: Upgraded. kde/kde-gtk-config-5.26.3-x86_64-1.txz: Upgraded. kde/kdecoration-5.26.3-x86_64-1.txz: Upgraded. kde/kdeplasma-addons-5.26.3-x86_64-1.txz: Upgraded. kde/kgamma5-5.26.3-x86_64-1.txz: Upgraded. kde/khotkeys-5.26.3-x86_64-1.txz: Upgraded. kde/kinfocenter-5.26.3-x86_64-1.txz: Upgraded. kde/kmenuedit-5.26.3-x86_64-1.txz: Upgraded. kde/kpipewire-5.26.3-x86_64-1.txz: Upgraded. kde/kscreen-5.26.3-x86_64-1.txz: Upgraded. kde/kscreenlocker-5.26.3-x86_64-1.txz: Upgraded. kde/ksshaskpass-5.26.3-x86_64-1.txz: Upgraded. kde/ksystemstats-5.26.3-x86_64-1.txz: Upgraded. kde/kwallet-pam-5.26.3-x86_64-1.txz: Upgraded. kde/kwayland-integration-5.26.3-x86_64-1.txz: Upgraded. kde/kwin-5.26.3-x86_64-1.txz: Upgraded. kde/kwrited-5.26.3-x86_64-1.txz: Upgraded. kde/layer-shell-qt-5.26.3-x86_64-1.txz: Upgraded. kde/libkscreen-5.26.3-x86_64-1.txz: Upgraded. kde/libksysguard-5.26.3-x86_64-1.txz: Upgraded. kde/milou-5.26.3-x86_64-1.txz: Upgraded. kde/oxygen-5.26.3-x86_64-1.txz: Upgraded. kde/oxygen-sounds-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-browser-integration-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-desktop-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-disks-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-firewall-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-integration-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-nm-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-pa-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-sdk-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-systemmonitor-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-vault-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-workspace-5.26.3-x86_64-1.txz: Upgraded. kde/plasma-workspace-wallpapers-5.26.3-x86_64-1.txz: Upgraded. kde/polkit-kde-agent-1-5.26.3-x86_64-1.txz: Upgraded. kde/powerdevil-5.26.3-x86_64-1.txz: Upgraded. kde/qqc2-breeze-style-5.26.3-x86_64-1.txz: Upgraded. kde/sddm-kcm-5.26.3-x86_64-1.txz: Upgraded. kde/systemsettings-5.26.3-x86_64-1.txz: Upgraded. kde/xdg-desktop-portal-kde-5.26.3-x86_64-1.txz: Upgraded. l/Imath-3.1.6-x86_64-1.txz: Upgraded. l/imagemagick-7.1.0_52-x86_64-1.txz: Upgraded. l/libspectre-0.2.11-x86_64-1.txz: Upgraded. n/mutt-2.2.8-x86_64-1.txz: Upgraded. x/mesa-22.2.3-x86_64-1.txz: Upgraded. x/wayland-protocols-1.28-noarch-1.txz: Upgraded.
2022-11-08 23:21:43 +01:00
chown mysql:mysql $PKG/var/run/mysql
chmod 0755 $PKG/var/run/mysql
# Add init script:
mkdir -p $PKG/etc/rc.d
# This is installed chmod 644 so that the server does not run by default.
cat $CWD/rc.mysqld > $PKG/etc/rc.d/rc.mysqld.new
touch -r $CWD/rc.mysqld $PKG/etc/rc.d/rc.mysqld.new
rm -rf $PKG/etc/init.d $PKG/usr/libexec/rcmysql
# Install mysqlaccess.conf
install -m 644 scripts/mysqlaccess.conf $PKG/etc/mysqlaccess.conf.new
# Mark config files under /etc as .new
mv $PKG/etc/my.cnf $PKG/etc/my.cnf.new
mv $PKG/etc/security/user_map.conf $PKG/etc/security/user_map.conf.new
mv $PKG/etc/logrotate.d/mariadb $PKG/etc/logrotate.d/mariadb.new
for i in client hashicorp_key_management mysql-clients s3 server spider ; do
mv $PKG/etc/my.cnf.d/$i.cnf $PKG/etc/my.cnf.d/$i.cnf.new
done
cp -a $CWD/skip-ssl.cnf $PKG/etc/my.cnf.d/skip-ssl.cnf.new
chown root:root $PKG/etc/my.cnf.d/skip-ssl.cnf.new
chmod 644 $PKG/etc/my.cnf.d/skip-ssl.cnf.new
# Install default options configuration file:
mkdir -p $PKG/etc/default
cp -a $CWD/mariadb.default $PKG/etc/default/mariadb.new
chown root:root $PKG/etc/default/mariadb.new
chmod 644 $PKG/etc/default/mariadb.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \+
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/install
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-${BUILD}${TAG}.txz