# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../coreutils/coreutils.conf # Copyright (C) 2004 - 2005 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- coreutils_premake() { # remove man/Makefile.maint as it tries to rebuild man pages echo -n "" > man/Makefile.maint } coreutils_postmake() { # make sure some stuff goes into /{s,}bin for x in cat chgrp chmod chown cp cut dd df head ln ls mkdir mknod mv \ rm rmdir sync sync date echo false pwd stty tail true uname \ sleep sort touch do for y in usr/bin usr/sbin ; do if [ -f $root/$y/$x ] ; then echo "Move: /$y/$x -> /bin/$x" cp $root/$y/$x $root/bin/$x.new mv $root/bin/$x.new $root/bin/$x rm -f $root/$y/$x fi done done rm -f $root/usr/bin/ginstall ln -s install $root/usr/bin/ginstall } # pkginstalled acl && var_append patchfiles " " $confdir/acl-xattr.diff hook_add premake 5 "coreutils_premake" hook_add postmake 5 "coreutils_postmake"