]> git.ipfire.org Git - ipfire-3.x.git/blob - coreutils/coreutils.nm
Merge remote-tracking branch 'arne_f/automake'
[ipfire-3.x.git] / coreutils / coreutils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = coreutils
7 version = 8.16
8 release = 1
9
10 groups = System/Base
11 url = http://www.gnu.org/software/coreutils/
12 license = GPLv3+
13 summary = A set of basic GNU tools commonly used in shell scripts.
14
15 description
16 These are the GNU core utilities. This package is the combination of
17 the old GNU fileutils, sh-utils, and textutils packages.
18 end
19
20 source_dl = http://ftp.gnu.org/gnu/coreutils/
21 sources = %{thisapp}.tar.xz
22
23 build
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>=1.1.5
35 end
36
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing
40
41 export FORCE_UNSAFE_CONFIGURE=1
42
43 configure_options += \
44 --libexecdir=%{libdir} \
45 --enable-pam \
46 --enable-selinux \
47 --enable-largefile \
48 --disable-rpath \
49 --enable-install-program=arch,su \
50 --enable-no-install-program=hostname,kill,uptime \
51 --with-tty-group
52
53 prepare_cmds
54 aclocal -I m4
55 autoconf --force
56 end
57
58 test
59 make check
60 end
61
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
65 mv -v %{BUILDROOT}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin
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
69
70 # Reinstall su in /bin
71 rm -rfv %{BUILDROOT}/usr/bin/su
72 install -m 4755 src/su %{BUILDROOT}/bin
73
74 # Dump /etc/DIR_COLORS
75 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
76 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
77
78 # Capabilities
79 chmod u-s %{BUILDROOT}/bin/su
80 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su
81 end
82 end
83
84 packages
85 package %{name}
86 groups += Base Build
87 end
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
92 end