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

View File

@@ -0,0 +1,6 @@
Memtest86+ is a thorough, stand alone memory test for i386 architecture
systems. BIOS-based memory tests are only a quick check and often miss
failures that are detected by Memtest86+.
Memtest86+ is a descendant of Memtest86. Some people have found it
more comprehensive.

View File

@@ -0,0 +1,25 @@
===========================================================================
$NetBSD: MESSAGE,v 1.3 2007/01/03 22:47:18 smb Exp $
Memtest86+ is a standalone program, it does not run within an operating
system. It has been designed to boot from a PC floppy disk. To install
Memtest86 on a floppy, insert a disk then type:
dd if=${PREFIX}/mdec/memtestplus.bin of=/dev/rfd0a conv=osync
The package also includes the ELF binary ${PREFIX}/mdec/memtestplus
that the NetBSD bootstrap can load instead of a kernel. Please see
boot(8) for details. If your ${PREFIX}/mdec directory is not on the
root filesystem you need to copy the ELF binary there first.
If you have built the optional .iso file, you can use cdrtools to
burn it to a CD.
The documentation claims that the .bin file can be booted by LILO; I have
not tested that. It can be booted via Grub.
Please read the documentation at:
${PREFIX}/share/doc/memtestplus/README
${PREFIX}/share/doc/memtestplus/FAQ
http://www.memtest.org
===========================================================================

View File

@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.16 2012/10/23 19:51:12 asau Exp $
#
# Note -- version number also in the do-install rule
MAJVER=4
MINVER=20
DISTNAME= memtest86+-${MAJVER}.${MINVER}
PKGNAME= memtestplus-${MAJVER}.${MINVER}
CATEGORIES= sysutils
MASTER_SITES= http://www.memtest.org/download/${MAJVER}.${MINVER}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.memtest.org/
COMMENT= Thorough, stand alone memory test for x86 arch
LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 NetBSD-*-x86_64 Linux-*-x86_64
USE_TOOLS+= gmake
SUBST_CLASSES+= delcr
SUBST_STAGE.delcr= post-build
SUBST_MESSAGE.delcr= Deleting CRs
SUBST_FILES.delcr= README
SUBST_SED.delcr= -e 's/.$$//g'
.include "options.mk"
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3.*)
BUILDLINK_TRANSFORM+= rm:-fno-stack-protector
.endif
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/mdec
${INSTALL_DATA} ${WRKSRC}/memtest.bin \
${DESTDIR}${PREFIX}/mdec/memtestplus.bin
${INSTALL_DATA} ${WRKSRC}/memtest ${DESTDIR}${PREFIX}/mdec/memtestplus
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/memtestplus
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/memtestplus
${INSTALL_DATA} ${WRKSRC}/FAQ ${DESTDIR}${PREFIX}/share/doc/memtestplus
.if !empty(PKG_OPTIONS:Miso)
${INSTALL_DATA} ${WRKSRC}/mt${MAJVER}${MINVER}.iso \
${DESTDIR}${PREFIX}/mdec/memtestplus.iso
.endif
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.6 2009/06/14 21:28:47 joerg Exp $
mdec/memtestplus
mdec/memtestplus.bin
${PLIST.iso}mdec/memtestplus.iso
share/doc/memtestplus/FAQ
share/doc/memtestplus/README

View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.9 2011/05/30 19:58:07 jakllsch Exp $
SHA1 (memtest86+-4.20.tar.gz) = df49a3d0b003c575d5a26dedc3d66dbe905db1b6
RMD160 (memtest86+-4.20.tar.gz) = abf74cfd34c220b104c3f364d782a4fcd2b7ec8a
Size (memtest86+-4.20.tar.gz) = 206044 bytes
SHA1 (patch-aa) = d6d193813985ec996495c010a5733ade83d0811c
SHA1 (patch-ab) = 8e5ce60b904763c030931a532f3b438968fca434
SHA1 (patch-ac) = fbfbcc23549e610af5d42ebe3710025f682ca9ec
SHA1 (patch-ad) = aecaa5cee6a27d4e5beb9e3fc0c7efacf21eddf4
SHA1 (patch-ae) = 64931515368b099a23c76468c837fae569cb3cc1

View File

