diff options
author | Eric Hameleers <alien@slackware.com> | 2013-03-22 16:47:17 -0700 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-03-22 16:47:17 -0700 |
commit | 69dd99f961988fa15da8d7f0d63b62f3385419c3 (patch) | |
tree | d57eb3e85e1d08e7815787de26946ee42c398b66 /source.local/a/coreutils | |
download | alienarm-69dd99f961988fa15da8d7f0d63b62f3385419c3.tar.gz alienarm-69dd99f961988fa15da8d7f0d63b62f3385419c3.tar.xz |
Initial commit of a Slackware cross-arch bootstrap framework.
Diffstat (limited to 'source.local/a/coreutils')
-rw-r--r-- | source.local/a/coreutils/DIR_COLORS.gz | bin | 0 -> 1854 bytes | |||
-rw-r--r-- | source.local/a/coreutils/coreutils-8.15.tar.xz.sig | 17 | ||||
-rw-r--r-- | source.local/a/coreutils/coreutils-dircolors.csh.gz | bin | 0 -> 778 bytes | |||
-rw-r--r-- | source.local/a/coreutils/coreutils-dircolors.sh.gz | bin | 0 -> 931 bytes | |||
-rwxr-xr-x | source.local/a/coreutils/coreutils.SlackBuild | 213 | ||||
-rw-r--r-- | source.local/a/coreutils/coreutils.uname.diff.gz | bin | 0 -> 1610 bytes | |||
-rw-r--r-- | source.local/a/coreutils/doinst.sh.gz | bin | 0 -> 270 bytes | |||
-rw-r--r-- | source.local/a/coreutils/slack-desc | 19 |
8 files changed, 249 insertions, 0 deletions
diff --git a/source.local/a/coreutils/DIR_COLORS.gz b/source.local/a/coreutils/DIR_COLORS.gz Binary files differnew file mode 100644 index 0000000..f2e4811 --- /dev/null +++ b/source.local/a/coreutils/DIR_COLORS.gz diff --git a/source.local/a/coreutils/coreutils-8.15.tar.xz.sig b/source.local/a/coreutils/coreutils-8.15.tar.xz.sig new file mode 100644 index 0000000..f019a30 --- /dev/null +++ b/source.local/a/coreutils/coreutils-8.15.tar.xz.sig @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iQIcBAABCAAGBQJPBzBcAAoJEH/Z/MsAC+7uGakP/imRzsO4NBqt0TKCiEY9mEKF +DdLmg86yj9XjySySa+rQwtNZCv0fi3LfYktiozXtP7kr/S8bGTHR3zD3uW6I6zU1 +fmV7zndut6uC1KR2XlQLLxDwYQAbCaV0XHV4Ml+Qc+aFoQPgepwqD4svyTnZ+pXV +tN/RZXVPVlr0EOvolgwMnigVkmrwp1uklr9MsRclp2AZZttjWKMq3tajtVXg0T6m +KdCdVkUx5Dcfvaxy9405WXx2VXTzP95CT57a//aNfHtSe36PzvhKc/S6Hl7Wp3vQ +4+5Jhm97N9wppmndHBtnJH9Ev2xQgHr1jnbQjGFbygeUSH4YX4QAcSkBuWFSV+jw +A9257ON3/khngEKOgM9D/PfosHaL040w7kyTDOCUkFsIdZSwQ6bdYH6Z6sasbFPj +zqzz8gPa4rOHxLQHMFMDEbq5h5FxHg/qYHROuQ33X0SX+mSykOZ2/oDVAtt3APIU +CKmonLM5TD0/84cWwW9Sy1oJgIDRUIBnpNDk4Ne12LUCrbdEvFhe4P1s3+Gq/EM9 +rTyjA+GcirEbR2HWO8+CVe7df+IJ0oyX1PrHi3xFgnLZnLisdN9SHyJc+vBHH0qi +NKhWRF7fmvHR6Okss91sqoRwl9NYX8TOe+sV6wgxm0V1nzjP9h4Yhq2r80MMkxoB +EMPcigpqXK64LJvbfeCQ +=bS2F +-----END PGP SIGNATURE----- diff --git a/source.local/a/coreutils/coreutils-dircolors.csh.gz b/source.local/a/coreutils/coreutils-dircolors.csh.gz Binary files differnew file mode 100644 index 0000000..6e1f335 --- /dev/null +++ b/source.local/a/coreutils/coreutils-dircolors.csh.gz diff --git a/source.local/a/coreutils/coreutils-dircolors.sh.gz b/source.local/a/coreutils/coreutils-dircolors.sh.gz Binary files differnew file mode 100644 index 0000000..368705d --- /dev/null +++ b/source.local/a/coreutils/coreutils-dircolors.sh.gz diff --git a/source.local/a/coreutils/coreutils.SlackBuild b/source.local/a/coreutils/coreutils.SlackBuild new file mode 100755 index 0000000..46c54b4 --- /dev/null +++ b/source.local/a/coreutils/coreutils.SlackBuild @@ -0,0 +1,213 @@ +#!/bin/sh + +# Copyright 2005-2010 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. + +# Modified 2011 by Eric Hameleers <alien at slackware.com> for ARM port. + + +PKGNAM=coreutils +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | cut -d - -f 2 | rev | cut -f 3- -d . | rev)} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:--j6} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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="" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP + +rm -rf $PKGNAM-$VERSION +if [ -r $CWD/$PKGNAM-$VERSION.tar.gz ]; then + tar xf $CWD/$PKGNAM-$VERSION.tar.gz || exit 1 +elif [ -r $CWD/$PKGNAM-$VERSION.tar.bz2 ]; then + tar xf $CWD/$PKGNAM-$VERSION.tar.bz2 || exit 1 +elif [ -r $CWD/$PKGNAM-$VERSION.tar.xz ]; then + tar xf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1 +elif [ -r $CWD/$PKGNAM-$VERSION.tar.lzma ]; then + tar xf $CWD/$PKGNAM-$VERSION.tar.lzma || exit 1 +else + exit 1 +fi + +cd $PKGNAM-$VERSION +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 {} \; + +# Patch uname to correctly display CPU information: +zcat $CWD/$PKGNAM.uname.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 + +# End of preparations +if echo "$*" | grep -qw -- --prep ; then + exit 0 +fi + +# Compilation with glibc version later than 2.3.2 needs the environment +# variable DEFAULT_POSIX2_VERSION set to 199209. +# Without the next line, the coreutils will start complaining about 'obsolete' +# command switches, like "tail -20" will be considered obsolete. +# This behaviour breaks many other packages... the 'obsolete' parameters are +# too commonly used to disregard them. Better to stick with the older more +# widely accepted standards until things begin to demand the new way. + +CFLAGS="$SLKCFLAGS" \ +DEFAULT_POSIX2_VERSION=199209 \ +./configure \ + --prefix=/usr \ + --bindir=/bin \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --sysconfdir=/etc \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --without-gmp \ + --build=$TARGET + +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +# We have had the mktemp from debianutils included with Slackware for quite a +# long time, and certain options are changed here, like changing -u to mean a +# dry-run rather than to unlink the tempfile when finished. Since this could +# break existing scripts, unless someone can tell me a good reason why we +# should start using a new version of mktemp, we will continue to use the +# one we've been using. If the new one starts to become expected, let me know. +# We'll figure out what the best options are and go from there. +mv $PKG/bin/mktemp $PKG/bin/mktemp-gnu +mv $PKG/usr/man/man1/mktemp.1 $PKG/usr/man/man1/mktemp-gnu.1 + +# This seems wrong, and it stomps on files in the ksh93 package, though I'm +# not sure the placement of those is correct, either... The ksh93 package +# installs them as flat text files, while coreutils installs empty directories +# Oh well, this is what we've done for years, and nobody's complained... +rm -rf $PKG/usr/share/locale/*/LC_TIME + +# These are important enough that they should probably all go into /bin at this +# point... Having some of them unavailable when /usr isn't mounted is just a +# source of unending bug reports for various third party applications. +# Time to end those reports. :-) +mkdir -p $PKG/bin $PKG/usr/bin +( cd $PKG/usr/bin + for file in ../../bin/* ; do + ln --verbose -sf $file . + done +) + +# Add some defaults, although a very slack-like set of default options are built +# into /bin/ls now anyway: +mkdir -p $PKG/etc +zcat $CWD/DIR_COLORS.gz > $PKG/etc/DIR_COLORS.new + +# Since dircolors no longer provides any default aliases these scripts +# will be needed for ls to act as expected: +mkdir -p $PKG/etc/profile.d +zcat $CWD/coreutils-dircolors.csh.gz > $PKG/etc/profile.d/coreutils-dircolors.csh +zcat $CWD/coreutils-dircolors.sh.gz > $PKG/etc/profile.d/coreutils-dircolors.sh +chmod 755 $PKG/etc/profile.d/* + +# Remove things that are provided by other Slackware packages: +for dupe in hostname kill su uptime ; do + rm -f $PKG/bin/${dupe} $PKG/usr/bin/${dupe} \ + $PKG/usr/sbin/${dupe} $PKG/usr/man/man?/${dupe}.* ; +done + +# Add ginstall links (there's still a lot of stuff that needs this to compile): +( cd $PKG/bin ; ln -sf install ginstall ) +( cd $PKG/usr/bin ; ln -sf ../../bin/ginstall ginstall ) +( cd $PKG/usr/man/man1 ; ln -sf install.1 ginstall.1 ) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/* + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING* NEWS README* THANKS THANKS-to-translators 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 + +mkdir -p $PKG/install +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh +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 + diff --git a/source.local/a/coreutils/coreutils.uname.diff.gz b/source.local/a/coreutils/coreutils.uname.diff.gz Binary files differnew file mode 100644 index 0000000..d49b63b --- /dev/null +++ b/source.local/a/coreutils/coreutils.uname.diff.gz diff --git a/source.local/a/coreutils/doinst.sh.gz b/source.local/a/coreutils/doinst.sh.gz Binary files differnew file mode 100644 index 0000000..a09afa2 --- /dev/null +++ b/source.local/a/coreutils/doinst.sh.gz diff --git a/source.local/a/coreutils/slack-desc b/source.local/a/coreutils/slack-desc new file mode 100644 index 0000000..57e562d --- /dev/null +++ b/source.local/a/coreutils/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +coreutils: coreutils (core GNU utilities) +coreutils: +coreutils: These are the GNU core utilities, the basic command line programs +coreutils: such as 'mkdir', 'ls', and 'rm' that are needed for the system to +coreutils: run. This package is the union of the GNU fileutils, sh-utils, and +coreutils: textutils packages. Most of these programs have significant +coreutils: advantages over their Unix counterparts, such as greater speed, +coreutils: additional options, and fewer arbitrary limits. +coreutils: +coreutils: +coreutils: |