summaryrefslogtreecommitdiff
path: root/sysutils/grub
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-25 21:19:46 +0000
committerjlam <jlam@pkgsrc.org>2002-08-25 21:19:46 +0000
commit8515688e4fc1e61508e192542688b3ff53ea4ca8 (patch)
treed2d4ad86fb660f5fc1d74e8ef4b3232c9aad1046 /sysutils/grub
parent3612c287b035cd52b87361b84833d892629cf955 (diff)
downloadpkgsrc-buildlink2.tar.gz
Merge changes in the main trunk into the buildlink2 branch for thosebuildlink2
packages that have been converted to USE_BUILDLINK2.
Diffstat (limited to 'sysutils/grub')
-rw-r--r--sysutils/grub/Makefile27
-rw-r--r--sysutils/grub/PLIST6
2 files changed, 30 insertions, 3 deletions
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile
index bd73b0a8186..dd274573727 100644
--- a/sysutils/grub/Makefile
+++ b/sysutils/grub/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.6.2.2 2002/06/30 06:24:14 jlam Exp $
+# $NetBSD: Makefile,v 1.6.2.3 2002/08/25 21:21:25 jlam 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 +15,29 @@ GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_BUILDLINK2= 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
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/grub
+ ${INSTALL_DATA} ${WRKSRC}/netboot/README.netboot \
+ ${PREFIX}/share/doc/grub
+.else
+PLIST_SUBST+= NETBOOT="@comment "
+.endif
+
+.if defined(GRUB_SCAN_ARGS)
+CONFIGURE_ARGS+= ${GRUB_SCAN_ARGS}
+.endif
+
.include "../../devel/binutils/buildlink2.mk"
.include "../../devel/ncurses/buildlink2.mk"
diff --git a/sysutils/grub/PLIST b/sysutils/grub/PLIST
index 9fe13ba3c5a..d453f890bb4 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.1.1.1.2.1 2002/08/25 21:21:25 jlam Exp $
bin/mbchk
@unexec install-info --delete --info-dir=%D/info %D/info/grub.info
info/grub.info
@@ -14,11 +14,14 @@ man/man8/grub.8
sbin/grub
sbin/grub-install
sbin/grub-md5-crypt
+${NETBOOT}share/doc/grub/README.netboot
share/grub/${MACHINE_ARCH}-/e2fs_stage1_5
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
@@ -28,3 +31,4 @@ share/grub/${MACHINE_ARCH}-/xfs_stage1_5
@exec install-info --info-dir=%D/info %D/info/multiboot.info
@dirrm share/grub/${MACHINE_ARCH}-
@dirrm share/grub
+${NETBOOT}@dirrm share/doc/grub