pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

efibootmgr: add incomplete package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Wed Feb 7 19:09:39 2024 +0100
Changeset:	52f73036b1a310f714bc68d003c21158e12b8c69

Modified Files:
	Makefile
Added Files:
	efibootmgr/DESCR
	efibootmgr/Makefile
	efibootmgr/PLIST
	efibootmgr/TODO
	efibootmgr/distinfo
	efibootmgr/patches/patch-src_efi.c
	efivar/buildlink3.mk

Log Message:
efibootmgr: add incomplete package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=52f73036b1a310f714bc68d003c21158e12b8c69

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                           |  1 +
 efibootmgr/DESCR                   |  4 ++++
 efibootmgr/Makefile                | 21 +++++++++++++++++++++
 efibootmgr/PLIST                   |  4 ++++
 efibootmgr/TODO                    |  1 +
 efibootmgr/distinfo                |  6 ++++++
 efibootmgr/patches/patch-src_efi.c | 19 +++++++++++++++++++
 efivar/buildlink3.mk               | 14 ++++++++++++++
 8 files changed, 70 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9b2fafceb1..d7979e347d 100644
--- a/Makefile
+++ b/Makefile
@@ -754,6 +754,7 @@ SUBDIR+=	edid-decode
 SUBDIR+=	editorconfig-checker
 SUBDIR+=	eduke32
 SUBDIR+=	efgallery
+SUBDIR+=	efibootmgr
 SUBDIR+=	efivar
 SUBDIR+=	efl
 SUBDIR+=	efltk
diff --git a/efibootmgr/DESCR b/efibootmgr/DESCR
new file mode 100644
index 0000000000..3ca521b006
--- /dev/null
+++ b/efibootmgr/DESCR
@@ -0,0 +1,4 @@
+This is efibootmgr, a Linux user-space application to modify the
+Intel Extensible Firmware Interface (EFI) Boot Manager.  This
+application can create and destroy boot entries, change the boot
+order, change the next running boot option, and more.
diff --git a/efibootmgr/Makefile b/efibootmgr/Makefile
new file mode 100644
index 0000000000..baba0fbad5
--- /dev/null
+++ b/efibootmgr/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	efibootmgr-18
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=rhboot/efibootmgr/releases/download/${PKGVERSION_NOREV}/}
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/rhboot/efibootmgr/
+COMMENT=	Tool to modify the EFI boot manager
+LICENSE=	gnu-gpl-v2
+
+USE_TOOLS+=	gmake
+MAKE_FLAGS+=	EFIDIR=XXX_do_not_know
+CPPFLAGS+=	-I${PREFIX}/include/efivar
+
+BUILDLINK_TRANSFORM+=	rm:-Werror
+
+.include "../../devel/popt/buildlink3.mk"
+.include "../../wip/efivar/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/efibootmgr/PLIST b/efibootmgr/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/efibootmgr/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/efibootmgr/TODO b/efibootmgr/TODO
new file mode 100644
index 0000000000..f6c4155be0
--- /dev/null
+++ b/efibootmgr/TODO
@@ -0,0 +1 @@
+Needs more build fixes for non-Linux
diff --git a/efibootmgr/distinfo b/efibootmgr/distinfo
new file mode 100644
index 0000000000..7a1b5d39b0
--- /dev/null
+++ b/efibootmgr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (efibootmgr-18.tar.bz2) = 19958abaefd6251da42172cb5e8a74389df21dc6cfab2e776e74eb0505e6f5e9
+SHA512 (efibootmgr-18.tar.bz2) = 59112a3da3bad782ae893e1390f5a371474392f9779a2769a9d56335760b611b5330fe57b46e8d858d237786230162a0947261769c02c960549be6c1f6a5f4a6
+Size (efibootmgr-18.tar.bz2) = 40439 bytes
+SHA1 (patch-src_efi.c) = 2809fb2a33819a25bc3aaf96adccdc28d43bcf0c
diff --git a/efibootmgr/patches/patch-src_efi.c b/efibootmgr/patches/patch-src_efi.c
new file mode 100644
index 0000000000..9afd4bf0bf
--- /dev/null
+++ b/efibootmgr/patches/patch-src_efi.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Remove Linux-specific headers.
+This is wrong, but allows the build to proceed further on NetBSD.
+
+--- src/efi.c.orig	2024-02-07 18:08:09.765844437 +0000
++++ src/efi.c
+@@ -37,11 +37,7 @@
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+-#include <linux/sockios.h>
+-#include <linux/types.h>
+ #include <net/if.h>
+-#include <asm/types.h>
+-#include <linux/ethtool.h>
+ #include "efi.h"
+ #include "efibootmgr.h"
+ #include "list.h"
diff --git a/efivar/buildlink3.mk b/efivar/buildlink3.mk
new file mode 100644
index 0000000000..dcc72d8750
--- /dev/null
+++ b/efivar/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	efivar
+
+.if !defined(EFIVAR_BUILDLINK3_MK)
+EFIVAR_BUILDLINK3_MK:=
+
+# XXX	BUILDLINK_DEPMETHOD.efivar?=	build
+
+BUILDLINK_API_DEPENDS.efivar+=	efivar>=38
+BUILDLINK_PKGSRCDIR.efivar?=	../../wip/efivar
+.endif	# EFIVAR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-efivar


Home | Main Index | Thread Index | Old Index