aboutsummaryrefslogtreecommitdiff
path: root/misc/klibc
diff options
context:
space:
mode:
Diffstat (limited to 'misc/klibc')
-rw-r--r--misc/klibc/klibc.SlackBuild17
-rw-r--r--misc/klibc/klibc.info10
2 files changed, 14 insertions, 13 deletions
diff --git a/misc/klibc/klibc.SlackBuild b/misc/klibc/klibc.SlackBuild
index e374d1d35ddf..1f99c3335379 100644
--- a/misc/klibc/klibc.SlackBuild
+++ b/misc/klibc/klibc.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for <appname>
+# Slackware build script for klibc
# Copyright 2014 Matt Dinslage (daedra1980@gmail.com), Springfield, MO, USA
# All rights reserved.
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=klibc
-VERSION=${VERSION:-2.0.3}
+VERSION=${VERSION:-2.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,14 +62,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ $ARCH = "x86_64" ]; then
sed -i 's,$(prefix)/lib,$(prefix)/lib64,g' Makefile
@@ -79,14 +79,15 @@ fi
# Thanks to the gentoo team for the patch.
patch -p1 < $CWD/klibc-2.0.3-kernel-uapi.patch
-KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS=$SLKCFLAGS make
+KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS=$SLKCFLAGS make
KLIBCKERNELSRC=/lib/modules/$KERNEL/source make install INSTALLROOT=$PKG
-
-gzip -9 $PKG/usr/man/man?/*.?
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+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/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/misc/klibc/klibc.info b/misc/klibc/klibc.info
index d192b3ed42fa..7f2f0969d53e 100644
--- a/misc/klibc/klibc.info
+++ b/misc/klibc/klibc.info
@@ -1,10 +1,10 @@
PRGNAM="klibc"
-VERSION="2.0.3"
+VERSION="2.0.4"
HOMEPAGE="http://www.kernel.org"
-DOWNLOAD="http://www.kernel.org/pub/linux/libs/klibc/2.0/klibc-2.0.3.tar.xz"
-MD5SUM="5577b088509f8a2685206bcabbdc169b"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="http://www.kernel.org/pub/linux/libs/klibc/2.0/klibc-2.0.4.tar.xz"
+MD5SUM_x86_64="7417eeabb2e7954f58a34fba87646ddc"
REQUIRES=""
MAINTAINER="M.Dinslage"
EMAIL="daedra1980{at}gmail{dot}com"