]>
Commit | Line | Data |
---|---|---|
ee61dafa MM |
1 | Summary: Set of common unix utils for embeded systems |
2 | Name: busybox | |
4ab971f9 | 3 | Version: 0.51 |
fb482040 | 4 | Release: 10 |
ee61dafa | 5 | License: GPL |
d79d7625 | 6 | Group: Applications |
7 | Group(de): Applikationen | |
8 | Group(pl): Aplikacje | |
65512310 | 9 | Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz |
ee61dafa | 10 | Source1: %{name}-config.h |
f1ff2c35 | 11 | Patch0: %{name}-logconsole.patch |
12 | Patch1: %{name}-tee.patch | |
ea0cda84 | 13 | Patch2: %{name}-sh-name.patch |
94fac39e | 14 | Patch3: %{name}-printf-gettext.patch |
0cf45dc5 | 15 | Patch4: %{name}-loadfont.patch |
63718cbf | 16 | Patch5: %{name}-cread.patch |
65512310 | 17 | URL: http://busybox.lineo.com/ |
2b1796f6 | 18 | %{?BOOT:BuildRequires: uClibc-devel-BOOT >= 20010521-3} |
ee61dafa MM |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
65512310 | 22 | BusyBox combines tiny versions of many common UNIX utilities into a |
23 | single small executable. It provides minimalist replacements for most | |
24 | of the utilities you usually find in fileutils, shellutils, findutils, | |
25 | textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete | |
26 | POSIX environment for any small or embedded system. The utilities in | |
27 | BusyBox generally have fewer options than their full-featured GNU | |
28 | cousins; however, the options that are included provide the expected | |
29 | functionality and behave very much like their GNU counterparts. | |
30 | ||
31 | BusyBox has been written with size-optimization and limited resources | |
32 | in mind. It is also extremely modular so you can easily include or | |
33 | exclude commands (or features) at compile time. This makes it easy to | |
34 | customize your embedded systems. To create a working system, just add | |
35 | a kernel, a shell (such as ash), and an editor (such as elvis-tiny or | |
36 | ae). | |
ee61dafa | 37 | |
bb4ca08e | 38 | %package BOOT |
a4eba4f8 | 39 | Summary: busybox for PLD bootdisk |
d79d7625 | 40 | Group: Applications |
a4eba4f8 | 41 | Group(de): Applikationen |
42 | Group(pl): Aplikacje | |
bb4ca08e | 43 | |
44 | %description BOOT | |
a4eba4f8 | 45 | busybox for PLD bootdisk. |
bb4ca08e | 46 | |
ee61dafa MM |
47 | %prep |
48 | %setup -q | |
f1ff2c35 | 49 | %patch0 |
ee61dafa | 50 | %patch1 |
ea0cda84 | 51 | %patch2 -p1 |
94fac39e | 52 | %patch3 -p1 |
0cf45dc5 | 53 | %patch4 -p1 |
63718cbf | 54 | %patch5 -p1 |
ea0cda84 | 55 | |
ee61dafa | 56 | %build |
bb4ca08e | 57 | # BOOT |
ee61dafa | 58 | cp %{SOURCE1} Config.h |
bb4ca08e | 59 | %{__make} \ |
941f2971 | 60 | CFLAGS_EXTRA="-m386 -I%{_libdir}/bootdisk%{_includedir}" \ |
bb4ca08e | 61 | LDFLAGS="-nostdlib -s" \ |
d79d7625 | 62 | LIBRARIES="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc" |
bb4ca08e | 63 | |
64 | # TODO make main package dynamically linked | |
ee61dafa MM |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
985e3602 | 68 | %{__install} -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} |
69 | %{__install} -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/{bin,%{_libdir}/busybox} | |
a4eba4f8 | 70 | |
985e3602 | 71 | %{__install} busybox $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/ |
a4eba4f8 | 72 | |
73 | for i in `cat busybox.links`; do | |
74 | ln -sfn busybox "$RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/`basename $i`" | |
75 | done | |
d79d7625 | 76 | %{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/busybox |
ea0cda84 | 77 | # change sh to lash (see sh_name patch) |
78 | mv -f $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/{sh,lash} | |
65512310 | 79 | |
80 | %{__install} busybox $RPM_BUILD_ROOT%{_bindir} | |
81 | %{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox | |
82 | %{__install} docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
83 | echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1 | |
ee61dafa MM |
84 | |
85 | gzip -9nf AUTHORS TODO Changelog README | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc *.gz | |
65512310 | 93 | %attr(755,root,root) %{_bindir}/* |
94 | %{_libdir}/busybox | |
95 | %{_mandir}/man1/* | |
bb4ca08e | 96 | |
97 | %files BOOT | |
98 | %defattr(644,root,root,755) | |
d79d7625 | 99 | %attr(755,root,root) %{_libdir}/bootdisk/bin/* |
100 | %{_libdir}/bootdisk%{_libdir}/* |