summaryrefslogtreecommitdiff
path: root/sysutils/grub
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-07-20 12:42:35 +0000
committertron <tron@pkgsrc.org>2002-07-20 12:42:35 +0000
commit6184c63b15bb8b336d90f674388e8b0c1edd72ef (patch)
treef79eb910bc76c2b5db88f5969386b352c5910515 /sysutils/grub
parent703ba2fb6d03826e33ef28b02c69eb0fae56b4da (diff)
downloadpkgsrc-6184c63b15bb8b336d90f674388e8b0c1edd72ef.tar.gz
Add optional netboot support to "grub" package as suggested by
Julio Merino in PR pkg/17354.
Diffstat (limited to 'sysutils/grub')
-rw-r--r--sysutils/grub/Makefile23
-rw-r--r--sysutils/grub/PLIST4
2 files changed, 23 insertions, 4 deletions
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile
index a248053722a..43d01538752 100644
--- a/sysutils/grub/Makefile
+++ b/sysutils/grub/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.7 2002/06/08 18:28:06 cjep Exp $
-#
+# $NetBSD: Makefile,v 1.8 2002/07/20 12:42:36 tron Exp $
DISTNAME= grub-0.92
CATEGORIES= sysutils
MASTER_SITES= ftp://alpha.gnu.org/gnu/grub/
-MAINTAINER= jgoerzen@complete.org
+MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.gnu.org/software/grub/
COMMENT= GRand Unified Bootloader -- Boots *BSD, Linux, groks ffs, FAT, ext2
@@ -15,6 +14,24 @@ GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_BUILDLINK_ONLY= YES
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(GRUB_NETWORK_CARDS)
+BUILD_DEFS+= GRUB_NETWORK_CARDS
+CONFIGURE_ARGS+= --enable-diskless
+PLIST_SUBST+= NETBOOT=
+
+.for GRUB_NETWORK_CARD in ${GRUB_NETWORK_CARDS}
+CONFIGURE_ARGS+= --enable-${GRUB_NETWORK_CARD}
+.endfor
+.else
+PLIST_SUBST+= NETBOOT="@comment "
+.endif
+
+.if defined(GRUB_SCAN_ARGS)
+CONFIGURE_ARGS+= ${GRUB_SCAN_ARGS}
+.endif
+
.include "../../devel/binutils/buildlink.mk"
.include "../../devel/ncurses/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/grub/PLIST b/sysutils/grub/PLIST
index 9fe13ba3c5a..c016e2f2393 100644
--- a/sysutils/grub/PLIST
+++ b/sysutils/grub/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/11 19:53:25 magick Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/07/20 12:42:36 tron Exp $
bin/mbchk
@unexec install-info --delete --info-dir=%D/info %D/info/grub.info
info/grub.info
@@ -19,6 +19,8 @@ share/grub/${MACHINE_ARCH}-/fat_stage1_5
share/grub/${MACHINE_ARCH}-/ffs_stage1_5
share/grub/${MACHINE_ARCH}-/jfs_stage1_5
share/grub/${MACHINE_ARCH}-/minix_stage1_5
+${NETBOOT}share/grub/${MACHINE_ARCH}-/nbgrub
+${NETBOOT}share/grub/${MACHINE_ARCH}-/pxegrub
share/grub/${MACHINE_ARCH}-/reiserfs_stage1_5
share/grub/${MACHINE_ARCH}-/stage1
share/grub/${MACHINE_ARCH}-/stage2