]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - coreutils/coreutils.nm
Add a -debuginfo for every package that is not noarch.
[people/amarx/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
f435b309
MT
7version = 8.14
8release = 1
166a6c21 9
802ea3af
MT
10groups = Base Build System/Base
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
34 pam-devel
35 end
166a6c21 36
e7f6ab54
SS
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing
40
802ea3af 41 configure_options += \
e7f6ab54 42 --libexecdir=/usr/lib \
802ea3af
MT
43 --enable-pam \
44 --enable-selinux \
45 --enable-largefile \
e7f6ab54 46 --disable-rpath \
c5869e53
MT
47 --enable-install-program=arch,su \
48 --enable-no-install-program=hostname,kill,uptime
166a6c21 49
802ea3af
MT
50 prepare_cmds
51 aclocal -I m4
52 autoconf --force
53 end
166a6c21 54
802ea3af
MT
55 test
56 make check
57 end
166a6c21 58
802ea3af
MT
59 install_cmds
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
c5869e53 62 mv -v %{BUILDROOT}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin
802ea3af
MT
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
e7a5bed3 66
802ea3af
MT
67 # Reinstall su in /bin
68 rm -rfv %{BUILDROOT}/usr/bin/su
69 install -m 4755 src/su %{BUILDROOT}/bin
166a6c21 70
802ea3af
MT
71 # Dump /etc/DIR_COLORS
72 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
73 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
166a6c21 74
802ea3af
MT
75 # Capabilities
76 chmod u-s %{BUILDROOT}/bin/su
77 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su
78 end
79end
e35eb77b 80
802ea3af
MT
81packages
82 package %{name}
1f9bc2f0
MT
83
84 package %{name}-debuginfo
85 template DEBUGINFO
86 end
802ea3af 87end