SPECS (CRI): busybox.spec - spec to build busyboxes used by CRI in initrd a...
hawk
hawk at pld-linux.org
Thu May 8 23:18:37 CEST 2008
Author: hawk Date: Thu May 8 21:18:37 2008 GMT
Module: SPECS Tag: CRI
---- Log message:
- spec to build busyboxes used by CRI in initrd and system images
---- Files affected:
SPECS:
busybox.spec (1.1 -> 1.1.2.1)
---- Diffs:
================================================================
Index: SPECS/busybox.spec
diff -u SPECS/busybox.spec:1.1 SPECS/busybox.spec:1.1.2.1
--- SPECS/busybox.spec:1.1 Tue Apr 3 19:06:40 2001
+++ SPECS/busybox.spec Thu May 8 23:18:32 2008
@@ -1,53 +1,136 @@
# $Revision$, $Date$
+#
Summary: Set of common unix utils for embeded systems
Name: busybox
-Version: 0.50
+Version: 1.8.3
Release: 1
License: GPL
-Group: Applications/File
-Patch0: busybox-0.50.patch
-Patch1: busybox-logconsole.patch
-Patch2: busybox-tee.patch
-Source0: %{name}-%{version}.tar.gz
-Source1: %{name}-config.h
+Group: Applications
+Source0: http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
+# Source0-md5: 38616bdac37732c8f702f332bc375784
+Source1: %{name}-initrd.config
+Source2: %{name}-system.config
+Patch1: %{name}-logconsole.patch
+Patch2: %{name}-printf-gettext.patch
+Patch3: %{name}-loadfont.patch
+Patch4: %{name}-ash_exec.patch
+Patch5: %{name}-kernel_headers.patch
+Patch6: %{name}-insmod-morearchs.patch
+Patch7: %{name}-dhcp.patch
+Patch8: %{name}-fix_64_archs.patch
+URL: http://www.busybox.net/
+BuildRequires: gcc >= 3.2
+BuildRequires: perl-tools-pod
+BuildRequires: rpmbuild(macros) >= 1.333
+BuildRequires: uClibc-static >= 2:0.9.21
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _bindir /bin
+%define _initrd_bindir /bin
+
+%if "%{_target_base_arch}" != "%{_arch}"
+ %define CrossOpts CROSS="%{_target_cpu}-pld-linux-"
+%else
+ %define CrossOpts %{nil}
+%endif
+
%description
-Ye know..
+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).
+
+%package CRI-initrd
+Summary: Busybox for CRI initrd images
+Group: Applications
+Conflicts: geninitrd < 3075
+
+%description CRI-initrd
+Busybox for CRI initrd images.
+
+%package CRI-system
+Summary: Busybox for CRI system images
+Group: Applications
+Conflicts: geninitrd < 3075
+
+%description CRI-system
+Busybox for CRI system images.
%prep
%setup -q
-%patch0 -p1
-%patch1
-%patch2
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
%build
-cp %{SOURCE1} Config.h
-%{__make}
+install -d built
+install %{SOURCE1} .config
+%{__make} oldconfig
+%{__make} \
+ CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
+ LDFLAGS="%{ld_rpmldflags} -static" \
+%if "%{_target_base_arch}" != "%{_arch}"
+ CROSS="%{_target_cpu}-uclibc-" \
+%endif
+ CC="%{_target_cpu}-uclibc-gcc"
+
+mv -f busybox built/busybox.initrd
+%{__make} clean
+
+install %{SOURCE2} .config
+%{__make} oldconfig
+%{__make} \
+ CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
+ LDFLAGS="%{ld_rpmldflags} -static" \
+%if "%{_target_base_arch}" != "%{_arch}"
+ CROSS="%{_target_cpu}-uclibc-" \
+%endif
+ CC="%{_target_cpu}-uclibc-gcc"
+
+mv -f busybox built/busybox.system
+%{__make} clean
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d -m 755 $RPM_BUILD_ROOT/usr/lib/bootdisk/{bin,config}
-install -m 755 busybox $RPM_BUILD_ROOT/usr/lib/bootdisk/bin/
-install -m 755 busybox.links $RPM_BUILD_ROOT/usr/lib/bootdisk/config/
+install -d $RPM_BUILD_ROOT%{_bindir}
-gzip -9nf AUTHORS TODO Changelog README
+install built/busybox.initrd $RPM_BUILD_ROOT%{_bindir}
+install built/busybox.system $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files CRI-initrd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/busybox.initrd
+
+%files CRI-system
%defattr(644,root,root,755)
-%doc *.gz
-%attr(755,root,root) /usr/lib/bootdisk/bin/*
-/usr/lib/bootdisk/config/*
+%attr(755,root,root) %{_bindir}/busybox.system
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
-* %{date} PLD Team <pld-list at pld.org.pl>
-All persons listed below can be reached at <cvs_login>@pld.org.pl
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
-Revision 1.1 2001-04-03 17:06:40 malekith
-from scratch.
+Revision 1.1.2.1 2008-05-08 21:18:32 hawk
+- spec to build busyboxes used by CRI in initrd and system images
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/busybox.spec?r1=1.1&r2=1.1.2.1&f=u
More information about the pld-cvs-commit
mailing list