X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from sp4.qcslink.com (sp4.qcslink.com [200.35.147.4]) by lists.alpinelinux.org (Postfix) with ESMTP id E60FE1EB59A for ; Thu, 19 Aug 2010 21:36:56 +0000 (UTC) Received: from sp4.qcslink.com (localhost.localdomain [127.0.0.1]) by sp4.qcslink.com (Postfix) with ESMTP id 926541A649 for ; Thu, 19 Aug 2010 17:36:55 -0400 (EDT) Received: from [10.252.6.46] (c-71-198-163-57.hsd1.ca.comcast.net [71.198.163.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nangel@nothome.org) by sp4.qcslink.com (Postfix) with ESMTPSA id 1D1B21A63C for ; Thu, 19 Aug 2010 17:36:54 -0400 (EDT) Message-ID: <4C6DA445.4060001@tetrasec.net> Date: Thu, 19 Aug 2010 14:38:13 -0700 From: Nathan Angelacos User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Alpine-devel Subject: [alpine-devel] New aport - dmidecode; update to flashrom Content-Type: multipart/mixed; boundary="------------040101050703070105020105" X-Virus-Scanned: ClamAV using ClamSMTP This is a multi-part message in MIME format. --------------040101050703070105020105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit flashrom wants to run dmidecode, so built an aport for it updated the flashrom package to issue a warning if it is installed on a grsec kernel: #apk add flashrom (1/1) Installing flashrom (0.9.2-r1) Executing flashrom-0.9.2-r1.post-install ************[ 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 ********************************************************************* # --------------040101050703070105020105 Content-Type: text/x-patch; name="0001-testing-dmidecode-new-aport-dependency-for-flashrom.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-testing-dmidecode-new-aport-dependency-for-flashrom.pat"; filename*1="ch" >From 1de1d1a873507a41a00bfee38d4ccc2bf609a3f0 Mon Sep 17 00:00:00 2001 From: Nathan Angelacos Date: Thu, 19 Aug 2010 21:19:55 +0000 Subject: [PATCH] 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 --- testing/dmidecode/10-Makefile.patch | 13 +++++++++++ testing/dmidecode/APKBUILD | 37 ++++++++++++++++++++++++++++++++ testing/flashrom/APKBUILD | 9 ++++--- testing/flashrom/flashrom.post-install | 15 +++++++++++++ 4 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 testing/dmidecode/10-Makefile.patch create mode 100644 testing/dmidecode/APKBUILD create mode 100755 testing/flashrom/flashrom.post-install diff --git a/testing/dmidecode/10-Makefile.patch b/testing/dmidecode/10-Makefile.patch new file mode 100644 index 0000000..a964ec6 --- /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 0000000..742becd --- /dev/null +++ b/testing/dmidecode/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Nathan Angelacos +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 6242060..7864cd6 100644 --- a/testing/flashrom/APKBUILD +++ b/testing/flashrom/APKBUILD @@ -1,14 +1,15 @@ -Contributor: nangel@tetrasec.net -# Maintainer: +# Contributor: +# Maintainer: Nathan Angelacos 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 0000000..b7919f5 --- /dev/null +++ b/testing/flashrom/flashrom.post-install @@ -0,0 +1,15 @@ +#!/bin/sh +if [ -e /proc/sys/kernel/grsecurity/ ]; then +cat - <