Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

1
sysutils/flashrom/DESCR Normal file
View File

@@ -0,0 +1 @@
Flashrom is a utility which can be used to detect, read, and write BIOS chips.

View File

@@ -0,0 +1,45 @@
# $NetBSD: Makefile,v 1.6 2012/10/23 19:51:02 asau Exp $
#
DISTNAME= flashrom-0.9.5.2
PKGNAME= ${DISTNAME:S/-r/pre/}
CATEGORIES= sysutils
MASTER_SITES= http://download.flashrom.org/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jakllsch@NetBSD.org
HOMEPAGE= http://www.flashrom.org/
COMMENT= Universal (coreboot/LinuxBIOS) flash utility
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake pkg-config
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode
.endif
.if ${OPSYS} == "NetBSD"
SUBST_CLASSES+= pciutils
SUBST_FILES.pciutils= Makefile
SUBST_FILES.pciutils+= hwaccess.h
SUBST_MESSAGE.pciutils= adjusting pciutils headers
SUBST_STAGE.pciutils= pre-configure
SUBST_SED.pciutils+= -e 's,<pci/pci.h>,<pciutils/pci.h>,g'
LDFLAGS+= -lpci
CPPFLAGS+= -I/${PREFIX}/include
.endif
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flashrom ${DESTDIR}${PREFIX}/sbin/flashrom
${INSTALL_MAN} ${WRKSRC}/flashrom.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/flashrom.8
.include "../../devel/libftdi/buildlink3.mk"
.include "../../sysutils/pciutils/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
sysutils/flashrom/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/10/23 15:56:19 jakllsch Exp $
man/man8/flashrom.8
sbin/flashrom

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2012/11/23 12:08:04 joerg Exp $
SHA1 (flashrom-0.9.5.2.tar.bz2) = 483c16a4a8bb7ceec8ea439b13e2b97d669deb25
RMD160 (flashrom-0.9.5.2.tar.bz2) = dba65b6f12370eb686321e937e00479aff4a3739
Size (flashrom-0.9.5.2.tar.bz2) = 347242 bytes
SHA1 (patch-bitbang__spi.c) = 63fa8611cf7ebe9fa5c8e669d860c7e21d1a1095
SHA1 (patch-ichspi.c) = 6ef54e13e6075b665fb125dd99b53887a606fa8f

View File

@@ -0,0 +1,44 @@
$NetBSD: patch-bitbang__spi.c,v 1.1 2012/11/23 12:08:04 joerg Exp $
--- bitbang_spi.c.orig 2012-11-22 21:16:09.000000000 +0000
+++ bitbang_spi.c
@@ -26,33 +26,33 @@
#include "spi.h"
/* Note that CS# is active low, so val=0 means the chip is active. */
-static void bitbang_spi_set_cs(const const struct bitbang_spi_master *master, int val)
+static void bitbang_spi_set_cs(const struct bitbang_spi_master *master, int val)
{
master->set_cs(val);
}
-static void bitbang_spi_set_sck(const const struct bitbang_spi_master *master, int val)
+static void bitbang_spi_set_sck(const struct bitbang_spi_master *master, int val)
{
master->set_sck(val);
}
-static void bitbang_spi_set_mosi(const const struct bitbang_spi_master *master, int val)
+static void bitbang_spi_set_mosi(const struct bitbang_spi_master *master, int val)
{
master->set_mosi(val);
}
-static int bitbang_spi_get_miso(const const struct bitbang_spi_master *master)
+static int bitbang_spi_get_miso(const struct bitbang_spi_master *master)
{
return master->get_miso();
}
-static void bitbang_spi_request_bus(const const struct bitbang_spi_master *master)
+static void bitbang_spi_request_bus(const struct bitbang_spi_master *master)
{
if (master->request_bus)
master->request_bus();
}
-static void bitbang_spi_release_bus(const const struct bitbang_spi_master *master)
+static void bitbang_spi_release_bus(const struct bitbang_spi_master *master)
{
if (master->release_bus)
master->release_bus();

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ichspi.c,v 1.1 2012/11/23 12:08:04 joerg Exp $
--- ichspi.c.orig 2012-11-22 21:15:44.000000000 +0000
+++ ichspi.c
@@ -1125,7 +1125,7 @@ static void ich_hwseq_set_addr(uint32_t
static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr)
{
uint8_t enc_berase;
- static const uint32_t const dec_berase[4] = {
+ static const uint32_t dec_berase[4] = {
256,
4 * 1024,
8 * 1024,