]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - coreutils/coreutils.nm
coreutils: Update to 8.16.
[people/arne_f/ipfire-3.x.git] / coreutils / coreutils.nm
CommitLineData
166a6c21 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
166a6c21
MT
4###############################################################################
5
802ea3af 6name = coreutils
6987acf5 7version = 8.16
fa4603be 8release = 1
166a6c21 9
d0d49567 10groups = System/Base
802ea3af
MT
11url = http://www.gnu.org/software/coreutils/
12license = GPLv3+
13summary = A set of basic GNU tools commonly used in shell scripts.
166a6c21 14
802ea3af 15description
e7f6ab54 16 These are the GNU core utilities. This package is the combination of
166a6c21 17 the old GNU fileutils, sh-utils, and textutils packages.
802ea3af
MT
18end
19
20source_dl = http://ftp.gnu.org/gnu/coreutils/
21sources = %{thisapp}.tar.xz
166a6c21 22
802ea3af
MT
23build
24 requires
25 autoconf
26 automake
27 e2fsprogs-devel
28 gmp-devel
29 libacl-devel
30 libattr-devel
31 libcap-devel
32 libselinux-devel
33 ncurses-devel
fa4603be 34 pam-devel>=1.1.5
802ea3af 35 end
166a6c21 36
e7f6ab54
SS
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing
40
6987acf5
MT
41 export FORCE_UNSAFE_CONFIGURE=1
42
802ea3af 43 configure_options += \
8623a35a 44 --libexecdir=%{libdir} \
802ea3af
MT
45 --enable-pam \
46 --enable-selinux \
47 --enable-largefile \
e7f6ab54 48 --disable-rpath \
c5869e53 49 --enable-install-program=arch,su \
6987acf5
MT
50 --enable-no-install-program=hostname,kill,uptime \
51 --with-tty-group
166a6c21 52
802ea3af
MT
53 prepare_cmds
54 aclocal -I m4
55 autoconf --force
56 end
166a6c21 57
802ea3af
MT
58 test
59 make check
60 end
166a6c21 61
802ea3af
MT
62 install_cmds
63 mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,usr/sbin}
64 mv -v %{BUILDROOT}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} %{BUILDROOT}/bin
c5869e53 65 mv -v %{BUILDROOT}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin
802ea3af
MT
66 mv -v %{BUILDROOT}/usr/bin/{rmdir,stty,sync,touch,true,uname} %{BUILDROOT}/bin
67 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}/usr/sbin
68 mv -v %{BUILDROOT}/usr/bin/{head,sleep,nice} %{BUILDROOT}/bin
e7a5bed3 69
802ea3af
MT
70 # Reinstall su in /bin
71 rm -rfv %{BUILDROOT}/usr/bin/su
72 install -m 4755 src/su %{BUILDROOT}/bin
166a6c21 73
802ea3af
MT
74 # Dump /etc/DIR_COLORS
75 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
76 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
166a6c21 77
802ea3af
MT
78 # Capabilities
79 chmod u-s %{BUILDROOT}/bin/su
80 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su
81 end
82end
e35eb77b 83
802ea3af
MT
84packages
85 package %{name}
d0d49567
MT
86 groups += Base Build
87 end
1f9bc2f0
MT
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
802ea3af 92end