Summary: Set of common unix utils for embeded systems Summary(pl): Zestaw narzędzi uniksowych dla systemów wbudowanych Name: busybox Version: 0.60.1 Release: 12 License: GPL Group: Applications Group(de): Applikationen Group(pl): Aplikacje Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz Source1: %{name}-config.h Patch0: %{name}-logconsole.patch Patch1: %{name}-tee.patch #Patch2: %{name}-sh-name.patch Patch3: %{name}-printf-gettext.patch Patch4: %{name}-loadfont.patch Patch5: %{name}-cread.patch Patch6: %{name}-malloc.patch URL: http://busybox.lineo.com/ %{?BOOT:BuildRequires: uClibc-devel-BOOT >= 20010521-3} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete POSIX environment for any small or embedded system. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add a kernel, a shell (such as ash), and an editor (such as elvis-tiny or ae). %description -l pl BusyBox składa małe wersje wielu narzędzi uniksowych w jeden mały plik wykonywalny. Zapewnia minimalne zastępniki większości narzędzi zawartych w pakietach fileutils, shellutils, findutils, grep, gzip, tar itp. BusyBox daje w miarę kompletne środowisko POSIX dla małych lub wbudowanych systemów. Narzędzia mają mniej opcji niż ich pełne odpowiedniki GNU, ale mają podstawową funkcjonalność. Do działającego systemu potrzeba jeszcze tylko kernela, shella (np. ash) oraz edytora (np. elvis-tiny albo ae). %package BOOT Summary: busybox for PLD bootdisk Group: Applications Group(de): Applikationen Group(pl): Aplikacje %description BOOT busybox for PLD bootdisk. %prep %setup -q %patch0 -p1 %patch1 -p1 #%patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %build cp -f %{SOURCE1} Config.h # BOOT %if %{?BOOT:1}%{!?BOOT:0} %{__make} \ CFLAGS_EXTRA="-I%{_libdir}/bootdisk%{_includedir}" \ LDFLAGS="-nostdlib" \ LIBRARIES="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc" mv -f busybox busybox-BOOT %endif %{__make} clean # TODO make main package dynamically linked %{__make} \ CFLAGS_EXTRA="%{rpmcflags}" \ LDFLAGS="%{rpmldflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/busybox} %if %{?BOOT:1}%{!?BOOT:0} install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/{bin,%{_libdir}} install busybox-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/busybox for i in `cat busybox.links`; do ln -sfn busybox "$RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/`basename $i`" done install busybox.links $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/busybox # change sh to lash (see sh_name patch) mv -f $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/{sh,lash} %endif install busybox $RPM_BUILD_ROOT%{_bindir} install busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox install docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1 echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1 gzip -9nf AUTHORS TODO Changelog README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %attr(755,root,root) %{_bindir}/* %{_libdir}/busybox %{_mandir}/man1/* %if %{?BOOT:1}%{!?BOOT:0} %files BOOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/bootdisk/bin/* %{_libdir}/bootdisk%{_libdir}/* %endif