summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2010-08-19 21:19:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-20 12:08:54 +0000
commit72157cb0ed81d9cedbcfa01bc7a734aa45f3dce1 (patch)
tree52e75b5a25b478df06970d413f0b9d12842a5165 /testing
parent1e33b7eab5f93075308e651c0be053bd3a572a3b (diff)
downloadaports-72157cb0ed81d9cedbcfa01bc7a734aa45f3dce1.tar.bz2
aports-72157cb0ed81d9cedbcfa01bc7a734aa45f3dce1.tar.xz
testing/dmidecode: new aport (dependency for flashrom)
dmidecode reports system hardware information stored in BIOS testing/flashrom: r1 - add dependency on dmidecode print warning if installed on grsec kernel
Diffstat (limited to 'testing')
-rw-r--r--testing/dmidecode/10-Makefile.patch13
-rw-r--r--testing/dmidecode/APKBUILD37
-rw-r--r--testing/flashrom/APKBUILD9
-rwxr-xr-xtesting/flashrom/flashrom.post-install15
4 files changed, 70 insertions, 4 deletions
diff --git a/testing/dmidecode/10-Makefile.patch b/testing/dmidecode/10-Makefile.patch
new file mode 100644
index 000000000..a964ec6db
--- /dev/null
+++ b/testing/dmidecode/10-Makefile.patch
@@ -0,0 +1,13 @@
+--- src/Makefile.orig
++++ src/Makefile
+@@ -21,8 +21,8 @@
+ # Pass linker flags here
+ LDFLAGS =
+
+-DESTDIR =
+-prefix = /usr/local
++DESTDIR = $(pkgdir)
++prefix = /usr
+ sbindir = $(prefix)/sbin
+ mandir = $(prefix)/share/man
+ man8dir = $(mandir)/man8
diff --git a/testing/dmidecode/APKBUILD b/testing/dmidecode/APKBUILD
new file mode 100644
index 000000000..742becd3c
--- /dev/null
+++ b/testing/dmidecode/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
+pkgname=dmidecode
+pkgver=2.9
+pkgrel=0
+pkgdesc="A utility for reporting system hardware as described by BIOS"
+url="http://www.nongnu.org/dmidecode"
+license="GPL"
+depends=
+makedepends=
+subpackages="$pkgname-doc"
+source="http://mirror.its.uidaho.edu/pub/savannah/dmidecode/dmidecode-${pkgver}.tar.gz
+ 10-Makefile.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+ for i in "$srcdir"/*.patch; do
+ [ -f "$i" ] || continue
+ msg "Applying $i"
+ patch -p1 -i "$i" || return 1
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make pkgdir=${pkgdir} install
+}
+
+md5sums="1f804692168178c19a8ec86d147fbc77 dmidecode-2.9.tar.gz
+8b928ec97c7c387db425a8176f9ee65c 10-Makefile.patch"
diff --git a/testing/flashrom/APKBUILD b/testing/flashrom/APKBUILD
index 62420605a..7864cd6a2 100644
--- a/testing/flashrom/APKBUILD
+++ b/testing/flashrom/APKBUILD
@@ -1,14 +1,15 @@
-Contributor: nangel@tetrasec.net
-# Maintainer:
+# Contributor:
+# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=flashrom
pkgver=0.9.2
-pkgrel=0
+pkgrel=1
pkgdesc="A utility for identifying, reading, writing, verifying and erasing flash chips"
url="http://www.flashrom.org/Flashrom"
license="GPL"
-depends=
+depends=dmidecode
makedepends=pciutils-dev
subpackages="$pkgname-doc"
+install="$pkgname.post-install"
source="http://qa.coreboot.org/releases/flashrom-0.9.2.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
diff --git a/testing/flashrom/flashrom.post-install b/testing/flashrom/flashrom.post-install
new file mode 100755
index 000000000..b7919f5fd
--- /dev/null
+++ b/testing/flashrom/flashrom.post-install
@@ -0,0 +1,15 @@
+#!/bin/sh
+if [ -e /proc/sys/kernel/grsecurity/ ]; then
+cat - <<EOF
+
+ ************[ flashrom package installation notice ]****************
+
+ You appear to be running a grsec enabled kernel.
+ flashrom needs write access to /dev/mem and will likely not work
+
+ *********************************************************************
+
+EOF
+fi
+exit 0
+