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 \
51 gl_cv_func_mknod_works=yes
62 make_install_targets += install-man
65 mkdir -pv %{BUILDROOT}%{sbindir}
66 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
67 mv -v %{BUILDROOT}/usr/bin/runuser %{BUILDROOT}%{sbindir}
69 # su (set right capabilities)
70 chmod -v u-s %{BUILDROOT}%{bindir}/su
71 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}%{bindir}/su
73 # Dump /etc/DIR_COLORS
74 mkdir -pv %{BUILDROOT}%{sysconfdir}
75 for i in DIR_COLORS DIR_COLORS.256color DIR_COLORS.lightbgcolor; do
76 install -m 644 %{DIR_SOURCE}/${i} %{BUILDROOT}%{sysconfdir}
80 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
81 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
130 package %{name}-debuginfo