1 Summary: Set of common unix utils for embeded systems
7 Group(de): Applikationen
9 Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz
10 Source1: %{name}-config.h
11 Patch0: %{name}-logconsole.patch
12 Patch1: %{name}-tee.patch
13 Patch2: %{name}-sh-name.patch
14 Patch3: %{name}-printf-gettext.patch
15 Patch4: %{name}-loadfont.patch
16 URL: http://busybox.lineo.com/
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 BuildRequires: uClibc-devel-BOOT >= 20010521-3
21 BusyBox combines tiny versions of many common UNIX utilities into a
22 single small executable. It provides minimalist replacements for most
23 of the utilities you usually find in fileutils, shellutils, findutils,
24 textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete
25 POSIX environment for any small or embedded system. The utilities in
26 BusyBox generally have fewer options than their full-featured GNU
27 cousins; however, the options that are included provide the expected
28 functionality and behave very much like their GNU counterparts.
30 BusyBox has been written with size-optimization and limited resources
31 in mind. It is also extremely modular so you can easily include or
32 exclude commands (or features) at compile time. This makes it easy to
33 customize your embedded systems. To create a working system, just add
34 a kernel, a shell (such as ash), and an editor (such as elvis-tiny or
38 Summary: busybox for PLD bootdisk
40 Group(de): Applikationen
44 busybox for PLD bootdisk.
56 cp %{SOURCE1} Config.h
58 CFLAGS_EXTRA="-m386 -I%{_libdir}/bootdisk%{_includedir}" \
59 LDFLAGS="-nostdlib -s" \
60 LIBRARIES="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
62 # TODO make main package dynamically linked
65 rm -rf $RPM_BUILD_ROOT
66 %{__install} -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
67 %{__install} -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/{bin,%{_libdir}/busybox}
69 %{__install} busybox $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/
71 for i in `cat busybox.links`; do
72 ln -sfn busybox "$RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/`basename $i`"
74 %{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/busybox
75 # change sh to lash (see sh_name patch)
76 mv -f $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/{sh,lash}
78 %{__install} busybox $RPM_BUILD_ROOT%{_bindir}
79 %{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox
80 %{__install} docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1
81 echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1
83 gzip -9nf AUTHORS TODO Changelog README
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/*
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/bootdisk/bin/*
98 %{_libdir}/bootdisk%{_libdir}/*