aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/grub2-bhyve
diff options
context:
space:
mode:
authorkmoore <kmoore@FreeBSD.org>2013-11-03 13:11:59 +0800
committerkmoore <kmoore@FreeBSD.org>2013-11-03 13:11:59 +0800
commit467962cf3116e8e8b0787078f1aa46b73a81dc06 (patch)
tree437545de890babf6b762398a972d848158d3bdad /sysutils/grub2-bhyve
parent2e1650f9e9532142a49315c99283dfe51f56be4e (diff)
downloadfreebsd-ports-gnome-467962cf3116e8e8b0787078f1aa46b73a81dc06.tar.gz
freebsd-ports-gnome-467962cf3116e8e8b0787078f1aa46b73a81dc06.tar.zst
freebsd-ports-gnome-467962cf3116e8e8b0787078f1aa46b73a81dc06.zip
- Add sysutils/grub2-bhyve 0.2
GNU GRUB is a multiboot boot loader. It was derived from GRUB, the GRand Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn. This port builds the grub-bhyve binary, allowing booting of non-FreeBSD operating systems in bhyve. WWW: https://github.com/grehan-freebsd/grub2-bhyve
Diffstat (limited to 'sysutils/grub2-bhyve')
-rw-r--r--sysutils/grub2-bhyve/Makefile43
-rw-r--r--sysutils/grub2-bhyve/distinfo2
-rw-r--r--sysutils/grub2-bhyve/pkg-descr8
-rw-r--r--sysutils/grub2-bhyve/pkg-plist1
4 files changed, 54 insertions, 0 deletions
diff --git a/sysutils/grub2-bhyve/Makefile b/sysutils/grub2-bhyve/Makefile
new file mode 100644
index 000000000000..37a234508532
--- /dev/null
+++ b/sysutils/grub2-bhyve/Makefile
@@ -0,0 +1,43 @@
+# Created by: kmoore@FreeBSD.org
+# $FreeBSD$
+
+PORTNAME= grub2-bhyve
+DISTVERSION= 0.2
+CATEGORIES= sysutils
+MASTER_SITES= http://github.com/${GH_ACCOUNT}/${PORTNAME}/archive/v${DISTVERSION}.tar.gz?dummy=/
+
+MAINTAINER= kmoore@FreeBSD.org
+COMMENT= Grub-emu loader for bhyve
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
+ help2man:${PORTSDIR}/misc/help2man
+
+SSP_UNSAFE= yes
+USE_GCC= 4.7
+USE_GMAKE= yes
+USE_GITHUB= yes
+GH_ACCOUNT= grehan-freebsd
+USES= bison gettext
+ONLY_FOR_ARCHS= amd64
+MAKE_JOBS_UNSAFE= yes
+CONFIGURE_ARGS= --with-platform=emu CC=gcc47 LEX=${LOCALBASE}/bin/flex --enable-grub-mount=no --enable-grub-mkfont=no
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} <= 1000000
+IGNORE= for FreeBSD 10 and higher
+.endif
+
+do-configure:
+ @ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS}
+
+do-build:
+ @ cd ${WRKSRC}/ && ${GMAKE}
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/grub2-bhyve/distinfo b/sysutils/grub2-bhyve/distinfo
new file mode 100644
index 000000000000..8ce95e93bfa2
--- /dev/null
+++ b/sysutils/grub2-bhyve/distinfo
@@ -0,0 +1,2 @@
+SHA256 (grub2-bhyve-0.2.tar.gz) = 04ca6eba5f98cc5a9b2390c9bbea1c27eb131a6147820c138ccd939220fc51bd
+SIZE (grub2-bhyve-0.2.tar.gz) = 8392664
diff --git a/sysutils/grub2-bhyve/pkg-descr b/sysutils/grub2-bhyve/pkg-descr
new file mode 100644
index 000000000000..958f6d9bba1f
--- /dev/null
+++ b/sysutils/grub2-bhyve/pkg-descr
@@ -0,0 +1,8 @@
+GNU GRUB is a multiboot boot loader. It was derived from GRUB, the GRand
+Unified Bootloader, which was originally designed and implemented by Erich
+Stefan Boleyn.
+
+This port builds the grub-bhyve binary, allowing booting of non-FreeBSD
+operating systems in bhyve.
+
+WWW: https://github.com/grehan-freebsd/grub2-bhyve
diff --git a/sysutils/grub2-bhyve/pkg-plist b/sysutils/grub2-bhyve/pkg-plist
new file mode 100644
index 000000000000..8bc8a614ef9f
--- /dev/null
+++ b/sysutils/grub2-bhyve/pkg-plist
@@ -0,0 +1 @@
+sbin/grub-bhyve