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