busybox-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. Summary: Statically linked binary providing simplified versions of system commands
  2. Name: busybox
  3. Version: 1.36.1
  4. Release: 1%{?_dist_release}
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: GPLv2
  9. URL: https://www.busybox.net/
  10. Source: https://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
  11. Source10: busybox-static.config
  12. Source11: busybox-anaconda.config
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: uClibc-ng-devel
  15. %description
  16. Busybox is a single binary which includes versions of a large number
  17. of system commands, including a shell. This package can be very
  18. useful for recovering from certain types of system failures,
  19. particularly those involving broken shared libraries.
  20. %package anaconda
  21. Group: system
  22. Summary: Version of busybox configured for use with anaconda
  23. %description anaconda
  24. Busybox is a single binary which includes versions of a large number
  25. of system commands, including a shell. The version contained in this
  26. package is designed for use with the Red Hat installation program,
  27. anaconda. The busybox package provides a binary better suited to
  28. normal use.
  29. %prep
  30. %setup -q
  31. %autopatch -p1
  32. %build
  33. # create static busybox
  34. arch=`uname -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/' -e 's/ppc64//' -e 's/powerpc64//'`
  35. cp %{SOURCE10} .config
  36. yes "" | make oldconfig
  37. # gcc needs to be convinced to use neither system headers, nor libs,
  38. # nor startfiles (i.e. crtXXX.o files)
  39. if test "$arch"; then \
  40. mv .config .config1 && \
  41. grep -v \
  42. -e ^CONFIG_SELINUX \
  43. -e ^CONFIG_FEATURE_HAVE_RPC \
  44. -e ^CONFIG_FEATURE_MOUNT_NFS \
  45. -e ^CONFIG_FEATURE_INETD_RPC \
  46. .config1 >.config && \
  47. echo "# CONFIG_FEATURE_HAVE_RPC is not set" >>.config && \
  48. echo "# CONFIG_FEATURE_MOUNT_NFS is not set" >>.config && \
  49. echo "# CONFIG_FEATURE_INETD_RPC is not set" >>.config && \
  50. yes "" | make oldconfig && \
  51. cat .config && \
  52. make V=1 %{_smp_mflags} \
  53. EXTRA_CFLAGS="-isystem %{_includedir}/uClibc" \
  54. CFLAGS_busybox="-static -nostartfiles -L%{_libdir}/uClibc %{_libdir}/uClibc/crt1.o %{_libdir}/uClibc/crti.o %{_libdir}/uClibc/crtn.o"; \
  55. else \
  56. cat .config && \
  57. make V=1 CC="gcc $RPM_OPT_FLAGS"; \
  58. fi
  59. cp busybox busybox.static
  60. cp docs/busybox.1 docs/busybox.static.1
  61. # create busybox optimized for anaconda
  62. make clean
  63. #
  64. grep -v \
  65. -e ^CONFIG_SELINUX \
  66. -e ^CONFIG_FEATURE_HAVE_RPC \
  67. -e ^CONFIG_FEATURE_MOUNT_NFS \
  68. -e ^CONFIG_FEATURE_INETD_RPC \
  69. %{SOURCE11} >.config && \
  70. echo "# CONFIG_FEATURE_HAVE_RPC is not set" >>.config && \
  71. echo "# CONFIG_FEATURE_MOUNT_NFS is not set" >>.config && \
  72. echo "# CONFIG_FEATURE_INETD_RPC is not set" >>.config && \
  73. yes "" | make oldconfig
  74. make %{_smp_mflags} CONFIG_DEBUG=y CC="gcc $RPM_OPT_FLAGS"
  75. cp busybox busybox.anaconda
  76. cp docs/busybox.1 docs/busybox.anaconda.1
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. mkdir -p $RPM_BUILD_ROOT/sbin
  80. install -m 755 busybox.static $RPM_BUILD_ROOT/sbin/busybox
  81. install -m 755 busybox.anaconda $RPM_BUILD_ROOT/sbin/busybox.anaconda
  82. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
  83. install -m 644 docs/busybox.static.1 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.1
  84. install -m 644 docs/busybox.anaconda.1 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.anaconda.1
  85. %files
  86. %defattr(-,root,root,-)
  87. %license LICENSE
  88. %doc README
  89. /sbin/busybox
  90. %{_mandir}/man1/busybox.1.gz
  91. %files anaconda
  92. %defattr(-,root,root,-)
  93. %license LICENSE
  94. %doc README
  95. /sbin/busybox.anaconda
  96. %{_mandir}/man1/busybox.anaconda.1.gz
  97. %changelog
  98. * Fri Sep 08 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.36.1-1
  99. - new upstream release.
  100. * Thu Nov 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.34.1-1
  101. - new upstream release.
  102. - dropped Patch1000.
  103. * Fri Mar 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.32.1-2
  104. - imported Patch1000 from upstream to fix CVE-2021-28831.
  105. * Thu Mar 25 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.32.1-1
  106. - new upstream release.
  107. * Sat Oct 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.30.1-1
  108. - new upstream release.
  109. - dropped all patches.
  110. * Mon Nov 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20.2-1
  111. - update to 1.20.2
  112. - Patch1: change uname -p behavior to coreutils's uname
  113. - small config changes
  114. * Mon May 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.4-1
  115. - update to 1.18.4
  116. - build with system uClibc
  117. * Fri May 08 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.13.4-2
  118. - add Patch20 to fix build failure on ppc
  119. http://lists.uclibc.org/pipermail/uclibc-cvs/2009-January/025891.html
  120. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.13.4-1
  121. - new upstream release
  122. - use uClibc for static build instead of glibc
  123. * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.0-1vl5
  124. - applied new versioning policy
  125. * Tue Aug 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  126. - initial build for Vine Linux based on FC-devel
  127. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.2.0-1.1
  128. - rebuild
  129. * Tue Jul 4 2006 Ivana Varekova <varekova@redhat.com> - 1:1.2.0-1
  130. - update to 1.2.0
  131. * Thu Jun 8 2006 Jeremy Katz <katzj@redhat.com> - 1:1.1.3-2
  132. - fix so that busybox.anaconda has sh
  133. * Wed May 31 2006 Ivana Varekova <varekova@redhat.com> - 1:1.1.3-1
  134. - update to 1.1.3
  135. * Mon May 29 2006 Ivana Varekova <varekova@redhat.com> - 1:1.1.2-3
  136. - fix Makefile typo (#193354)
  137. * Fri May 5 2006 Ivana Varekova <varekova@redhat.com> - 1:1.1.2-1
  138. - update to 1.1.2
  139. * Thu May 4 2006 Ivana Varekova <varekova@redhat.com> - 1:1.1.1-2
  140. - add -Z option to id command, rename ps command -Z option (#190534)
  141. * Wed May 03 2006 Ivana Varekova <varekova@redhat.com> - 1:1.1.1-1
  142. - update to 1.1.1
  143. - fix CVE-2006-1058 - BusyBox passwd command
  144. fails to generate password with salt (#187386)
  145. - add -minimal-toc option
  146. - add RPM_OPT_FLAGS
  147. - remove asm/page.h used sysconf command to get PAGE_SIZE
  148. - add overfl patch to aviod Buffer warning
  149. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.01-2.2.1
  150. - bump again for double-long bug on ppc(64)
  151. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.01-2.2
  152. - rebuilt for new gcc4.1 snapshot and glibc changes
  153. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  154. - rebuilt
  155. * Thu Oct 13 2005 Daniel Walsh <dwalsh@redhat.com> - 1.01-2
  156. - Add sepol for linking load_policy
  157. * Thu Sep 1 2005 Ivana Varekova <varekova@redhat.com> - 1.01-1
  158. - update to 1.01
  159. * Wed May 11 2005 Ivana Varekova <varekova@redhat.com> - 1.00-5
  160. - add debug files to debug_package
  161. * Mon Mar 7 2005 Ivana Varekova <varekova@redhat.com> - 1.00-4
  162. - rebuilt
  163. * Wed Jan 26 2005 Ivana Varekova <varekova@redhat.com> - 1.00-3
  164. - update to 1.00 - fix bug #145681
  165. - rebuild
  166. * Thu Jan 13 2005 Jeremy Katz <katzj@redhat.com> - 1.00.rc1-6
  167. - enable ash as the shell in busybox-anaconda
  168. * Sat Oct 2 2004 Bill Nottingham <notting@redhat.com> - 1.00.rc1-5
  169. - fix segfault in SELinux patch (#134404, #134406)
  170. * Fri Sep 17 2004 Phil Knirsch <pknirsch@redhat.com> - 1.00.rc1-4
  171. - Fixed double free in freecon() call (#132809)
  172. * Fri Sep 10 2004 Daniel Walsh <dwalsh@redhat.com> - 1.00.rc1-3
  173. - Add CONFIG_STATIC=y for static builds
  174. * Wed Aug 25 2004 Jeremy Katz <katzj@redhat.com> - 1.00.rc1-2
  175. - rebuild
  176. * Fri Jun 25 2004 Dan Walsh <dwalsh@redhat.com> 1.00-pre10.1
  177. - Add BuildRequires libselinux-devel
  178. - Update to latest from upstream
  179. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  180. - rebuilt
  181. * Tue May 11 2004 Karsten Hopp <karsten@redhat.de> 1.00.pre8-4
  182. - add mknod to busybox-anaconda
  183. * Wed Apr 21 2004 Karsten Hopp <karsten@redhat.de> 1.00.pre8-3
  184. - fix LS_COLOR in anaconda patch
  185. * Tue Mar 23 2004 Jeremy Katz <katzj@redhat.com> 1.00.pre8-2
  186. - add awk to busybox-anaconda
  187. * Sat Mar 20 2004 Dan Walsh <dwalsh@redhat.com> 1.00-pre8.1
  188. - Update with latest patch.
  189. - Turn off LS_COLOR in static patch
  190. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  191. - rebuilt
  192. * Tue Jan 27 2004 Dan Walsh <dwalsh@redhat.com> 1.00-pre5.2
  193. - Fix is_selinux_enabled calls
  194. * Mon Dec 29 2003 Dan Walsh <dwalsh@redhat.com> 1.00-pre5.1
  195. -Latest update
  196. * Wed Nov 26 2003 Dan Walsh <dwalsh@redhat.com> 1.00-pre3.2
  197. - Add insmod
  198. * Mon Sep 15 2003 Dan Walsh <dwalsh@redhat.com> 1.00-pre3.1
  199. - Upgrade to pre3
  200. * Thu Sep 11 2003 Dan Walsh <dwalsh@redhat.com> 1.00.2
  201. - Upgrade selinux support
  202. * Wed Jul 23 2003 Dan Walsh <dwalsh@redhat.com> 1.00.1
  203. - Upgrade to 1.00 package
  204. * Wed Jul 16 2003 Elliot Lee <sopwith@redhat.com> 0.60.5-10
  205. - Rebuild
  206. * Mon Jul 14 2003 Jeremy Katz <katzj@redhat.com> 0.60.5-9
  207. - rebuild
  208. * Mon Jul 14 2003 Jeremy Katz <katzj@redhat.com> 0.60.5-8
  209. - add dmesg to busybox-anaconda
  210. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  211. - rebuilt
  212. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  213. - rebuilt
  214. * Mon Jan 13 2003 Jeremy Katz <katzj@redhat.com> 0.60.5-5
  215. - lost nolock for anaconda mount when rediffing, it returns (#81764)
  216. * Mon Jan 6 2003 Dan Walsh <dwalsh@redhat.com> 0.60.5-4
  217. - Upstream developers wanted to eliminate the use of floats
  218. * Fri Jan 3 2003 Dan Walsh <dwalsh@redhat.com> 0.60.5-3
  219. - Fix free to work on large memory machines.
  220. * Sat Dec 28 2002 Jeremy Katz <katzj@redhat.com> 0.60.5-2
  221. - update Config.h for anaconda build to include more useful utils
  222. * Thu Dec 19 2002 Dan Walsh <dwalsh@redhat.com> 0.60.5-1
  223. - update latest release
  224. * Thu Dec 19 2002 Dan Walsh <dwalsh@redhat.com> 0.60.2-8
  225. - incorporate hammer changes
  226. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  227. - automated rebuild
  228. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  229. - automated rebuild
  230. * Mon May 06 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  231. - fix compilation on mainframe
  232. * Tue Apr 2 2002 Jeremy Katz <katzj@redhat.com>
  233. - fix static busybox (#60701)
  234. * Thu Feb 28 2002 Jeremy Katz <katzj@redhat.com>
  235. - don't include mknod in busybox.anaconda so we get collage mknod
  236. * Fri Feb 22 2002 Jeremy Katz <katzj@redhat.com>
  237. - rebuild in new environment
  238. * Wed Jan 30 2002 Jeremy Katz <katzj@redhat.com>
  239. - update to 0.60.2
  240. - include more pieces for the anaconda version so that collage can go away
  241. - make the mount in busybox.anaconda default to -onolock
  242. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  243. `- automated rebuild
  244. * Mon Jul 9 2001 Tim Powers <timp@redhat.com>
  245. - don't obsolete sash
  246. - fix URL and spelling in desc. to satisfy rpmlint
  247. * Thu Jul 05 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  248. - add missing defattr for anaconda subpackage
  249. * Thu Jun 28 2001 Erik Troan <ewt@redhat.com>
  250. - initial build for Red Hat