busybox-vl.spec 9.1 KB

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