]> git.ipfire.org Git - ipfire-3.x.git/blob - coreutils/coreutils.nm
Merge remote-tracking branch 'arne_f/automake'
[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.16
8 release = 3
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 gmp-devel
29 libacl-devel
30 libattr-devel
31 libcap-devel
32 libselinux-devel
33 ncurses-devel
34 pam-devel>=1.1.5
35 end
36
37 CFLAGS += \
38 -D_GNU_SOURCE=1 \
39 -fno-strict-aliasing
40
41 configure_options += \
42 --libexecdir=%{libdir} \
43 --enable-pam \
44 --enable-selinux \
45 --enable-largefile \
46 --disable-rpath \
47 --enable-install-program=arch,su \
48 --enable-no-install-program=hostname,kill,uptime \
49 --with-tty-group \
50 \
51 gl_cv_func_mknod_works=yes
52
53 prepare_cmds
54 aclocal -I m4
55 autoconf --force
56 end
57
58 # FIXME broken
59 #test
60 # make check
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 mv -v %{BUILDROOT}/usr/bin/runuser %{BUILDROOT}%{sbindir}
69
70 # su (set right capabilities)
71 chmod -v u-s %{BUILDROOT}%{bindir}/su
72 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}%{bindir}/su
73
74 # Dump /etc/DIR_COLORS
75 mkdir -pv %{BUILDROOT}%{sysconfdir}
76 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
77
78 # Install profile.d.
79 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
80 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
81 end
82 end
83
84 packages
85 package %{name}
86 groups += Base Build
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
127 end
128
129 package %{name}-debuginfo
130 template DEBUGINFO
131 end
132 end