]> git.ipfire.org Git - ipfire-3.x.git/blame - coreutils/coreutils.nm
coreutils: Move everything to /usr.
[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
6987acf5 7version = 8.16
576c025c 8release = 2
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
28 gmp-devel
29 libacl-devel
30 libattr-devel
31 libcap-devel
32 libselinux-devel
33 ncurses-devel
fa4603be 34 pam-devel>=1.1.5
802ea3af 35 end
166a6c21 36
e7f6ab54
SS
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing
40
802ea3af 41 configure_options += \
8623a35a 42 --libexecdir=%{libdir} \
802ea3af
MT
43 --enable-pam \
44 --enable-selinux \
45 --enable-largefile \
e7f6ab54 46 --disable-rpath \
c5869e53 47 --enable-install-program=arch,su \
6987acf5 48 --enable-no-install-program=hostname,kill,uptime \
576c025c
MT
49 --with-tty-group \
50 \
51 gl_cv_func_mknod_works=yes
166a6c21 52
802ea3af
MT
53 prepare_cmds
54 aclocal -I m4
55 autoconf --force
56 end
166a6c21 57
576c025c
MT
58 # FIXME broken
59 #test
60 # make check
61 #end
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}
68 mv -v %{BUILDROOT}/usr/bin/runuser %{BUILDROOT}%{sbindir}
e7a5bed3 69
576c025c
MT
70 # su (set right capabilities)
71 chmod -v u-s %{BUILDROOT}%{bindir}/su
72 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}%{bindir}/su
166a6c21 73
802ea3af 74 # Dump /etc/DIR_COLORS
576c025c 75 mkdir -pv %{BUILDROOT}%{sysconfdir}
802ea3af 76 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
166a6c21 77
576c025c
MT
78 # Install profile.d.
79 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
80 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
802ea3af
MT
81 end
82end
e35eb77b 83
802ea3af
MT
84packages
85 package %{name}
d0d49567 86 groups += Base Build
576c025c
MT
87
88 provides
89 /bin/basename
90 /bin/cat
91 /bin/chgrp
92 /bin/chmod
93 /bin/chown
94 /bin/cp
95 /bin/cut
96 /bin/date
97 /bin/dd
98 /bin/df
99 /bin/echo
100 /bin/env
101 /bin/false
102 /bin/ln
103 /bin/ls
104 /bin/mkdir
105 /bin/mknod
106 /bin/mktemp
107 /bin/mv
108 /bin/nice
109 /bin/pwd
110 /bin/readlink
111 /bin/rm
112 /bin/rmdir
113 /bin/sleep
114 /bin/sort
115 /bin/stty
116 /bin/su
117 /bin/sync
118 /bin/touch
119 /bin/true
120 /bin/uname
121 /sbin/runuser
122 end
123
124 conflicts
125 filesystem < 002
126 end
d0d49567 127 end
1f9bc2f0
MT
128
129 package %{name}-debuginfo
130 template DEBUGINFO
131 end
802ea3af 132end