X-Original-To: alpine-aports@lists.alpinelinux.org Received: from asav21.altibox.net (asav21.altibox.net [109.247.116.8]) by lists.alpinelinux.org (Postfix) with ESMTP id 424D75C4189 for ; Sat, 9 Jul 2016 15:26:52 +0000 (GMT) Received: from usaklig-alpine-dev.localdomain (148-252-89.157.3p.ntebredband.no [148.252.89.157]) by asav21.altibox.net (Postfix) with ESMTP id 2CF87800F0; Sat, 9 Jul 2016 17:26:52 +0200 (CEST) From: Jann - Ove Risvik To: alpine-aports@lists.alpinelinux.org Cc: Jann - Ove Risvik Subject: [alpine-aports] [PATCH] testing/opensm/APKBUILD: new aport Date: Sat, 9 Jul 2016 17:26:50 +0200 Message-Id: <20160709152650.23313-1-jann.ove@usaklig.com> X-Mailer: git-send-email 2.8.3 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=G9VeKJs5 c=1 sm=1 tr=0 a=M+EzPTJS7kFBQSI324WMeg==:117 a=M+EzPTJS7kFBQSI324WMeg==:17 a=PwJ2IG6fAAAA:8 a=mP63xQkVpWR-yKDxPTEA:9 a=6NwMXRBIkbEA:10 a=OBoYHoSLQAIA:10 a=tKKEq-adla_cQ7A69GDf:22 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://openfabrics.org/index.php/openfabrics-software.html OpenSM InfiniBand subnet manager 3.rd attempt. This time with update_config_sub --- testing/opensm/APKBUILD | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/testing/opensm/APKBUILD b/testing/opensm/APKBUILD index 43bc5b7..e2ec875 100644 --- a/testing/opensm/APKBUILD +++ b/testing/opensm/APKBUILD @@ -16,11 +16,22 @@ source="https://www.openfabrics.org/downloads/management/$pkgname-$pkgver.tar.gz 0001-musl-fixes.patch" builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$builddir" + update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + build() { cd "$builddir" ./configure \ - --build=`echo $CBUILD | sed s/alpine-linux-musl/linux/`\ - --host=`echo $CHOST | sed s/alpine-linux-musl/linux/` \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ -- 2.8.3 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---