]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - coreutils/coreutils.nm
Merge remote-tracking branch 'ms/iptraf-ng'
[people/stevee/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.17
8 release = 2
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 configure_options += \
42 --libexecdir=%{libdir} \
43 --enable-pam \
44 --enable-selinux \
45 --enable-largefile \
46 --disable-rpath \
47 --enable-install-program=arch,su \
48 --enable-no-install-program=hostname,kill,uptime \
49 --with-tty-group \
50 \
51 gl_cv_func_mknod_works=yes
52
53 prepare_cmds
54 aclocal -I m4
55 autoconf --force
56 end
57
58 test
59 make check
60 end
61
62 make_install_targets += install-man
63
64 install_cmds
65 mkdir -pv %{BUILDROOT}%{sbindir}
66 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
67 mv -v %{BUILDROOT}/usr/bin/runuser %{BUILDROOT}%{sbindir}
68
69 # su (set right capabilities)
70 chmod -v u-s %{BUILDROOT}%{bindir}/su
71 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}%{bindir}/su
72
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}
77 done
78
79 # Install profile.d.
80 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
81 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
82 end
83 end
84
85 packages
86 package %{name}
87 groups += Base Build
88
89 provides
90 /bin/basename
91 /bin/cat
92 /bin/chgrp
93 /bin/chmod
94 /bin/chown
95 /bin/cp
96 /bin/cut
97 /bin/date
98 /bin/dd
99 /bin/df
100 /bin/echo
101 /bin/env
102 /bin/false
103 /bin/ln
104 /bin/ls
105 /bin/mkdir
106 /bin/mknod
107 /bin/mktemp
108 /bin/mv
109 /bin/nice
110 /bin/pwd
111 /bin/readlink
112 /bin/rm
113 /bin/rmdir
114 /bin/sleep
115 /bin/sort
116 /bin/stty
117 /bin/su
118 /bin/sync
119 /bin/touch
120 /bin/true
121 /bin/uname
122 /sbin/runuser
123 end
124
125 conflicts
126 filesystem < 002
127 end
128 end
129
130 package %{name}-debuginfo
131 template DEBUGINFO
132 end
133 end