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