2009-01-09 02:22:59 +01:00
|
|
|
#
|
2011-03-18 19:51:17 +01:00
|
|
|
# spec file for package busybox-static
|
2009-01-09 02:22:59 +01:00
|
|
|
#
|
Accepting request 113102 from home:oertel:branches:openSUSE:Factory
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
- remove obsolete patches previously marked as upstreamed
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
OBS-URL: https://build.opensuse.org/request/show/113102
OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=18
2012-04-11 20:33:48 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-01-09 02:22:59 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-21 10:33:42 +01:00
|
|
|
|
2009-01-09 02:22:59 +01:00
|
|
|
Name: busybox-static
|
|
|
|
Url: http://www.busybox.net/
|
Accepting request 113102 from home:oertel:branches:openSUSE:Factory
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
- remove obsolete patches previously marked as upstreamed
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
OBS-URL: https://build.opensuse.org/request/show/113102
OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=18
2012-04-11 20:33:48 +02:00
|
|
|
Version: 1.19.4
|
|
|
|
Release: 0
|
2009-01-09 02:22:59 +01:00
|
|
|
Summary: The Swiss Army Knife of Embedded Linux
|
Accepting request 113102 from home:oertel:branches:openSUSE:Factory
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
- remove obsolete patches previously marked as upstreamed
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
OBS-URL: https://build.opensuse.org/request/show/113102
OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=18
2012-04-11 20:33:48 +02:00
|
|
|
License: GPL-2.0+
|
2009-01-09 02:22:59 +01:00
|
|
|
Group: System/Base
|
|
|
|
Source: http://busybox.net/downloads/busybox-%{version}.tar.bz2
|
2011-03-18 19:51:17 +01:00
|
|
|
Source1: BusyBox.1
|
2009-01-09 02:22:59 +01:00
|
|
|
Source2: busybox.SuSE.config
|
|
|
|
Source3: mkinitrd-setup.sh
|
|
|
|
Source4: mkinitrd-boot.sh
|
2011-03-18 19:51:17 +01:00
|
|
|
# other patches
|
|
|
|
Patch99: busybox.uClibc-build-fix.patch
|
2009-01-09 02:22:59 +01:00
|
|
|
Patch100: busybox.install.patch
|
2011-03-18 19:51:17 +01:00
|
|
|
Patch101: busybox-1.18.3-libarchive.patch
|
Accepting request 113102 from home:oertel:branches:openSUSE:Factory
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
- remove obsolete patches previously marked as upstreamed
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
OBS-URL: https://build.opensuse.org/request/show/113102
OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=18
2012-04-11 20:33:48 +02:00
|
|
|
Patch102: busybox-1.19.4-typedef_umode_t.patch
|
2009-01-09 02:22:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: uClibc-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
BusyBox combines tiny versions of many common UNIX utilities into a
|
|
|
|
small single executable. It provides minimalist replacements for most
|
|
|
|
of the utilities usually found in fileutils, shellutils, findutils,
|
|
|
|
textutils, grep, gzip, tar, and more. 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. The options that are included provide the
|
|
|
|
expected functionality and behave very much like their GNU
|
|
|
|
counterparts.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n busybox-%{version}
|
2011-03-18 19:51:17 +01:00
|
|
|
%patch99 -p1
|
2009-01-09 02:22:59 +01:00
|
|
|
%patch100 -p1
|
|
|
|
%patch101 -p1
|
Accepting request 113102 from home:oertel:branches:openSUSE:Factory
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
- remove obsolete patches previously marked as upstreamed
- busybox-1.19.4-typedef_umode_t.patch:
fix compile as umode_t is only defined with KERNEL and is
used in header linux/linux/ext2_fs.h
- update to 1.19.4
- fix getty, mdev, modinfo and wget
- update to 1.19.3
- fix chpasswd, crond, inetd, syslogd, tail, tftp
- update to 1.19.2
- fix ash/hush, cttyhack, find, grep, less, patch, sed, top,
uncompress
- update to 1.19.0:
- countless fixes in all utility programs, please see
http://www.busybox.net/ for details
OBS-URL: https://build.opensuse.org/request/show/113102
OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=18
2012-04-11 20:33:48 +02:00
|
|
|
%patch102 -p0
|
2011-03-18 19:51:17 +01:00
|
|
|
%{__cp} -a %{S:1} docs/
|
|
|
|
%{__cp} -a %{S:2} .config
|
2009-01-09 02:22:59 +01:00
|
|
|
find -name CVS | xargs rm -rf
|
2011-03-18 19:51:17 +01:00
|
|
|
find -name .cvsignore | xargs rm -rf
|
2009-01-09 02:22:59 +01:00
|
|
|
find -name .svn | xargs rm -rf
|
2011-03-18 19:51:17 +01:00
|
|
|
find -name .gitignore | xargs rm -rf
|
|
|
|
|
|
|
|
%build
|
2009-01-09 02:22:59 +01:00
|
|
|
export VERBOSE=-v
|
|
|
|
export BUILD_VERBOSE=2
|
2011-03-18 19:51:17 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2011-10-04 10:31:06 +02:00
|
|
|
export CC="%{__cc}"
|
|
|
|
export HOSTCC=gcc
|
2010-10-07 23:56:16 +02:00
|
|
|
# somehow uClibc prefers it's own ar.h header, so rename it
|
|
|
|
mv include/ar.h include/b_ar.h
|
|
|
|
sed -i -e 's/"ar.h"/"b_ar.h"/' archival/*.c archival/*/*.c
|
2009-01-09 02:22:59 +01:00
|
|
|
make -e oldconfig
|
2010-11-01 09:22:07 +01:00
|
|
|
make -e CC=gcc-uClibc %{?_smp_mflags}
|
2009-01-09 02:22:59 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/bin
|
|
|
|
install busybox $RPM_BUILD_ROOT/usr/bin/busybox-static
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/busybox-static
|
|
|
|
|
|
|
|
%changelog
|