[arch-commits] Commit in refind-efi/repos (5 files)
Tobias Powalowski
tpowa at archlinux.org
Wed Sep 26 07:15:24 UTC 2012
Date: Wednesday, September 26, 2012 @ 03:15:24
Author: tpowa
Revision: 167146
archrelease: copy trunk to extra-any
Added:
refind-efi/repos/extra-any/
refind-efi/repos/extra-any/PKGBUILD
(from rev 167145, refind-efi/trunk/PKGBUILD)
refind-efi/repos/extra-any/refind-efi.install
(from rev 167145, refind-efi/trunk/refind-efi.install)
refind-efi/repos/extra-any/refind_include_more_shell_paths.patch
(from rev 167145, refind-efi/trunk/refind_include_more_shell_paths.patch)
refind-efi/repos/extra-any/refind_linux.conf
(from rev 167145, refind-efi/trunk/refind_linux.conf)
---------------------------------------+
PKGBUILD | 77 ++++++++++++++++++++++++++++++++
refind-efi.install | 26 ++++++++++
refind_include_more_shell_paths.patch | 21 ++++++++
refind_linux.conf | 5 ++
4 files changed, 129 insertions(+)
Copied: refind-efi/repos/extra-any/PKGBUILD (from rev 167145, refind-efi/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2012-09-26 07:15:24 UTC (rev 167146)
@@ -0,0 +1,77 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+
+pkgname="refind-efi"
+pkgver="0.4.5"
+pkgrel="1"
+pkgdesc="Rod Smith's fork of rEFIt UEFI Boot Manager"
+url="http://www.rodsbooks.com/refind/index.html"
+arch=('any')
+license=('GPL3' 'custom')
+makedepends=('gnu-efi-libs>=3.0q')
+depends=('dosfstools' 'efibootmgr')
+optdepends=('mactel-boot: For bless command in Apple Mac systems')
+conflicts=('refind-efi-x86_64' 'refind-efi-i386')
+provides=('refind-efi-x86_64' 'refind-efi-i386')
+replaces=('refind-efi-x86_64' 'refind-efi-i386')
+options=('!strip' 'docs')
+install="${pkgname}.install"
+source=("http://downloads.sourceforge.net/refind/refind-src-${pkgver}.zip"
+ 'refind_include_more_shell_paths.patch'
+ 'refind_linux.conf')
+sha1sums=('4c8f9809c9a25b787300eeda13a60288611c028f'
+ '7cdf178ddb1de20e1ec816b24de1769b39da0063'
+ '3d53eb615c3363d45feb95b9bfbf1d5491bf1c24')
+
+build() {
+ if [[ "${CARCH}" != "x86_64" ]]; then
+ msg "refind-efi can be built only in an x86_64 system. Exiting."
+ exit 1
+ fi
+
+ cd "${srcdir}/refind-${pkgver}/"
+ patch -Np1 -i "${srcdir}/refind_include_more_shell_paths.patch"
+
+ sed 's|/usr/local/include/efi|/usr/include/efi|g' -i "${srcdir}/refind-${pkgver}/Make.common"
+ sed 's|/usr/local/lib|/usr/lib|g' -i "${srcdir}/refind-${pkgver}/Make.common"
+ sed 's|ARCH :=|ARCH ?=|g' -i "${srcdir}/refind-${pkgver}/Make.common"
+ sed 's|ARCH =|ARCH ?=|g' -i "${srcdir}/refind-${pkgver}/refind/Makefile"
+
+ cp -r "${srcdir}/refind-${pkgver}" "${srcdir}/refind-${pkgver}-x86_64"
+ cd "${srcdir}/refind-${pkgver}-x86_64/"
+ ARCH="x86_64" make
+
+ cp -r "${srcdir}/refind-${pkgver}" "${srcdir}/refind-${pkgver}-i386"
+ cd "${srcdir}/refind-${pkgver}-i386/"
+ ARCH="ia32" make
+}
+
+package() {
+ ## install the rEFInd UEFI applications
+ install -d "${pkgdir}/usr/lib/refind/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}-x86_64/refind/refind_x64.efi" "${pkgdir}/usr/lib/refind/refindx64.efi"
+ install -D -m0644 "${srcdir}/refind-${pkgver}-i386/refind/refind_ia32.efi" "${pkgdir}/usr/lib/refind/refindia32.efi"
+
+ ## install the rEFInd config file
+ install -d "${pkgdir}/usr/lib/refind/config/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/refind.conf-sample" "${pkgdir}/usr/lib/refind/config/refind.conf"
+ install -D -m0644 "${srcdir}/refind_linux.conf" "${pkgdir}/usr/lib/refind/config/refind_linux.conf"
+
+ ## install the rEFInd icons
+ install -d "${pkgdir}/usr/share/refind/icons/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/icons"/* "${pkgdir}/usr/share/refind/icons/"
+
+ ## install the rEFInd docs
+ install -d "${pkgdir}/usr/share/refind/docs/html/"
+ install -d "${pkgdir}/usr/share/refind/docs/Styles/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/docs/refind"/* "${pkgdir}/usr/share/refind/docs/html/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/docs/Styles"/* "${pkgdir}/usr/share/refind/docs/Styles/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/README.txt" "${pkgdir}/usr/share/refind/docs/README"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/NEWS.txt" "${pkgdir}/usr/share/refind/docs/NEWS"
+ rm -f "${pkgdir}/usr/share/refind/docs/html/.DS_Store"
+
+ ## install the rEFIt license file, since rEFInd is a fork of rEFIt
+ install -d "${pkgdir}/usr/share/licenses/refind/"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/refind/LICENSE"
+}
Copied: refind-efi/repos/extra-any/refind-efi.install (from rev 167145, refind-efi/trunk/refind-efi.install)
===================================================================
--- extra-any/refind-efi.install (rev 0)
+++ extra-any/refind-efi.install 2012-09-26 07:15:24 UTC (rev 167146)
@@ -0,0 +1,26 @@
+post_install() {
+
+ cat << EOF
+
+refind-efi applications have been installed at /usr/lib/refind/*.efi
+
+Copy the efi application (according to your UEFI ARCH)
+and /usr/lib/refind/config/refind.conf to a sub-directory of <EFISYS>/EFI/
+and add an entry to firmware boot menu using efibootmgr or mactel-boot (for Macs)
+
+rEFInd icons have been installed at /usr/share/refind/icons/
+
+HTML Documentation is available at /usr/share/refind/docs/html/
+
+More info at https://wiki.archlinux.org/index.php/UEFI_Bootloaders#Using_rEFInd
+
+EOF
+
+}
+
+post_upgrade() {
+
+ post_install
+
+}
+
Copied: refind-efi/repos/extra-any/refind_include_more_shell_paths.patch (from rev 167145, refind-efi/trunk/refind_include_more_shell_paths.patch)
===================================================================
--- extra-any/refind_include_more_shell_paths.patch (rev 0)
+++ extra-any/refind_include_more_shell_paths.patch 2012-09-26 07:15:24 UTC (rev 167146)
@@ -0,0 +1,21 @@
+diff --git a/refind/main.c b/refind/main.c
+index 9558655..3f54b4f 100644
+--- a/refind/main.c
++++ b/refind/main.c
+@@ -58,13 +58,13 @@
+
+ #define MACOSX_LOADER_PATH L"System\\Library\\CoreServices\\boot.efi"
+ #if defined (EFIX64)
+-#define SHELL_NAMES L"\\EFI\\tools\\shell.efi,\\shellx64.efi"
++#define SHELL_NAMES L"\\EFI\\tools\\shellx64.efi,\\EFI\\tools\\shell.efi,\\shellx64.efi"
+ #define DRIVER_DIRS L"drivers,drivers_x64"
+ #elif defined (EFI32)
+-#define SHELL_NAMES L"\\EFI\\tools\\shell.efi,\\shellia32.efi"
++#define SHELL_NAMES L"\\EFI\\tools\\shellia32.efi,\\EFI\\tools\\shell.efi,\\shellia32.efi"
+ #define DRIVER_DIRS L"drivers,drivers_ia32"
+ #else
+-#define SHELL_NAMES L"\\EFI\\tools\\shell.efi"
++#define SHELL_NAMES L"\\EFI\\tools\\shell.efi,\\shell.efi"
+ #define DRIVER_DIRS L"drivers"
+ #endif
+
Copied: refind-efi/repos/extra-any/refind_linux.conf (from rev 167145, refind-efi/trunk/refind_linux.conf)
===================================================================
--- extra-any/refind_linux.conf (rev 0)
+++ extra-any/refind_linux.conf 2012-09-26 07:15:24 UTC (rev 167146)
@@ -0,0 +1,5 @@
+## This file should be present in the same directory as the EFISTUB kernel and initramfs files
+## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html
+
+"Boot with defaults" "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro"
+"Boot to terminal" "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro systemd.unit=multi-user.target"
More information about the arch-commits
mailing list