forked from pool/busybox
Accepting request 925383 from Base:System
OBS-URL: https://build.opensuse.org/request/show/925383 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/busybox?expand=0&rev=68
This commit is contained in:
commit
005b227ccf
1193
busybox-warewulf3.config
Normal file
1193
busybox-warewulf3.config
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 9 13:16:11 UTC 2021 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- Create separate 'Warewulf3' (https://github.com/warewulf/warewulf3)
|
||||||
|
flavor of busybox with the
|
||||||
|
additional setting:
|
||||||
|
CONFIG_REBOOT=y
|
||||||
|
CONFIG_SWITCH_ROOT=y
|
||||||
|
CONFIG_CTTYHACK=y
|
||||||
|
(bsc#1191514).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 7 19:04:53 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
|
Fri May 7 19:04:53 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
|
||||||
|
43
busybox.spec
43
busybox.spec
@ -26,10 +26,13 @@ URL: https://www.busybox.net/
|
|||||||
Source: https://busybox.net/downloads/%{name}-%{version}.tar.bz2
|
Source: https://busybox.net/downloads/%{name}-%{version}.tar.bz2
|
||||||
Source1: BusyBox.1
|
Source1: BusyBox.1
|
||||||
Source2: busybox.config
|
Source2: busybox.config
|
||||||
|
# Make sure busybox-static.config stays in sync with busybox.config -
|
||||||
|
# exception: SELinux commands - these do not build statically.
|
||||||
Source3: busybox-static.config
|
Source3: busybox-static.config
|
||||||
Source4: man.conf
|
Source4: man.conf
|
||||||
Source5: https://busybox.net/downloads/%{name}-%{version}.tar.bz2.sig
|
Source5: https://busybox.net/downloads/%{name}-%{version}.tar.bz2.sig
|
||||||
Source6: https://busybox.net/~vda/vda_pubkey.gpg#/%{name}.keyring
|
Source6: https://busybox.net/~vda/vda_pubkey.gpg#/%{name}.keyring
|
||||||
|
Source7: busybox-warewulf3.config
|
||||||
Patch0: cpio-long-opt.patch
|
Patch0: cpio-long-opt.patch
|
||||||
Patch1: sendmail-ignore-F-option.patch
|
Patch1: sendmail-ignore-F-option.patch
|
||||||
# other patches
|
# other patches
|
||||||
@ -40,6 +43,10 @@ BuildRequires: pkgconfig(libselinux)
|
|||||||
# for test suite
|
# for test suite
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
|
|
||||||
|
%ifarch x86_64 aarch64
|
||||||
|
%define build_ww3 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
BusyBox combines tiny versions of many common UNIX utilities into a
|
BusyBox combines tiny versions of many common UNIX utilities into a
|
||||||
single executable. It provides minimalist replacements for utilities
|
single executable. It provides minimalist replacements for utilities
|
||||||
@ -58,6 +65,14 @@ Group: System/Base
|
|||||||
BusyBox combines tiny versions of many common UNIX utilities into a
|
BusyBox combines tiny versions of many common UNIX utilities into a
|
||||||
single executable.
|
single executable.
|
||||||
|
|
||||||
|
%package warewulf3
|
||||||
|
Summary: Static version of Busybox - for building Warewulf3
|
||||||
|
Group: System/Base
|
||||||
|
|
||||||
|
%description warewulf3
|
||||||
|
This version of busybox is only for building Warewulf3
|
||||||
|
https://github.com/warewulf/warewulf3
|
||||||
|
|
||||||
%package testsuite
|
%package testsuite
|
||||||
Summary: Testsuite of busybox
|
Summary: Testsuite of busybox
|
||||||
Group: Development/Testing
|
Group: Development/Testing
|
||||||
@ -92,14 +107,28 @@ cp -a %{SOURCE3} .config
|
|||||||
make %{?_smp_mflags} -e oldconfig
|
make %{?_smp_mflags} -e oldconfig
|
||||||
make -e %{?_smp_mflags}
|
make -e %{?_smp_mflags}
|
||||||
mv busybox busybox-static
|
mv busybox busybox-static
|
||||||
|
|
||||||
|
%if 0%{?build_ww3}
|
||||||
|
make -e %{?_smp_mflags} clean
|
||||||
|
cp -a %{SOURCE7} .config
|
||||||
|
make %{?_smp_mflags} -e oldconfig
|
||||||
|
make -e %{?_smp_mflags}
|
||||||
|
mv busybox busybox-warewulf3
|
||||||
|
make -e busybox.links %{?_smp_mflags}
|
||||||
|
mv busybox.links busybox-warewulf3.links
|
||||||
|
%endif
|
||||||
|
|
||||||
make -e %{?_smp_mflags} clean
|
make -e %{?_smp_mflags} clean
|
||||||
cp -a %{SOURCE2} .config
|
cp -a %{SOURCE2} .config
|
||||||
make %{?_smp_mflags} -e oldconfig
|
make %{?_smp_mflags} -e oldconfig
|
||||||
#make -e %{?_smp_mflags}
|
#make -e %{?_smp_mflags}
|
||||||
make -e
|
make -e
|
||||||
make -e doc busybox.links %{?_smp_mflags}
|
make -e doc busybox.links %{?_smp_mflags}
|
||||||
|
|
||||||
%if 0%{?usrmerged}
|
%if 0%{?usrmerged}
|
||||||
sed -i -e 's,^/\(s\?bin\)/,/usr/\1/,' busybox.links
|
for i in busybox.links %{?build_ww3:busybox-warewulf3.links}; do
|
||||||
|
sed -i -e 's,^/\(s\?bin\)/,/usr/\1/,' $i
|
||||||
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -113,6 +142,10 @@ install -d %{buildroot}%{_sysconfdir}
|
|||||||
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/
|
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
install -m 644 docs/BusyBox.1 %{buildroot}%{_mandir}/man1
|
install -m 644 docs/BusyBox.1 %{buildroot}%{_mandir}/man1
|
||||||
|
%if 0%{?build_ww3}
|
||||||
|
install -m 0644 busybox-warewulf3.links %{buildroot}%{_datadir}/busybox
|
||||||
|
install -m 0755 busybox-warewulf3 %{buildroot}%{_bindir}
|
||||||
|
%endif
|
||||||
cp %{SOURCE2} %{buildroot}%{_datadir}/busybox/.config
|
cp %{SOURCE2} %{buildroot}%{_datadir}/busybox/.config
|
||||||
ln -s %_bindir/busybox %{buildroot}%{_datadir}/busybox/busybox
|
ln -s %_bindir/busybox %{buildroot}%{_datadir}/busybox/busybox
|
||||||
cp -a testsuite %{buildroot}%{_datadir}/busybox/testsuite
|
cp -a testsuite %{buildroot}%{_datadir}/busybox/testsuite
|
||||||
@ -146,4 +179,12 @@ make -e %{?_smp_mflags} test
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/busybox-static
|
%{_bindir}/busybox-static
|
||||||
|
|
||||||
|
%if 0%{?build_ww3}
|
||||||
|
%files warewulf3
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/busybox-warewulf3
|
||||||
|
%dir %{_datadir}/busybox
|
||||||
|
%{_datadir}/busybox/busybox-warewulf3.links
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user