summaryrefslogtreecommitdiffstats
path: root/source/a
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-03-10 02:30:54 +0000
committer Eric Hameleers <alien@slackware.com>2022-03-10 06:59:43 +0100
commit253d995a9a22aeccf02a92a209a8249a47b818a3 (patch)
tree6f4877b5d9b81572a0a0d3a9c7933414f68cbdb8 /source/a
parent0c0ed7e69d8c3c032c527d610497e0155dddbfdc (diff)
downloadcurrent-253d995a9a22aeccf02a92a209a8249a47b818a3.tar.gz
current-253d995a9a22aeccf02a92a209a8249a47b818a3.tar.xz
Thu Mar 10 02:30:54 UTC 202220220310023054
a/logrotate-3.19.0-x86_64-1.txz: Upgraded. a/sysfsutils-2.1.1-x86_64-1.txz: Upgraded. l/adwaita-icon-theme-41.0-noarch-1.txz: Upgraded. l/gsettings-desktop-schemas-41.0-x86_64-1.txz: Upgraded. n/NetworkManager-1.36.2-x86_64-1.txz: Upgraded. n/ca-certificates-20220309-noarch-1.txz: Upgraded. This update provides the latest CA certificates to check for the authenticity of SSL connections. n/dhcp-4.4.3-x86_64-1.txz: Upgraded. xap/mozilla-thunderbird-91.7.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.7.0/releasenotes/ https://www.mozilla.org/en-US/security/advisories/mfsa2022-12/ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26383 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26384 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26387 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26381 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26386 (* Security fix *)
Diffstat (limited to 'source/a')
-rwxr-xr-xsource/a/sysfsutils/sysfsutils.SlackBuild32
-rw-r--r--source/a/sysfsutils/sysfsutils.url2
2 files changed, 24 insertions, 10 deletions
diff --git a/source/a/sysfsutils/sysfsutils.SlackBuild b/source/a/sysfsutils/sysfsutils.SlackBuild
index a9ee96647..c300e14c6 100755
--- a/source/a/sysfsutils/sysfsutils.SlackBuild
+++ b/source/a/sysfsutils/sysfsutils.SlackBuild
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=sysfsutils
-VERSION=2.1.0
-BUILD=${BUILD:-4}
+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
@@ -57,7 +57,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf sysfsutils-$VERSION
-tar xvf $CWD/sysfsutils-$VERSION.tar.bz2 || exit 1
+tar xvf $CWD/sysfsutils-$VERSION.tar.?z || exit 1
cd sysfsutils-$VERSION || exit 1
chown -R root:root .
find . \
@@ -66,28 +66,41 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+if [ ! -r configure ]; then
+ if [ -x ./autogen ]; then
+ NOCONFIGURE=1 ./autogen
+ else
+ autoreconf -vif
+ fi
+fi
+
./configure \
--prefix=/usr \
--libdir=/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
--enable-static=no \
--build=$ARCH-slackware-linux || exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
-# Unless things start whining later that this libtool junk is
-# required for some reason, out it goes. Especially in /lib,
-# where probably nothing would find it anyway.
-rm -f $PKG/lib${LIBDIRSUFFIX}/*.la
+# Don't ship .la files:
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
# .so links should really go in /usr/lib:
rm $PKG/lib${LIBDIRSUFFIX}/*.so
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+
# sanity check
if [ ! -L $PKG/lib${LIBDIRSUFFIX}/libsysfs.so.2 ]; then
exit 1
fi
( cd $PKG/usr/lib${LIBDIRSUFFIX} ; ln -sf /lib${LIBDIRSUFFIX}/libsysfs.so.2 libsysfs.so )
+# pkgconfig directory should go in /usr/lib${LIBDIRSUFFIX}
+if [ -d $PKG/lib${LIBDIRSUFFIX}/pkgconfig -a ! -d $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig ]; then
+ mv $PKG/lib${LIBDIRSUFFIX}/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}
+fi
+
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
@@ -95,8 +108,10 @@ fi
mkdir -p $PKG/usr/doc/sysfsutils-$VERSION
cp -a \
- AUTHORS COPYING CREDITS NEWS README TODO \
+ AUTHORS* COPYING* CREDITS* NEWS* README* TODO* \
+ cmd/GPL* \
docs/* \
+ lib/LGPL* \
$PKG/usr/doc/sysfsutils-$VERSION
# Compress and/or relink manpages:
@@ -119,4 +134,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n $TMP/sysfsutils-$VERSION-$ARCH-$BUILD.txz
-
diff --git a/source/a/sysfsutils/sysfsutils.url b/source/a/sysfsutils/sysfsutils.url
index 0491bd2c5..363dc682d 100644
--- a/source/a/sysfsutils/sysfsutils.url
+++ b/source/a/sysfsutils/sysfsutils.url
@@ -1 +1 @@
-http://linux-diag.sourceforge.net/Sysfsutils.html
+https://github.com/linux-ras/sysfsutils