You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mkinitrd-net.spec 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define name mkinitrd-net
  2. %define version 1.10
  3. %define release 1fs
  4. Summary: Network-booting initrd builder
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Source0: %{name}-%{version}.tar.bz2
  9. Source1: http://belnet.dl.sourceforge.net/sourceforge/etherboot/mknbi-1.2.tar.bz2
  10. Source2: http://www.busybox.net/downloads/busybox-0.60.3.tar.bz2
  11. Source3: http://www.uclibc.org/downloads/uClibc-0.9.11.tar.bz2
  12. Source4: ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.1.13.tar.bz2
  13. Source5: http://udhcp.busybox.net/source/udhcp-0.9.7.tar.bz2
  14. Copyright: GPL/LGPL/MPL
  15. Group: System/Kernel and hardware
  16. BuildRoot: %{_tmppath}/%{name}-buildroot
  17. Prefix: %{_prefix}
  18. Requires: tftp-server
  19. %description
  20. mkinitrd-net allows you to build initial ramdisk images (initrds) suitable
  21. for use with Etherboot and other network-booting software. This package
  22. contains two main utilities: mkinitrd-net (to build an initrd containing a
  23. specified set of network-card modules) and mknbi (to generate
  24. Etherboot-usable NBI images from a given kernel and initrd). It also
  25. contains a helper script mknbi-set which will maintain sets of initrds to
  26. match all your currently-installed kernels.
  27. mkinitrd-net uses code from the uClibc, busybox, udhcp and Etherboot
  28. projects.
  29. %prep
  30. %setup -n initrd -a1 -a2 -a3 -a4 -a5
  31. %build
  32. %make LIBDIR=%{_libdir}/mknbi
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. %makeinstall tftpbootdir=$RPM_BUILD_ROOT%{_localstatedir}/tftpboot
  36. touch $RPM_BUILD_ROOT%{_sysconfdir}/dhcpd.conf.etherboot-pcimap.include
  37. ln -s %{_localstatedir}/tftpboot $RPM_BUILD_ROOT/tftpboot
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %post
  41. %{_bindir}/mknbi-set
  42. %triggerin -- kernel kernel-smp kernel-secure kernel-enterprise
  43. %{_bindir}/mknbi-set
  44. %files
  45. %defattr(-,root,root)
  46. %config(noreplace) %{_sysconfdir}/mknbi-set.conf
  47. %config(noreplace) %{_sysconfdir}/dhcpd.conf.etherboot.include
  48. %ghost %{_sysconfdir}/dhcpd.conf.etherboot-pcimap.include
  49. %{_bindir}/mknbi-*
  50. %{_bindir}/mkelf-*
  51. %{_bindir}/dis*
  52. %{_bindir}/mkinitrd-net
  53. %{_bindir}/include-modules
  54. %{_libdir}/mknbi
  55. %{_libdir}/mkinitrd-net
  56. %{_mandir}/man*/*
  57. /tftpboot
  58. %{_localstatedir}/tftpboot
  59. %doc README
  60. %doc AUTHORS.busybox LICENSE.busybox
  61. %doc AUTHORS.udhcpc COPYING.udhcpc
  62. %doc COPYING.wlanctl LICENSE.wlanctl THANKS.wlanctl
  63. %doc COPYING.uClibc
  64. %docdir %{_docdir}/mknbi*
  65. %{_docdir}/mknbi*
  66. %changelog
  67. * Fri Jul 26 2002 Michael Brown <mbrown@fensystems.co.uk> 1.10-1fs
  68. - Support for new binary etherboot.nic-dev-id structure
  69. - Added --kernel option patch from Stew Benedict at MandrakeSoft
  70. - Only try to use sudo if we are not already root
  71. * Wed Jun 05 2002 Michael Brown <mbrown@fensystems.co.uk> 1.9-1fs
  72. - Modifications to allow DHCP, TFTP and NFS servers to be separate machines.
  73. * Thu May 30 2002 Michael Brown <mbrown@fensystems.co.uk> 1.8-1fs
  74. - /tftpboot symlinked to /var/lib/tftpboot
  75. - Has ability to be quiet if "quiet" specified on kernel cmdline
  76. * Sun May 26 2002 Michael Brown <mbrown@fensystems.co.uk> 1.7-1fs
  77. - PCI-ID auto-mapping via dhcpd.conf.etherboot-pcimap.include
  78. * Fri May 24 2002 Michael Brown <mbrown@fensystems.co.uk> 1.6-1fs
  79. - Bugfixes, migrated /tftpboot to /var/lib/tftpboot
  80. * Thu May 23 2002 Michael Brown <mbrown@fensystems.co.uk> 1.5-1fs
  81. - Now includes dhcpd.conf.etherboot.include
  82. - Automatically scans for all network modules in the pcimap file
  83. * Wed May 08 2002 Michael Brown <mbrown@fensystems.co.uk> 1.4-1fs
  84. - Bugfixes: tmpdir selection, linuxrc typos, ifconfig peculiarities
  85. * Sat May 04 2002 Michael Brown <mbrown@fensystems.co.uk> 1.3-1fs
  86. - During %make, LIBDIR must be set for mknbi
  87. - Added %post scriptlet since %trigger seems not to be being triggered...
  88. * Sat May 04 2002 Michael Brown <mbrown@fensystems.co.uk> 1.2-1fs
  89. - Added extra sources instead of requiring "make" to download them
  90. * Sat May 04 2002 Michael Brown <mbrown@fensystems.co.uk> 1.1-1fs
  91. - First attempt at an RPM package