@@ -0,0 +1,22 @@
# $NetBSD: options.mk,v 1.5 2008/11/24 04:06:00 smb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.memtestplus
PKG_SUPPORTED_OPTIONS= iso serialconsole
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.options.mk"
PLIST_VARS+= iso
.if !empty(PKG_OPTIONS:Miso)
BUILD_TARGET= iso
BUILD_DEPENDS+= {cdrtools,cdrtools-ossdvd}>=2.01:../../sysutils/cdrtools
PLIST.iso= yes
.endif
.if !empty(PKG_OPTIONS:Mserialconsole)
SUBST_CLASSES+= serialopt
SUBST_STAGE.serialopt= post-patch
SUBST_MESSAGE.serialopt= Setting serial console option
SUBST_FILES.serialopt= config.h
SUBST_SED.serialopt= -e '/define.*SERIAL_CONSOLE_DEFAULT/s/0/1/'
.endif

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-aa,v 1.4 2009/11/24 17:20:40 jakllsch Exp $
--- Makefile.orig 2009-09-22 00:35:46.000000000 +0000
+++ Makefile
@@ -6,7 +6,7 @@
#
# Path for the floppy disk device
#
-FDISK=/dev/fd0
+FDISK=/dev/fd0a
AS=as -32
CC=gcc
@@ -61,7 +61,6 @@ asm:
iso:
make all
./makeiso.sh
- rm -f *.o *.s memtest.bin memtest memtest_shared memtest_shared.bin
install: all
dd <memtest.bin >$(FDISK) bs=8192

View File

@@ -0,0 +1,62 @@
$NetBSD: patch-ab,v 1.4 2009/11/24 17:20:40 jakllsch Exp $
--- test.c.orig 2009-09-22 00:35:46.000000000 +0000
+++ test.c
@@ -11,10 +11,32 @@
#include "test.h"
#include "config.h"
-#include <sys/io.h>
#include "dmi.h"
#include <inttypes.h>
+static __inline void
+pkg_outb (unsigned char value, unsigned short int port)
+{
+ __asm__ __volatile__ ("outb %b0,%w1": :"a" (value), "Nd" (port));
+}
+
+static __inline void
+pkg_outb_p (unsigned char value, unsigned short int port)
+{
+ __asm__ __volatile__ ("outb %b0,%w1\noutb %%al,$0x80": :"a" (value),
+ "Nd" (port));
+}
+
+static __inline unsigned char
+pkg_inb_p (unsigned short int port)
+{
+ unsigned char _v;
+
+ __asm__ __volatile__ ("inb %w1,%0\noutb %%al,$0x80":"=a" (_v):"Nd" (port));
+ return _v;
+}
+
+
extern int segs, bail;
extern volatile ulong *p;
extern ulong p1, p2;
@@ -1414,18 +1436,18 @@ void beep(unsigned int frequency)
unsigned int count = 1193180 / frequency;
// Switch on the speaker
- outb_p(inb_p(0x61)|3, 0x61);
+ pkg_outb_p(pkg_inb_p(0x61)|3, 0x61);
// Set command for counter 2, 2 byte write
- outb_p(0xB6, 0x43);
+ pkg_outb_p(0xB6, 0x43);
// Select desired Hz
- outb_p(count & 0xff, 0x42);
- outb((count >> 8) & 0xff, 0x42);
+ pkg_outb_p(count & 0xff, 0x42);
+ pkg_outb((count >> 8) & 0xff, 0x42);
// Block for 100 microseconds
sleep(100, 1);
// Switch off the speaker
- outb(inb_p(0x61)&0xFC, 0x61);
+ pkg_outb(pkg_inb_p(0x61)&0xFC, 0x61);
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.5 2010/07/08 18:54:22 jakllsch Exp $
--- memtest.lds.orig 2010-04-28 12:11:15.000000000 +0000
+++ memtest.lds
@@ -3,7 +3,7 @@ OUTPUT_ARCH(i386);
ENTRY(_start);
SECTIONS {
- . = 0x5000;
+ . = 0x100000;
_start = . ;
.data : {
*(.data)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.2 2009/11/24 17:20:40 jakllsch Exp $
--- README.orig 2009-09-22 00:35:46.000000000 +0000
+++ README
@@ -174,7 +174,7 @@ individual errors. In BadRAM Patterns m
use with the Linux BadRAM feature. This slick feature allows Linux to
avoid bad memory pages. Details about the BadRAM feature can be found at:
- http://home.zonnet.nl/vanrein/badram
+ http://rick.vanrein.org/linux/badram/
For individual errors the following information is displayed when a memory
error is detected. An error message is only displayed for errors with a

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ae,v 1.2 2009/11/24 17:20:40 jakllsch Exp $
--- error.c.orig 2009-09-22 00:35:46.000000000 +0000
+++ error.c
@@ -11,7 +11,6 @@
#include "test.h"
#include "config.h"
-#include <sys/io.h>
#include "dmi.h"
#define NULL 0