]>
Commit | Line | Data |
---|---|---|
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 MT |
6 | name = coreutils |
7 | version = 8.12 | |
8 | release = 2 | |
166a6c21 | 9 | |
802ea3af MT |
10 | groups = Base Build 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. | |
166a6c21 | 14 | |
802ea3af | 15 | description |
166a6c21 MT |
16 | These are the GNU core utilities. This package is the combination of \ |
17 | the old GNU fileutils, sh-utils, and textutils packages. | |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = http://ftp.gnu.org/gnu/coreutils/ | |
21 | sources = %{thisapp}.tar.xz | |
166a6c21 | 22 | |
802ea3af | 23 | CFLAGS += -D_GNU_SOURCE=1 -fno-strict-aliasing |
166a6c21 | 24 | |
802ea3af MT |
25 | build |
26 | requires | |
27 | autoconf | |
28 | automake | |
29 | e2fsprogs-devel | |
30 | gmp-devel | |
31 | libacl-devel | |
32 | libattr-devel | |
33 | libcap-devel | |
34 | libselinux-devel | |
35 | ncurses-devel | |
36 | pam-devel | |
37 | end | |
166a6c21 | 38 | |
802ea3af MT |
39 | configure_options += \ |
40 | --enable-pam \ | |
41 | --enable-selinux \ | |
42 | --enable-largefile \ | |
43 | --enable-install-program=arch,hostname,su \ | |
44 | --enable-no-install-program=kill,uptime | |
166a6c21 | 45 | |
802ea3af MT |
46 | prepare_cmds |
47 | aclocal -I m4 | |
48 | autoconf --force | |
49 | end | |
166a6c21 | 50 | |
802ea3af MT |
51 | test |
52 | make check | |
53 | end | |
166a6c21 | 54 | |
802ea3af MT |
55 | install_cmds |
56 | mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,usr/sbin} | |
57 | mv -v %{BUILDROOT}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} %{BUILDROOT}/bin | |
58 | mv -v %{BUILDROOT}/usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin | |
59 | mv -v %{BUILDROOT}/usr/bin/{rmdir,stty,sync,touch,true,uname} %{BUILDROOT}/bin | |
60 | mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}/usr/sbin | |
61 | mv -v %{BUILDROOT}/usr/bin/{head,sleep,nice} %{BUILDROOT}/bin | |
e7a5bed3 | 62 | |
802ea3af MT |
63 | # Reinstall su in /bin |
64 | rm -rfv %{BUILDROOT}/usr/bin/su | |
65 | install -m 4755 src/su %{BUILDROOT}/bin | |
166a6c21 | 66 | |
802ea3af MT |
67 | # Dump /etc/DIR_COLORS |
68 | dircolors -p > %{BUILDROOT}/etc/DIR_COLORS | |
69 | cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/ | |
166a6c21 | 70 | |
802ea3af MT |
71 | # Capabilities |
72 | chmod u-s %{BUILDROOT}/bin/su | |
73 | setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su | |
74 | end | |
75 | end | |
e35eb77b | 76 | |
802ea3af MT |
77 | packages |
78 | package %{name} | |
79 | end | |
80 | end |