]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - coreutils/coreutils.nm
Merge remote-tracking branch 'ms/openvswitch'
[people/amarx/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 = 4
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 test
59 make check
60 end
61
62 make_install_targets += install-man
63
64 install_cmds
65 mkdir -pv %{BUILDROOT}%{sbindir}
66 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
67 mv -v %{BUILDROOT}/usr/bin/runuser %{BUILDROOT}%{sbindir}
68
69 # su (set right capabilities)
70 chmod -v u-s %{BUILDROOT}%{bindir}/su
71 setcap cap_setgid,cap_setuid+ep %{BUILDROOT}%{bindir}/su
72
73 # Dump /etc/DIR_COLORS
74 mkdir -pv %{BUILDROOT}%{sysconfdir}
75 dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
76
77 # Install profile.d.
78 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
79 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
80 end
81 end
82
83 packages
84 package %{name}
85 groups += Base Build
86
87 provides
88 /bin/basename
89 /bin/cat
90 /bin/chgrp
91 /bin/chmod
92 /bin/chown
93 /bin/cp
94 /bin/cut
95 /bin/date
96 /bin/dd
97 /bin/df
98 /bin/echo
99 /bin/env
100 /bin/false
101 /bin/ln
102 /bin/ls
103 /bin/mkdir
104 /bin/mknod
105 /bin/mktemp
106 /bin/mv
107 /bin/nice
108 /bin/pwd
109 /bin/readlink
110 /bin/rm
111 /bin/rmdir
112 /bin/sleep
113 /bin/sort
114 /bin/stty
115 /bin/su
116 /bin/sync
117 /bin/touch
118 /bin/true
119 /bin/uname
120 /sbin/runuser
121 end
122
123 conflicts
124 filesystem < 002
125 end
126 end
127
128 package %{name}-debuginfo
129 template DEBUGINFO
130 end
131 end