SHA256
1
0
forked from pool/busybox
busybox/busybox-static.spec

79 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package busybox-static
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: busybox-static
Url: http://www.busybox.net/
Accepting request 210745 from home:posophe:branches:Base:System - Update to version 1.21.1 + fixes for ntfs detection (big-endian fix) + xz decompression of concatenated streams + mdev acquired a [ENV=regex;] extension instead of undocumented subsystem match hack it used to have prior to 1.21.x. - Changes from 1.21.0 + udhcpc: gracefully handle packets with CHECKSUM_PARTIAL + ifupdown: improve compatibility with Debian + get_linux_version_code: don't fail on Linux version strings like "3.0-foo" + build system: fix build failure when only gunzip is selected + CONFIG_PID_FILE_PATH: new configuration option for pidfile paths + declare strings with ALIGN1, as appropriate + nanddump: use the right operator of logic AND + nanddump: skip bad blocks when instructed to do so + nanddump: invert the meaning of the -o parameter to match upstream + mount: fix -o user=foo mishandling, fix unc= generation, add prefixpath= + build system: fix build of kconfig on Darwin + tar: support -J, --xz explicit compression option + simplify copyright/license notice that appears in the binary + mdev: tell kernel that we didn't find the firmware + lineedit: fix Alt-D when cursor==0 + lineedit: histfile can get emptied when CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y + build system: stop .eh_frame generation + build system: fix build failure when compressed help is selected, but bz2 compression is not + scripts/kconfig/mconf: work on systems w/o SIGWINCH + platform.h: disable ALIGNn macros for s390[x] + adduser: install to /usr, not /, like all other similar tools + ash: fix "read -s" + ^C. Closes 5504 + ash: fix a bug in >${varexp} handling. Closes 5282 + ash: implement export -n + ash: revert wrong "fix" for an apparent memory leak. Closes 5822 + awk: fix FS assignment behavior. Closes 5108 + awk: make -F STR interpret escape sequences. Closes 5126 + brctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has strtotimeval) + busybox: tweak help text and copyright year + decompress_uncompress: comment out debug printout on corrupted data + decompress_uncompress: move 'code' variable into loop - sole user + dhcpd: write lease file on exit + dpkg: fix creation of .list files (were empty since b768aeb). Closes 5324 + du: document incompatibility with standard tool + examples/mdev_fat.conf: small addition + find: if DESKTOP=y, support -wholename (synonym for -path) + find: make -mindepth N -xdev correctly stop on mountpoints + ftpd: fix MDTM's month value. Closes 5336 + ftpd: free allocated string on error path + getty: fix for NOCTTY killing us with SIGHUP + grep: fix grep -Fw not respecting the -w option. Closes 5792 + ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes 5786 + libbb: correctness/size tweaks in signal-related helpers + lineedit: in !EDITING config, return -1 on fgets error + login: increase login name size limit from 32 to 64 + lpr: don't send 0-byte print jobs (compat) + man: fix handling of gzipped manpages + mdev: add support for $DEVNAME and /dev/mdev.log debug aid + mdev: fix mode of dir1 in =dir1/dir2/file rule + mdev: remove undocumented subsystem/devname matching hack + mdev: when found, print major,minor into mdev.log + modprobe_small: make rmmod to NOT remove dependencies. Closes 5162 + mount: do not pass "comment=ANYTHING" option to kernel. Closes 5240 + mount: fix the wrongly stored fs creation time + mount: set up RO loop device if mount -o ro. Closes 4784 + mount: support strictatime option. Closes 5240 + ntpd: on time step, kill all outstanding replies from other peers + sed: fix handling of s/// which has empty matches + sed: fix zero chars match/replace + sha3: make size/speed optimization decision configurable + syslogd: do not segfault on parse error when using default config. Closes 5762 + telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to server + telnet: convert Enter -> CR LF in line mode too + tftpd: fix -u USER to work with chroot. Closes 5348 + top/ps: argv0:"gdm-session-worker [pam/gdm-password]" == comm:"gdm-session-wor" + top: do not touch stdin if -b + top: fix "last CPU" parsing + top: implement scrolling up/down (_very_ useful) + udhcp[cd]: fix binding to network aliases. Closes 5432, 5438 + udhcpc: make -O <numeric_opt> work. Closes 5402 + udhcpc[6]: show select timeout in log + unzip: make options parsing more robust on getopt w/o gnu extensions + vi: do not set autoindent by default + vi: nuke FEATURE_VI_OPTIMIZE_CURSOR + vi: save/restore screen upon invocation + volume_id/ext: detect ext4 too + wget: correctly handle failure to -c (continue) + wget: make -c _not_ truncate the file + wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426 + wget: try reading after poll timeout - stdio may have buffered data. Closes 5426 + acpid: add missing lid switch definition + tar: fix 256-bit encoded number decoding + udhcpc[6]: allow discover_retries == 0 (infinite) + ash: fix a memory leak + sysctl: implement -q + powertop: fix error message + sha3sum: new applet + fbset: respect rgba configuration lines in fb.modes + fbsplash: support non-RGB565 pixels in 16-bit mode + flashcp: remove unused variable opts + mount: add unc option to CIFS mount (needed for Linux 3.4+) + nanddump: make dumping read-only partitions work + ps: use separate get_uptime() and make it work on non-linux too + declare strings with ALIGN1, as appropriate + udhcpc6: depend on ipv6 + include sys/resource.h where needed + disable format security warnings + build system: use pkg-config to look up selinux libs + ifenslave: fix missing close paren + sed: allow 'w' cmd to use two address form + tar: implement --no-recursion + unzip: ignore chmod errors + brctl: fix description and usage + su: do not change to home dir unless -l + ntpd: fix incorrect m_status field in outgoing packets. Closes 5120 + dmesg: handle multi-char log levels + klogd: handle multi-char log levels + syslogd: add option to log to Linux kernel printk buffer + syslogd: convert dummy functions to statics and get rid of IF_FEATURE_* checks + config: do not refer to HTTPS for wget + sendmail: use host rather than NIS domain name for HELO + mktemp: fix mktemp -u temp.XXXXXX returning garbage when TMPDIR is set + blkid: show filesystem when both label and UUID are missing, but type is known + volume_id: add exFAT detection + ln: support -T and -v + sed: support long opts and -iSFX + mkdir,rmdir: accept and ignore -v, --verbose + mv: accept but ignore -v + blkid: add type display for btrfs + blkid: add support for nilfs2 + blkid: add type display for hfsplus + volume_id: display hfs[+] 128-bit UUID properly + volume_id: uuid_format small code shrink + volume_id: add squashfs detection + testsuite: some more awk tests related to conditions + modinfo: match more standard module fields and fix version field + inetd: fix build failure in Android + android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c + platform.h: Android tweaks: ioprio defines, BB_ADDITIONAL_PATH + android: some sensible defconfig changes + libbb: add missing_syscalls.c: for now, only Android syscalls + fbsplash: fix regression from e4fa7b7 + adduser: make it accept "adduser USER GROUP" form + wget: add dummy --no-cache + testsuite: make mkfs.minix test not fail spuriously on big endian + refactor correct_password.c to avoid one if OBS-URL: https://build.opensuse.org/request/show/210745 OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=29
2013-12-16 17:53:52 +01:00
Version: 1.21.1
Release: 0
Summary: The Swiss Army Knife of Embedded Linux
License: GPL-2.0+
Group: System/Base
Source: http://busybox.net/downloads/busybox-%{version}.tar.bz2
Source1: BusyBox.1
Source2: busybox-static.SuSE.config
Source3: mkinitrd-setup.sh
Source4: mkinitrd-boot.sh
# other patches
Patch100: busybox.install.patch
Patch101: busybox-1.18.3-libarchive.patch
Patch103: busybox-resource.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: glibc-devel-static
%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}
%patch100 -p1
%patch101 -p1
%patch103 -p1
%{__cp} -a %{S:1} docs/
%{__cp} -a %{S:2} .config
find -name CVS | xargs rm -rf
find -name .cvsignore | xargs rm -rf
find -name .svn | xargs rm -rf
find -name .gitignore | xargs rm -rf
%build
export VERBOSE=-v
export BUILD_VERBOSE=2
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CC="%{__cc}"
export HOSTCC=gcc
make -e oldconfig
make -e %{?_smp_mflags}
%install
install -d $RPM_BUILD_ROOT/%{_bindir}
install busybox $RPM_BUILD_ROOT/%{_bindir}/busybox-static
%files
%defattr(-,root,root)
%{_bindir}/busybox-static
%changelog