X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id AF086DC0080 for ; Wed, 28 Aug 2013 10:16:23 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id bv4so490414qab.10 for ; Wed, 28 Aug 2013 08:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=k/BHepWt7QQ/gjk6g1yP6lmY2XXM2IlzMtvdZdl4w4E=; b=lqx8xqoNzSZ7sW+WdrCSiP0A+E3F3cac65Uw5J/2bNaQSL1YGVU28WI6k+thtsU6sK bDDPOJvs/6sj9hRvbCZ2hvohryBkOJ/P1wn0VwmKN1RcXxpKO/cguGQUBnymA7scp6yP EOLnMXJn9zrdaHt42LUp/WNYISm/+uhbyroSRSeOAur38GsiIJ2ZHjtU9RjGn+fSchJb mDZOiOXpJFOpDV5fUwXvZtn+eT+7MHcetHruNZGNKO60rjpav1hoA5PXCuDAPfxMrZIq 9yA6J7S7ysGODPfk41jvRVaZJyPpU9lRhAwl7UtHEN0PEOGcaET3SP7BY1qx8qOTwDZD Iwaw== X-Received: by 10.229.129.3 with SMTP id m3mr8667677qcs.13.1377703534988; Wed, 28 Aug 2013 08:25:34 -0700 (PDT) Received: from alpine-dev.mezocliq.com ([38.122.241.27]) by mx.google.com with ESMTPSA id p6sm8277819qai.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 08:25:34 -0700 (PDT) From: Paul Kilar To: alpine-devel@lists.alpinelinux.org Cc: Paul Kilar Subject: [alpine-devel] [PATCH] testing/lshw: new aport Date: Wed, 28 Aug 2013 11:25:32 -0400 Message-Id: <1377703532-8369-1-git-send-email-pkilar@gmail.com> X-Mailer: git-send-email 1.8.2.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: http://www.ezix.org/software/lshw.html lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine. --- testing/lshw/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ testing/lshw/lshw-gcc43.patch | 23 +++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 testing/lshw/APKBUILD create mode 100644 testing/lshw/lshw-gcc43.patch diff --git a/testing/lshw/APKBUILD b/testing/lshw/APKBUILD new file mode 100644 index 0000000..aadf6bd --- /dev/null +++ b/testing/lshw/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Paul Kilar +# Maintainer: Paul Kilar +pkgname=lshw +pkgver='02.17' +pkgrel=0 +pkgdesc="Hardware Lister" +url="http://ezix.org/project/wiki/HardwareLiSter" +arch="all" +license="GPL3+" +depends="" +depends_dev="gcc-c++ sqlite3-devel libstdc++-dev libstdc++" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://ezix.org/software/files/lshw-B.$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-B.$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make RPM_OPT_FLAGS=-DNONLS +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install +} + +md5sums="a5feb796cb302850eaf5b4530888e3ed lshw-B.02.17.tar.gz" +sha256sums="eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c lshw-B.02.17.tar.gz" +sha512sums="868899dce98e786a08a2134d6e132c388d71ab0f03fa6e10881e14d7a882c1882b46bbc6bd6ddb021cfab87ad6c9fd369453c3916f0b3353027eb2d470e55d9b lshw-B.02.17.tar.gz" diff --git a/testing/lshw/lshw-gcc43.patch b/testing/lshw/lshw-gcc43.patch new file mode 100644 index 0000000..c56b038 --- /dev/null +++ b/testing/lshw/lshw-gcc43.patch @@ -0,0 +1,23 @@ +--- src/core/abi.cc.orig 2010-03-15 21:26:20.000000000 +0100 ++++ src/core/abi.cc 2013-08-06 21:05:08.693772583 +0200 +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); + +@@ -38,10 +39,10 @@ + for(i=0; id_name); +- free(namelist[i]); ++ std::free(namelist[i]); + } + if(namelist) +- free(namelist); ++ std::free(namelist); + } + + popd(); -- 1.8.2.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---