1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://www.gnu.org/software/coreutils/
13 summary = A set of basic GNU tools commonly used in shell scripts.
16 These are the GNU core utilities. This package is the combination of
17 the old GNU fileutils, sh-utils, and textutils packages.
20 source_dl = http://ftp.gnu.org/gnu/coreutils/
21 sources = %{thisapp}.tar.xz
41 configure_options += \
42 --libexecdir=%{libdir} \
47 --enable-install-program=arch,su \
48 --enable-no-install-program=hostname,kill,uptime
60 mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,usr/sbin}
61 mv -v %{BUILDROOT}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} %{BUILDROOT}/bin
62 mv -v %{BUILDROOT}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin
63 mv -v %{BUILDROOT}/usr/bin/{rmdir,stty,sync,touch,true,uname} %{BUILDROOT}/bin
64 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}/usr/sbin
65 mv -v %{BUILDROOT}/usr/bin/{head,sleep,nice} %{BUILDROOT}/bin
67 # Reinstall su in /bin
68 rm -rfv %{BUILDROOT}/usr/bin/su
69 install -m 4755 src/su %{BUILDROOT}/bin
71 # Dump /etc/DIR_COLORS
72 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
73 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
76 chmod u-s %{BUILDROOT}/bin/su
77 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su
86 package %{name}-debuginfo