From 2591f707fcbaf4e9ed30d9ca2c9d193784b38395 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 7 Aug 2012 15:03:01 -0500
Subject: memtest86 4.20 -new

---
 abs/extra/memtest86+/PKGBUILD           | 17 +++++++++++++++++
 abs/extra/memtest86+/memtest86+.install | 23 +++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 abs/extra/memtest86+/PKGBUILD
 create mode 100644 abs/extra/memtest86+/memtest86+.install

diff --git a/abs/extra/memtest86+/PKGBUILD b/abs/extra/memtest86+/PKGBUILD
new file mode 100644
index 0000000..36e4d68
--- /dev/null
+++ b/abs/extra/memtest86+/PKGBUILD
@@ -0,0 +1,17 @@
+# $Id: PKGBUILD 149463 2012-02-08 05:56:40Z eric $
+# Maintainer: Eric Bélanger <eric@archlinux.org>
+
+pkgname=memtest86+
+pkgver=4.20
+pkgrel=2
+pkgdesc="An advanced memory diagnostic tool"
+arch=('any')
+url="http://www.memtest.org"
+license=('GPL2')
+install=memtest86+.install
+source=(http://www.memtest.org/download/${pkgver}/${pkgname}-${pkgver}.bin.gz)
+sha1sums=('5a91dc1c9e3457456f314e6c99f579210624fafc')
+
+package() {
+  install -D -m644 "${srcdir}/${pkgname}-${pkgver}.bin" "${pkgdir}/boot/memtest86+/memtest.bin"
+}
diff --git a/abs/extra/memtest86+/memtest86+.install b/abs/extra/memtest86+/memtest86+.install
new file mode 100644
index 0000000..40b5f20
--- /dev/null
+++ b/abs/extra/memtest86+/memtest86+.install
@@ -0,0 +1,23 @@
+post_install() {
+cat << EOF
+For using memtest86+, please modify your bootloaders.
+
+If /boot is on root partitions:
+==> GRUB: add this to /boot/grub/menu.lst
+title  Memtest86+  [/boot/memtest86+/memtest.bin]
+kernel (hd?,?)/boot/memtest86+/memtest.bin
+
+==> Lilo: add this to lilo.conf
+image  = /boot/memtest86+/memtest.bin
+label  = "Memtest86+"
+
+If /boot is on a separate partition, then just use /memtest86+/memtest.bin
+without the /boot prefix.
+EOF
+}
+
+post_remove() {
+cat << EOF
+Please remove your additions from your bootloaders.
+EOF
+}
-- 
cgit v0.12

