|
|
@ -1,8 +1,9 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/bin/sh |
|
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# |
|
|
|
# T2 SDE: package/.../sun-jre-142/java-sun-conf.in |
|
|
|
# Filename: package/.../sun-jre-142/java-sun-conf.in |
|
|
|
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2005 Clifford Wolf |
|
|
|
# Copyright (C) 1998 - 2005 Clifford Wolf |
|
|
|
# |
|
|
|
# |
|
|
@ -12,7 +13,7 @@ |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
# Prevent normal package extraction. However since auto package |
|
|
|
# Prevent normal package extraction. However since auto package |
|
|
|
# extraction is turned off, so are the pre and post patch hooks. |
|
|
|
# extraction is turned off, so are the pre and post patch hooks. |
|
|
@ -57,13 +58,14 @@ java_preconf() { |
|
|
|
cp -v $java_srctar . |
|
|
|
cp -v $java_srctar . |
|
|
|
sed -i 's,more <<,cat <<,' ${java_srctar##*/} |
|
|
|
sed -i 's,more <<,cat <<,' ${java_srctar##*/} |
|
|
|
sed -i 's,agreed=,agreed=1,' ${java_srctar##*/} |
|
|
|
sed -i 's,agreed=,agreed=1,' ${java_srctar##*/} |
|
|
|
|
|
|
|
sed -i 's,`agree`,yes,' ${java_srctar##*/} |
|
|
|
|
|
|
|
|
|
|
|
if [[ $pkg == *-150 ]]; then |
|
|
|
if [[ $pkg == *-150 ]]; then |
|
|
|
patch -p0 ${java_srctar##*/} $confdir/../sun-jre-150/mime-type-remove.diff |
|
|
|
patch -p0 ${java_srctar##*/} $confdir/../sun-jre-150/mime-type-remove.diff |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Retrieve the original javahome name from the archive. |
|
|
|
# Retrieve the original javahome name from the archive. |
|
|
|
tempvar="`head -n15 ${java_srctar##*/} | grep javahome`" |
|
|
|
tempvar="`head -n60 ${java_srctar##*/} | grep javahome`" |
|
|
|
java_home_original=${tempvar/*=/} |
|
|
|
java_home_original=${tempvar/*=/} |
|
|
|
|
|
|
|
|
|
|
|
# Ready to unpack/install the archive. |
|
|
|
# Ready to unpack/install the archive. |
|
|
|