X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 6E421DC177A for ; Thu, 10 Dec 2015 20:22:20 +0000 (UTC) Received: from lithium.8pit.net (lithium.8pit.net [81.4.121.103]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C2E6CDC0017; Thu, 10 Dec 2015 20:22:19 +0000 (UTC) Received: from localhost (ip5f5acb31.dynamic.kabel-deutschland.de [95.90.203.49]) by lithium.8pit.net (OpenSMTPD) with ESMTPSA id a211567a TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 10 Dec 2015 21:22:16 +0100 (CET) From: =?UTF-8?q?S=C3=B6ren=20Tempel?= To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 1/2] community/openjdk7: install profile file Date: Thu, 10 Dec 2015 21:22:06 +0100 Message-Id: <1449778927-15011-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: git-send-email 2.6.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Use it to set JAVA_HOME which is used by some java applications like android studio or apache maven. --- community/openjdk7/APKBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/community/openjdk7/APKBUILD b/community/openjdk7/APKBUILD index cb913ba..05f078b 100644 --- a/community/openjdk7/APKBUILD +++ b/community/openjdk7/APKBUILD @@ -5,7 +5,7 @@ _icedteaver=2.6.3 # pkgver is . # check icedtea JDK when updating pkgver=7.91.$_icedteaver -pkgrel=1 +pkgrel=2 pkgdesc="Sun OpenJDK 7 via IcedTea" url="http://icedtea.classpath.org/" arch="all" @@ -204,6 +204,11 @@ jrebase() { # pax mark again (due to fakeroot xattr handling bug) $_builddir/pax-mark-vm "$subpkgdir"/$INSTALL_BASE + + # install profile file in /etc/profile.d + mkdir -p "$pkgdir"/etc/profile.d + echo "export JAVA_HOME=\"\${JAVA_HOME:-$INSTALL_BASE/jre}\"" \ + > "$pkgdir/etc/profile.d/$pkgname.sh" || return 1 } jre() { -- 2.6.4 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---