]>
Commit | Line | Data |
---|---|---|
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.23 | |
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 | 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 | test | |
58 | make check | |
59 | end | |
60 | ||
61 | make_install_targets += install-man | |
62 | ||
63 | install_cmds | |
64 | mkdir -pv %{BUILDROOT}%{sbindir} | |
65 | mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir} | |
66 | ||
67 | # Dump /etc/DIR_COLORS | |
68 | mkdir -pv %{BUILDROOT}%{sysconfdir} | |
69 | for i in DIR_COLORS DIR_COLORS.256color DIR_COLORS.lightbgcolor; do | |
70 | install -m 644 %{DIR_SOURCE}/${i} %{BUILDROOT}%{sysconfdir} | |
71 | done | |
72 | ||
73 | # Install profile.d. | |
74 | mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/ | |
75 | cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/ | |
76 | end | |
77 | end | |
78 | ||
79 | packages | |
80 | package %{name} | |
81 | groups += Base Build | |
82 | ||
83 | provides | |
84 | /bin/basename | |
85 | /bin/cat | |
86 | /bin/chgrp | |
87 | /bin/chmod | |
88 | /bin/chown | |
89 | /bin/cp | |
90 | /bin/cut | |
91 | /bin/date | |
92 | /bin/dd | |
93 | /bin/df | |
94 | /bin/echo | |
95 | /bin/env | |
96 | /bin/false | |
97 | /bin/ln | |
98 | /bin/ls | |
99 | /bin/mkdir | |
100 | /bin/mknod | |
101 | /bin/mktemp | |
102 | /bin/mv | |
103 | /bin/nice | |
104 | /bin/pwd | |
105 | /bin/readlink | |
106 | /bin/rm | |
107 | /bin/rmdir | |
108 | /bin/sleep | |
109 | /bin/sort | |
110 | /bin/stty | |
111 | /bin/sync | |
112 | /bin/touch | |
113 | /bin/true | |
114 | /bin/uname | |
115 | end | |
116 | ||
117 | conflicts | |
118 | filesystem < 002 | |
119 | end | |
120 | end | |
121 | ||
122 | package %{name}-debuginfo | |
123 | template DEBUGINFO | |
124 | end | |
125 | end |