diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3b7f54 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +aboot-1.0_pre20040408.tar.bz2 +aboot_1.0~pre20040408-2.diff.gz diff --git a/aboot-1.0.doc_install_fix.patch b/aboot-1.0.doc_install_fix.patch new file mode 100644 index 0000000..4fae1a5 --- /dev/null +++ b/aboot-1.0.doc_install_fix.patch @@ -0,0 +1,29 @@ +diff -up aboot-1.0_pre20040408/doc/man/Makefile.install_fix aboot-1.0_pre20040408/doc/man/Makefile +--- aboot-1.0_pre20040408/doc/man/Makefile.install_fix 2007-09-17 11:36:51.000000000 +0200 ++++ aboot-1.0_pre20040408/doc/man/Makefile 2007-09-17 11:42:28.000000000 +0200 +@@ -32,20 +32,20 @@ clean: + rm -f aboot.8 aboot.conf.5 abootconf.8 isomarkboot.1 sdisklabel.8 netabootwrap.1 manpage.log manpage.links manpage.refs + + aboot.8: aboot.sgml +- nsgmls aboot.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man aboot.sgml + + aboot.conf.5: aboot.conf.sgml +- nsgmls aboot.conf.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man aboot.conf.sgml + + abootconf.8: abootconf.sgml +- nsgmls abootconf.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man abootconf.sgml + + isomarkboot.1: isomarkboot.sgml +- nsgmls isomarkboot.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man isomarkboot.sgml + + netabootwrap.1: netabootwrap.sgml +- nsgmls netabootwrap.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man netabootwrap.sgml + + sdisklabel.8: sdisklabel.sgml +- nsgmls sdisklabel.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl ++ docbook2man sdisklabel.sgml diff --git a/aboot-optflags.patch b/aboot-optflags.patch new file mode 100644 index 0000000..692f62e --- /dev/null +++ b/aboot-optflags.patch @@ -0,0 +1,11 @@ +diff -up aboot-1.0_pre20040408/Makefile.optflags aboot-1.0_pre20040408/Makefile +--- aboot-1.0_pre20040408/Makefile.optflags 2007-09-27 15:31:38.000000000 +0200 ++++ aboot-1.0_pre20040408/Makefile 2007-09-27 15:32:03.000000000 +0200 +@@ -18,6 +18,7 @@ VMLINUXGZ = $(KSRC)/arch/alpha/boot/vmli + + # for boot testing + #CFGDEFS = -DDEBUG_ISO -DDEBUG_ROCK -DDEBUG_EXT2 -DDEBUG ++CFGDEFS = $(OPTFLAGS) + + # root, aka prefix + root = diff --git a/aboot.spec b/aboot.spec new file mode 100644 index 0000000..29b207f --- /dev/null +++ b/aboot.spec @@ -0,0 +1,125 @@ +%define prever pre20040408 +Summary: A bootloader which can be started from the SRM console +Name: aboot +Version: 1.0 +Release: 0.1.%{prever}%{?dist} +ExclusiveArch: alpha +License: GPLv2+ +Group: System Environment/Base +URL: http://www.sf.net/projects/aboot +Source0: http://aboot.sourceforge.net/tarballs/aboot-%{version}_%{prever}.tar.bz2 +Patch0: aboot_1.0~%{prever}-2.diff.gz +Patch1: aboot-1.0.doc_install_fix.patch +Patch2: aboot-optflags.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: kernel-devel, docbook-utils + +%description +The aboot program is the preferred way of booting Linux when using SRM +firmware (the firmware normally used to boot an DEC UNIX). Aboot supports +the creation of bootable block devices and contains a program which can +load Linux kernels from a filesystem which is bootable by SRM. Aboot +also supports direct booting from various filesystems (ext2, ISO9660, +UFS), booting of executable object files (ELF and ECOFF), booting of +compressed kernels, network booting (using bootp), partition tables in +DEC UNIX format, and interactive booting and default configurations for +SRM consoles that cannot pass long option strings. + +If you are installing Fedora or Red Hat Linux on an Alpha, you'll need to +install the aboot package. + +%prep +%setup -q -n %{name}-%{version}_%{prever} +%patch0 -p1 +%patch1 -p1 -b .doc_install_fix +%patch2 -p1 -b .optflags + +%build +sed -ie "s^KSRC.*=.*$^KSRC=/lib/modules/`uname -r`/build^" Makefile +export OPTFLAGS="%{optflags}" +make +cd doc/man && make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT +chmod go= $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 +make root=$RPM_BUILD_ROOT bindir=$RPM_BUILD_ROOT/sbin install + +mv -f sdisklabel/README sdisklabel/README-sdisklabel || true + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%doc INSTALL README ChangeLog TODO aboot.conf sdisklabel/README-sdisklabel COPYING +%attr(644, root, root) /boot/bootlx +/sbin/abootconf +/sbin/e2writeboot +/sbin/isomarkboot +/sbin/swriteboot +%defattr(0644,root,root) +%{_mandir}/man8/* +%{_mandir}/man5/* +%{_mandir}/man1/* + +%changelog +* Thu Sep 27 2007 Oliver Falk - 1.0-0.1.pre20040408 +- bz#294641: + - New versioning - versioning guidelines + - Add patch to add global rpm cflags and use 'em + - Fix manpage attrs - defattr + +* Fri Sep 21 2007 Oliver Falk - 1.0_pre20040408-2 +- Fix some rpmlint warnings, bz#294641 +- Fix license: GPLv2+, bz#294641 + +* Mon Aug 20 2007 Oliver Falk - 1.0_pre20040408-1 +- Rebuild in koji +- Cleanup spec; Merge RH, AC, MDK spec +- To be included into upstream fp.o hopefully + +* Mon Apr 18 2005 Balint Cristian +- Latest from CVS +- Build for alphacore 1.0 +- Fix build with 2.6 + +* Tue Nov 30 1999 Matt Wilson +- changed to use ext2 patch based from Ruediger Oertel + +* Mon Nov 22 1999 Matt Wilson +- patched ext2 read code to deal with rev1 filesystems +- added a patch to properly guess IDE cdroms + (well, sort of) + +* Tue Sep 07 1999 Cristian Gafton +- add patch to allow it to boot on *large* disks + +* Mon Apr 26 1999 Cristian Gafton +- patch from Jay Estabrook to make it work with EXT2 filesystems larger + than 2Gb + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 9) + +* Tue Jan 19 1999 Erik Troan +- built for Red HAt 6.0 + +* Tue Sep 15 1998 Richard Henderson +- use aboot.lds for elf, so that the phdr comes out right. +- relax the need to have a compiled kernel installed. +- make sdisklabel take partition sizes in sectors, not kilobytes. + +* Thu Aug 20 1998 Maciej W. Rozycki +- corrected a small but essential error in the ELF patch + +* Mon Aug 3 1998 Maciej W. Rozycki +- added a patch to allow booting of ELF images created with binutils >= 2.9 +- compiled against glibc 2.0.94 + +* Sun May 31 1998 Maciej W. Rozycki +- made changes needed for glibc2 and 2.1.x kernels + diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..726e4ba --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +ac1214102d8304f326655e3e36d89847 aboot-1.0_pre20040408.tar.bz2 +4958ed11b630af923417d0950229704a aboot_1.0~pre20040408-2.diff.gz