### this is not a script but an step-by-step howto exit 1 ### download wget http://ftp.gnu.org/pub/gnu/coreutils/coreutils-5.2.1.tar.gz wget http://www.linuxfromscratch.org/patches/lfs/6.0/coreutils-5.2.1-suppress_uptime_kill_su-1.patch wget http://eisler.eisfair.net/~max/patches/coreutils-5.2.1-suppress_uptime_kill_su_man_doc.eisfair.patch wget http://www.linuxfromscratch.org/patches/lfs/6.0/coreutils-5.2.1-uname-2.patch wget -O coreutils-5.2.1_aclpatch.tar.gz http://acl.bestbits.at/current/diff/coreutils-5.2.1.tar.gz ### extract tar xzf coreutils-5.2.1.tar.gz tar xzf coreutils-5.2.1_aclpatch.tar.gz cd coreutils-5.2.1 ### patch patch -p1 -i coreutils-acl.diff patch -p1 -i coreutils-acl+posix.diff patch -p1 -i coreutils-xattr.diff patch -p1 -i coreutils-changelog.diff patch -p1 -i coreutils-i18n.patch cd lib patch -i ../getdate.patch cd .. patch -p0 -i coreutils-5.2.1.dif patch -p1 -i coreutils-5.0-pam-env.patch patch -p1 -i coreutils-i18n-sort.patch patch -p1 -i coreutils-sysinfo.diff patch -p1 -i coreutils-selinux.diff patch -p0 -i tail-test.diff patch -p0 -i du-hardlinks.patch patch -p0 -i stty-iutf8.patch patch -p0 -i chown-symlink.patch patch -p0 -i free-test.patch patch -p0 -i ismbblank.patch patch -p1 -i invalid-ids.diff patch -Np1 -i ../coreutils-5.2.1-uname-2.patch rm -f man/hostid.x man/hostname.x ### build mv m4/inttypes.m4 m4/inttypes-eggert.m4 autoreconf --force --install #patch --dry-run --verbose -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su.patch patch -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su_man_doc.eisfair.patch Oder als Alternative für alle einzelnen Patches oben mit dem Patch coreutils-5.2.1-all.patch aus dem svn gegen ein nacktes coreutils-5.2.1. ./configure CFLAGS="-DUSE_PAM -march=i486 -Wall" \ DEFAULT_POSIX2_VERSION=199209 \ --prefix=/usr \ --without-included-regex # ./configure CFLAGS="-DUSE_PAM $RPM_OPT_FLAGS -Wall" \ # DEFAULT_POSIX2_VERSION=199209 \ # --prefix=%{_prefix} --mandir=%{_mandir} \ # --infodir=%{_infodir} --without-included-regex \ # --enable-selinux make PAMLIBS="-ldl -lpam" ### install make DESTDIR=/tmp/coreutils install cd /tmp/coreutils/usr strip -R .note -R .comment bin/* cd share/locale rm -vr */LC_TIME cd /tmp/coreutils mkdir bin cd bin mv ../usr/bin/ls . mv ../usr/bin/cat . mv ../usr/bin/chgrp . mv ../usr/bin/chmod . mv ../usr/bin/chown . mv ../usr/bin/cp . mv ../usr/bin/date . mv ../usr/bin/dd . mv ../usr/bin/df . mv ../usr/bin/dir . mv ../usr/bin/echo . mv ../usr/bin/false . mv ../usr/bin/ln . mv ../usr/bin/mkdir . mv ../usr/bin/mknod . mv ../usr/bin/mv . mv ../usr/bin/pwd . mv ../usr/bin/rm . mv ../usr/bin/rmdir . mv ../usr/bin/sleep . mv ../usr/bin/sort . mv ../usr/bin/stty . mv ../usr/bin/sync . mv ../usr/bin/touch . mv ../usr/bin/true . mv ../usr/bin/uname . mv ../usr/bin/vdir .