Commit 6bafc7c5 authored by Juha Kallioinen's avatar Juha Kallioinen

[packaging] Added packaging

parent 97d5ca6e
This diff is collapsed.
Summary: Single binary providing simplified versions of system commands
Name: busybox
Version: 1.21.0
Release: 1
License: GPLv2
Group: System/Shells
Source: http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
URL: http://www.busybox.net
%define debug_package %{nil}
%package docs
Group: Documentation
Summary: Busybox Documentation
%description
Busybox is a single binary which includes versions of a large number
of system commands, including a shell. This package can be very
useful for recovering from certain types of system failures,
particularly those involving broken shared libraries.
%package symlinks-gzip
Requires: %{name}
Group: System/Shells
Summary: Busybox replacements for gzip
Provides: gzip
%description symlinks-gzip
Busybox is a single binary which includes versions of a large number
of system commands, including a shell. This package can be very
useful for recovering from certain types of system failures,
particularly those involving broken shared libraries. This
is the symlinks implementing gzip replacements.
%description docs
Busybox documentation and user guides
%prep
%setup -q -n %{name}-%{version}/%{name}
%build
cp busybox-sailfish.config .config
yes "" | make oldconfig
make %{_smp_mflags}
make busybox.links
cat >> busybox.links << EOF
/usr/bin/gzip
/usr/bin/gunzip
EOF
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/bin
install -m 755 busybox %{buildroot}/bin/busybox
applets/install.sh %{buildroot} --symlinks
%files
%defattr(-,root,root,-)
%doc LICENSE
/bin/busybox
%files docs
%doc LICENSE docs/busybox.net/*.html
%files symlinks-gzip
/bin/gunzip
/usr/bin/gunzip
/bin/gzip
/usr/bin/gzip
/bin/zcat
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment