]> git.ipfire.org Git - ipfire-3.x.git/blame - coreutils/coreutils.nm
kernel: update to 4.12.4
[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
23ba0bc2
SS
7version = 8.26
8release = 1
166a6c21 9
d0d49567 10groups = System/Base
802ea3af
MT
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
e5317bd9 28 gettext-devel
802ea3af
MT
29 gmp-devel
30 libacl-devel
31 libattr-devel
32 libcap-devel
802ea3af 33 ncurses-devel
effd5ec1 34 texinfo
802ea3af 35 end
166a6c21 36
e7f6ab54
SS
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
fbb9790b
SS
39 -fno-strict-aliasing \
40 -fpic
e7f6ab54 41
802ea3af 42 configure_options += \
fbb9790b
SS
43 FORCE_UNSAFE_CONFIGURE=1 \
44 --enable-dependency-tracking \
8623a35a 45 --libexecdir=%{libdir} \
802ea3af 46 --enable-largefile \
e7f6ab54 47 --disable-rpath \
effd5ec1 48 --enable-install-program=arch \
6987acf5 49 --enable-no-install-program=hostname,kill,uptime \
576c025c 50 --with-tty-group \
166a6c21 51
802ea3af 52 prepare_cmds
e5317bd9 53 autoreconf -vfi
802ea3af 54 end
166a6c21 55
fca5c2d6
SS
56 make_build_targets += \
57 V=1
58
651b9950 59 test
c92d8802 60 make check || true
651b9950 61 end
576c025c
MT
62
63 make_install_targets += install-man
166a6c21 64
802ea3af 65 install_cmds
576c025c
MT
66 mkdir -pv %{BUILDROOT}%{sbindir}
67 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
166a6c21 68
802ea3af 69 # Dump /etc/DIR_COLORS
576c025c 70 mkdir -pv %{BUILDROOT}%{sysconfdir}
3f642be3
MT
71 for i in DIR_COLORS DIR_COLORS.256color DIR_COLORS.lightbgcolor; do
72 install -m 644 %{DIR_SOURCE}/${i} %{BUILDROOT}%{sysconfdir}
73 done
166a6c21 74
576c025c
MT
75 # Install profile.d.
76 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
77 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
802ea3af
MT
78 end
79end
e35eb77b 80
802ea3af
MT
81packages
82 package %{name}
d0d49567 83 groups += Base Build
576c025c
MT
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
576c025c
MT
113 /bin/sync
114 /bin/touch
115 /bin/true
116 /bin/uname
576c025c
MT
117 end
118
119 conflicts
120 filesystem < 002
121 end
d0d49567 122 end
1f9bc2f0
MT
123
124 package %{name}-debuginfo
125 template DEBUGINFO
126 end
802ea3af 127end