pkgsrc-WIP-changes archive

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

flashrom: Import flashrom-1.2 as wip/flashrom



Module Name:	pkgsrc-wip
Committed By:	Denis Bodor <lefinnois%lefinnois.net@localhost>
Pushed By:	drrb
Date:		Tue Aug 16 15:22:35 2022 +0200
Changeset:	1f5edd34a75954dd9a10dd65fac6922fe9cc8f05

Modified Files:
	Makefile
Added Files:
	flashrom/DESCR
	flashrom/Makefile
	flashrom/PLIST
	flashrom/distinfo
	flashrom/patches/patch-Makefile
	flashrom/patches/patch-hwaccess.h

Log Message:
flashrom: Import flashrom-1.2 as wip/flashrom

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

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

diffstat:
 Makefile                          |  1 +
 flashrom/DESCR                    |  8 ++++++++
 flashrom/Makefile                 | 33 +++++++++++++++++++++++++++++++++
 flashrom/PLIST                    |  3 +++
 flashrom/distinfo                 |  7 +++++++
 flashrom/patches/patch-Makefile   | 30 ++++++++++++++++++++++++++++++
 flashrom/patches/patch-hwaccess.h | 18 ++++++++++++++++++
 7 files changed, 100 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0fe38db244..4a4f04ba4a 100644
--- a/Makefile
+++ b/Makefile
@@ -874,6 +874,7 @@ SUBDIR+=	firehose
 SUBDIR+=	flag
 SUBDIR+=	flam3-svn
 SUBDIR+=	flang-git
+SUBDIR+=	flashrom
 SUBDIR+=	flasm
 SUBDIR+=	flexdock
 SUBDIR+=	flexdump
diff --git a/flashrom/DESCR b/flashrom/DESCR
new file mode 100644
index 0000000000..58fd9d7643
--- /dev/null
+++ b/flashrom/DESCR
@@ -0,0 +1,8 @@
+flashrom is a utility for detecting, reading, writing, verifying and erasing
+flash chips. It is often used to flash BIOS/EFI/coreboot/firmware images
+in-system using a supported mainboard, but it also supports flashing of network
+cards (NICs), SATA controller cards, and other external devices which can
+program flash chips.
+It supports a wide range of flash chips (most commonly found in SOIC8, DIP8,
+SOIC16, WSON8, PLCC32, DIP32, TSOP32, and TSOP40 packages), which use various
+protocols such as LPC, FWH, parallel flash, or SPI.
diff --git a/flashrom/Makefile b/flashrom/Makefile
new file mode 100644
index 0000000000..b583460d3d
--- /dev/null
+++ b/flashrom/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+PROGNAME=	flashrom
+VERS=		1.2
+
+DISTNAME=	${PROGNAME}-${VERS}
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=flashrom/}
+GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER=	lefinnois%lefinnois.net@localhost
+HOMEPAGE=	https://www.flashrom.org/Flashrom
+COMMENT=	Utility to identify, read, write, verify and erase flash chips
+LICENSE=	gnu-gpl-v2
+
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+USE_TOOLS+=	pkg-config
+USE_TOOLS+=	gmake
+USE_LANGUAGES+=	c
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man8
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PROGNAME} ${DESTDIR}/${PREFIX}/bin/${PROGNAME}
+	${INSTALL_MAN} ${WRKSRC}/${PROGNAME}.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../devel/libftdi1/buildlink3.mk"
+.include "../../sysutils/pciutils/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/flashrom/PLIST b/flashrom/PLIST
new file mode 100644
index 0000000000..b8fb6cb5a3
--- /dev/null
+++ b/flashrom/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/flashrom
+man/man8/flashrom.8
diff --git a/flashrom/distinfo b/flashrom/distinfo
new file mode 100644
index 0000000000..3e73c483de
--- /dev/null
+++ b/flashrom/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (flashrom-1.2.tar.gz) = fd67120ff38153808881f3ba01e4f349c0e4c89dcddedc9529ff4331cd31e7b6
+SHA512 (flashrom-1.2.tar.gz) = d4d45f8cd94ad5496702ef039d45b320086053088dfdac06a63d56c66cb8ebd59f0987c9a38b1b0d9617dca6f0f8feb99223789dfdb6c6961fb743807609ea8a
+Size (flashrom-1.2.tar.gz) = 429866 bytes
+SHA1 (patch-Makefile) = c5f4258177bb2b1694d23b75eda8e07d5d1ffeda
+SHA1 (patch-hwaccess.h) = b803e82b329c96e184029d85014b4441b7e6a585
diff --git a/flashrom/patches/patch-Makefile b/flashrom/patches/patch-Makefile
new file mode 100644
index 0000000000..d4db45d422
--- /dev/null
+++ b/flashrom/patches/patch-Makefile
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Fix header file location
+
+--- Makefile.orig	2022-08-16 09:05:18.683825587 +0000
++++ Makefile
+@@ -1198,11 +1198,7 @@ endif
+ define LIBPCI_TEST
+ /* Avoid a failing test due to libpci header symbol shadowing breakage */
+ #define index shadow_workaround_index
+-#if !defined __NetBSD__
+ #include <pci/pci.h>
+-#else
+-#include <pciutils/pci.h>
+-#endif
+ struct pci_access *pacc;
+ int main(int argc, char **argv)
+ {
+@@ -1217,11 +1213,7 @@ export LIBPCI_TEST
+ define PCI_GET_DEV_TEST
+ /* Avoid a failing test due to libpci header symbol shadowing breakage */
+ #define index shadow_workaround_index
+-#if !defined __NetBSD__
+ #include <pci/pci.h>
+-#else
+-#include <pciutils/pci.h>
+-#endif
+ struct pci_access *pacc;
+ struct pci_dev *dev = {0};
+ int main(int argc, char **argv)
diff --git a/flashrom/patches/patch-hwaccess.h b/flashrom/patches/patch-hwaccess.h
new file mode 100644
index 0000000000..7a95a18dd6
--- /dev/null
+++ b/flashrom/patches/patch-hwaccess.h
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Fix header file location
+
+--- hwaccess.h.orig	2022-08-16 09:06:26.181267581 +0000
++++ hwaccess.h
+@@ -30,11 +30,7 @@
+  */
+ #define index shadow_workaround_index
+ 
+-#if !defined (__NetBSD__)
+ #include <pci/pci.h>
+-#else
+-#include <pciutils/pci.h>
+-#endif
+ 
+ #undef index
+ #endif /* NEED_PCI == 1 */


Home | Main Index | Thread Index | Old Index