]> git.ipfire.org Git - ipfire-3.x.git/blob - coreutils/coreutils.nm
nftables: Drop package
[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.26
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 gettext-devel
29 gmp-devel
30 libacl-devel
31 libattr-devel
32 libcap-devel
33 ncurses-devel
34 texinfo
35 end
36
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing \
40 -fpic
41
42 configure_options += \
43 FORCE_UNSAFE_CONFIGURE=1 \
44 --enable-dependency-tracking \
45 --libexecdir=%{libdir} \
46 --enable-largefile \
47 --disable-rpath \
48 --enable-install-program=arch \
49 --enable-no-install-program=hostname,kill,uptime \
50 --with-tty-group \
51
52 prepare_cmds
53 autoreconf -vfi
54 end
55
56 make_build_targets += \
57 V=1
58
59 test
60 make check || true
61 end
62
63 make_install_targets += install-man
64
65 install_cmds
66 mkdir -pv %{BUILDROOT}%{sbindir}
67 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
68
69 # Dump /etc/DIR_COLORS
70 mkdir -pv %{BUILDROOT}%{sysconfdir}
71 for i in DIR_COLORS DIR_COLORS.256color DIR_COLORS.lightbgcolor; do
72 install -m 644 %{DIR_SOURCE}/${i} %{BUILDROOT}%{sysconfdir}
73 done
74
75 # Install profile.d.
76 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
77 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
78 end
79 end
80
81 packages
82 package %{name}
83 groups += Base Build
84
85 provides
86 /bin/basename
87 /bin/cat
88 /bin/chgrp
89 /bin/chmod
90 /bin/chown
91 /bin/cp
92 /bin/cut
93 /bin/date
94 /bin/dd
95 /bin/df
96 /bin/echo
97 /bin/env
98 /bin/false
99 /bin/ln
100 /bin/ls
101 /bin/mkdir
102 /bin/mknod
103 /bin/mktemp
104 /bin/mv
105 /bin/nice
106 /bin/pwd
107 /bin/readlink
108 /bin/rm
109 /bin/rmdir
110 /bin/sleep
111 /bin/sort
112 /bin/stty
113 /bin/sync
114 /bin/touch
115 /bin/true
116 /bin/uname
117 end
118
119 conflicts
120 filesystem < 002
121 end
122 end
123
124 package %{name}-debuginfo
125 template DEBUGINFO
126 end
127 end