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 3ECEDDC854C for ; Thu, 10 Dec 2015 20:22:22 +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 9C235DC1E8F; Thu, 10 Dec 2015 20:22:21 +0000 (UTC) Received: from localhost (ip5f5acb31.dynamic.kabel-deutschland.de [95.90.203.49]) by lithium.8pit.net (OpenSMTPD) with ESMTPSA id f49fbeed TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 10 Dec 2015 21:22:17 +0100 (CET) From: =?UTF-8?q?S=C3=B6ren=20Tempel?= To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 2/2] community/openjdk8: install profile file Date: Thu, 10 Dec 2015 21:22:07 +0100 Message-Id: <1449778927-15011-2-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1449778927-15011-1-git-send-email-soeren+git@soeren-tempel.net> References: <1449778927-15011-1-git-send-email-soeren+git@soeren-tempel.net> 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/openjdk8/APKBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/community/openjdk8/APKBUILD b/community/openjdk8/APKBUILD index 643af10..976b3cb 100644 --- a/community/openjdk8/APKBUILD +++ b/community/openjdk8/APKBUILD @@ -5,7 +5,7 @@ _java_ver=8 _jdk_update=66 _jdk_build=17 pkgver=$_java_ver.$_jdk_update.$_jdk_build -pkgrel=1 +pkgrel=2 pkgdesc="Sun OpenJDK 8" url="http://openjdk.java.net" arch="x86_64 x86" @@ -145,6 +145,11 @@ package() { | xargs chmod go+r pax_mark_vm "$pkgdir"/$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 } jrelib() { -- 2.6.4 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---