[mactel-boot] Initial upload to fedora
Matthew Garrett
mjg59 at fedoraproject.org
Fri Feb 10 15:29:37 UTC 2012
commit 79edd1ae38bcc3d09d55474ce3a3b33b0f07122c
Author: Matthew Garrett <mjg at redhat.com>
Date: Fri Feb 10 10:29:04 2012 -0500
Initial upload to fedora
.gitignore | 1 +
mactel-boot.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..51a495e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mactel-boot-0.9.tar.bz2
diff --git a/mactel-boot.spec b/mactel-boot.spec
new file mode 100644
index 0000000..998d1c6
--- /dev/null
+++ b/mactel-boot.spec
@@ -0,0 +1,86 @@
+Name: mactel-boot
+Version: 0.9
+Release: 1%{?dist}
+Summary: Intel Mac boot files
+
+Group: System Environment/Base
+License: GPLv2+
+URL: http://www.codon.org.uk/~mjg59/mactel-boot/
+Source: http://www.codon.org.uk/~mjg59/mactel-boot/%{name}-%{version}.tar.bz2
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+ExclusiveArch: x86_64
+
+Requires: coreutils
+
+%description
+Files for booting Fedora on Intel-based Apple hardware using EFI.
+
+%prep
+%setup -q
+
+%build
+make PRODUCTVERSION="Fedora %{fedora}" %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+install -D -m 644 SystemVersion.plist $RPM_BUILD_ROOT/boot/efi/System/Library/CoreServices/SystemVersion.plist
+echo "This file is required for booting" >$RPM_BUILD_ROOT/boot/efi/mach_kernel
+touch $RPM_BUILD_ROOT/boot/efi/System/Library/CoreServices/boot.efi
+touch $RPM_BUILD_ROOT/boot/efi/.VolumeIcon.icns
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc GPL
+%doc Copyright
+/usr/share/man/man1/hfs-bless.1.gz
+/boot/efi/mach_kernel
+/boot/efi/System/Library/CoreServices/SystemVersion.plist
+/usr/sbin/hfs-bless
+%attr(0755, root, root) %ghost /boot/efi/System/Library/CoreServices/boot.efi
+%attr(0644, root, root) %ghost /boot/efi/.VolumeIcon.icns
+
+%triggerin -- grub-efi
+if [ x`df -T /boot/efi | tail -n +2 | awk '{print $2}'` = x"hfsplus" ]; then
+ hfs-bless /boot/efi/System/Library/CoreServices/boot.efi
+fi
+
+%triggerin -- grub2-efi
+if [ x`df -T /boot/efi | tail -n +2 | awk '{print $2}'` = x"hfsplus" ]; then
+ hfs-bless /boot/efi/System/Library/CoreServices/boot.efi
+fi
+
+%post
+if [ x`df -T /boot/efi | tail -n +2 | awk '{print $2}'` = x"hfsplus" ]; then
+ if [ -f /boot/efi/EFI/redhat/grub2-efi/grub.efi ]; then
+ ln -sf ../../../EFI/redhat/grub2-efi/grub.efi /boot/efi/System/Library/CoreServices/boot.efi;
+ elif [ -f /boot/efi/EFI/redhat/grub.efi ]; then
+ ln -sf ../../../EFI/redhat/grub.efi /boot/efi/System/Library/CoreServices/boot.efi;
+ fi
+
+ if [ -f /usr/share/pixmaps/bootloader/fedora.icns ]; then
+ cp /usr/share/pixmaps/bootloader/fedora.icns /boot/efi/.VolumeIcon.icns
+ fi
+fi
+
+%changelog
+* Tue Feb 07 2012 Matthew Garrett <mjg at redhat.com> - 0.9-1
+- new upstream, uses kernel ioctl rather than editing the fs by hand
+
+* Wed Dec 14 2011 Matthew Garrett <mjg at redhat.com> - 0.1-4
+- Fix symlinks
+
+* Tue Dec 13 2011 Matthew Garrett <mjg at redhat.com> - 0.1-3
+- rename binary to hfs-bless
+- make sure writes actually hit disk
+
+* Mon Nov 21 2011 Matthew Garrett <mjg at redhat.com> - 0.1-2
+- switch to using triggers
+- ensure that the filesystem is HFS+ before running bless
+
+* Fri Nov 18 2011 Matthew Garrett <mjg at redhat.com> - 0.1-1
+- initial release
diff --git a/sources b/sources
index e69de29..9993184 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9933eabcb6305292e76a2542043e421a mactel-boot-0.9.tar.bz2
More information about the scm-commits
mailing list