SUNWgnome-a11y-libs.spec
author henryz
Wed, 09 Apr 2008 07:35:21 +0000
changeset 12065 ec40d145a28b
parent 11976 798f0ce46ec6
child 12763 63d744a55e5f
permissions -rw-r--r--
+2008-04-09 Henry Zhang <[email protected]> + + * patches/virt-manager-04-temporary-patch.diff: + Change the patch to fix AllY bug, 6686007 +
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWgnome-a11y-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): at-spi java-access-bridge libgail-gnome freetts gnome-mag
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
     6
# Copyright 2007 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
11430
c628da44e2b8 2008-01-10 Li Yuan <[email protected]>
liyuan
parents: 10620
diff changeset
    10
# Owner: liyuan 
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%use at_spi = at-spi.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
%use libgail_gnome = libgail-gnome.spec
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
    16
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
%use java_access_bridge = java-access-bridge.spec
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
    18
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
%use freetts = freetts.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
%use gnome_mag = gnome-mag.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
Name:                    SUNWgnome-a11y-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Summary:                 Accessibility implementation for GNOME
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Version:                 %{default_pkg_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Source:                  %{name}-manpages-0.1.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
SUNW_BaseDir:            %{_basedir}
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11878
diff changeset
    27
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Requires: SUNWgnome-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires: SUNWgnome-panel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: SUNWgnome-component
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: SUNWgnome-base-libs
9441
24105511a782 2007-03-05 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    35
Requires: SUNWgnome-config
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Requires: SUNWlibpopt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Requires: SUNWj5rt
11878
8d2087fad20b 2008-03-19 Dermot McCluskey <[email protected]>
dermot
parents: 11430
diff changeset
    39
Requires: SUNWj6rt
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Requires: SUNWzoner
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Requires: SUNWzoneu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Requires: SUNWpkgcmdsu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
BuildRequires: SUNWgnome-base-libs-devel
9441
24105511a782 2007-03-05 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    45
BuildRequires: SUNWgnome-config-devel
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
BuildRequires: SUNWlibpopt-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
BuildRequires: SUNWgnome-panel-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
BuildRequires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
BuildRequires: SUNWgnome-panel-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
BuildRequires: SUNWgnome-component-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
Requires: SUNWperl584usr
10451
844c5b59d61b 2007-09-05 Damien Carbery <[email protected]>
dcarbery
parents: 10017
diff changeset
    57
Requires: SUNWgnome-base-libs-devel
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
Requires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%package l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
Summary:                 %{summary} - l10n files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
Requires:                %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%at_spi.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%libgail_gnome.prep -d %name-%version
10574
e3d308b2dd09 minor fixes
laca
parents: 10572
diff changeset
    73
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%java_access_bridge.prep -d %name-%version
10574
e3d308b2dd09 minor fixes
laca
parents: 10572
diff changeset
    75
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%freetts.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%gnome_mag.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
cd %{_builddir}/%name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
gzcat %SOURCE0 | tar xf -
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
PKG_CONFIG_DISABLE_UNINSTALLED=
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
unset PKG_CONFIG_DISABLE_UNINSTALLED
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
export PKG_CONFIG_PATH="../at-spi-%{at_spi.version}:%{_pkg_config_path}"
10620
ef0b1170eb49 2007-10-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10619
diff changeset
    85
export CFLAGS="%optflags -I/usr/X11/include"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
export LDFLAGS="%_ldflags $LDFLAGS -L%{_builddir}/%name-%version/at-spi-%{at_spi.version}/login-helper"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%at_spi.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%libgail_gnome.build -d %name-%version
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
    90
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%java_access_bridge.build -d %name-%version
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
    92
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%freetts.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%gnome_mag.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%at_spi.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%libgail_gnome.install -d %name-%version
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
    99
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%java_access_bridge.install -d %name-%version
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   101
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%freetts.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%gnome_mag.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
rm -rf $RPM_BUILD_ROOT%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
cd %{_builddir}/%name-%version/sun-manpages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
# Remove .la files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/GNOME_Magnifier_module.la
10017
11acbc57a6bf 2007-06-07 Damien Carbery <[email protected]>
dcarbery
parents: 9546
diff changeset
   110
# Remove .pyo files
11acbc57a6bf 2007-06-07 Damien Carbery <[email protected]>
dcarbery
parents: 9546
diff changeset
   111
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
# REMOVE l10n FILES
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   124
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
#  This script works by
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
#   1. If pkgcond exec exists it uses it to determine whether to
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
#	   make any file system modifications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
#   2. if pkgcond does not exist it works by using the older FCS logic in CheckZones()
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
#	   The LocalZones() function now calls the function that modified /usr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
#	   based on whether /usr/java/jre/lib is writable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
#  Basically local zones can have any arbitrary directory readonly or writable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
#  So a script that needs to modify say /usr/java needs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
#  to figure out if this is actually doable first.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
PKGCOND=/usr/bin/pkgcond
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
CheckZones()
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
{
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
	if [ "${PKG_INSTALL_ROOT:=/}" = "/" -a -x /usr/bin/zonename ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
		ZONENAME=`/usr/bin/zonename`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
		if [ ${ZONENAME} = "global" ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
			GLOBAL_ZONE=true
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
		else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
                    	GLOBAL_ZONE=false
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
		fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
	else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
            	# Unable to determine zone
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
		GLOBAL_ZONE=true
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
	fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
#  I am testing if /usr/java/jre/lib/ is writable as this is the only dir touched by this postinstall script
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
#  If there are other dirs that are touched later then need to add them here as well
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
LocalZones () {
9546
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   157
    /usr/bin/touch  ${BASEDIR}/java/jre/lib/.test.$$ > /dev/null 2>&1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
    if [ $? !=	0 ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
	   return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
    fi
9546
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   161
    rm -f  ${BASEDIR}/java/jre/lib/.test.$$ > /dev/null 2>&1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
    ExecuteDefaultCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
    return $?
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   168
ExecuteDefaultCmds() {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   169
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   170
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
  if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   172
then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   173
	rm -f ${BASEDIR}/java/jre/lib/accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   174
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   175
  # Remove the incorrect /usr/java entries from the packaging database.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   176
  # Ignore errors for situation where files no longer in db as removing a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   177
  # non-existant reference does not cause any harm.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   178
  removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   179
  removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   180
  removef -f $PKGINST >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   181
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   182
  # Determine the full path (symlinks resolved) to JDK pointed to by /usr/java.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   183
  cd $BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   184
  JAVADIR=java
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   185
  JDK_DIR=$BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   186
  # If $JAVADIR is a symlink then we must resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   187
  if [ -d $JAVADIR -a -h $JAVADIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   188
  then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   189
    # Get symlink target.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   190
    DIR=`ls -l $JAVADIR | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   191
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   192
    # If the target is a symlink then need to resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   193
    if [ -d $DIR -a -h $DIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   194
    then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   195
      nextdir=`dirname $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   196
      cd $nextdir
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   197
      JDK_DIR="$JDK_DIR/$nextdir"  # Append this bit.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   198
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   199
      f=`basename $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   200
      nextdir=`ls -l $f | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   201
      JDK_DIR="$JDK_DIR/$nextdir"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   202
    else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   203
      # otherwise just append to $JDK_DIR and we're done.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   204
      JDK_DIR="$JDK_DIR/$DIR"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   205
    fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   206
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   207
    # If the 'java' item is not a symlink (presumably a dir) there will be no
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   208
    # symlink to installf items to.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   209
    return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   210
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   211
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   212
  cd ${JDK_DIR}/jre/lib || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   213
  # Dynamically determine number of '..' required.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   214
  JAR_DIR=share/jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   215
  DOTS=.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   216
  LEVEL=0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   217
  FILE=accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   218
  # Keep testing, up to a max of 10 levels to avoid infinite loop.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   219
  while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   220
  do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   221
    DOTS="$DOTS/.."
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   222
    LEVEL=`expr $LEVEL + 1`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   223
  done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   224
  if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   225
    ln -s $DOTS/$JAR_DIR/$FILE . || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   226
    installf $PKGINST  ${JDK_DIR}/jre/lib/$FILE=$DOTS/$JAR_DIR/$FILE s || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   227
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   228
  FILE=gnome-java-bridge.jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   229
  if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   230
    cp $DOTS/$JAR_DIR/$FILE ext || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   231
    installf $PKGINST  ${JDK_DIR}/jre/lib/ext/$FILE f 0644 root bin || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   232
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   233
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   234
  installf -f $PKGINST || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   235
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   236
  return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   237
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   238
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   239
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   240
ExecuteWholerootCmds() {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   241
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   242
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   243
  if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   244
then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   245
	rm -f ${BASEDIR}/java/jre/lib/accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   246
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   247
  # Remove the incorrect /usr/java entries from the packaging database.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   248
  # Ignore errors for situation where files no longer in db as removing a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   249
  # non-existant reference does not cause any harm.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   250
  removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   251
  removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   252
  removef -f $PKGINST >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   253
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   254
  # Determine the full path (symlinks resolved) to JDK pointed to by /usr/java.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   255
  cd $BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   256
  JAVADIR=java
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   257
  JDK_DIR=$BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   258
  # If $JAVADIR is a symlink then we must resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   259
  if [ -d $JAVADIR -a -h $JAVADIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   260
  then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   261
    # Get symlink target.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   262
    DIR=`ls -l $JAVADIR | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   263
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   264
    # If the target is a symlink then need to resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   265
    if [ -d $DIR -a -h $DIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   266
    then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   267
      nextdir=`dirname $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   268
      cd $nextdir
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   269
      JDK_DIR="$JDK_DIR/$nextdir"  # Append this bit.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   270
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   271
      f=`basename $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   272
      nextdir=`ls -l $f | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   273
      JDK_DIR="$JDK_DIR/$nextdir"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   274
    else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   275
      # otherwise just append to $JDK_DIR and we're done.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   276
      JDK_DIR="$JDK_DIR/$DIR"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   277
    fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   278
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   279
    # If the 'java' item is not a symlink (presumably a dir) there will be no
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   280
    # symlink to installf items to.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   281
    return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   282
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   283
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   284
  cd ${JDK_DIR}/jre/lib || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   285
  # Extra '..' because traversing up through symlink.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   286
  #
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   287
  # Due to bugid 6358671, need to check whether we are running pkgadd relative to /export/Solaris_1*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   288
  # and the link ${PKG_INSTALL_ROOT}/usr_${ARCH}.all to see whether this is smosservice.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   289
  #  Also not do installf since diskless client root and user packages are not in installed relative 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   290
  #  to the same directory.  installf/removef will never work properly
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   291
  #
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   292
  if [ -h ${PKG_INSTALL_ROOT}/usr_${ARCH}.all ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   293
        # Dynamically determine number of '..' required.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   294
        JAR_DIR=share/jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   295
        DOTS=.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   296
        LEVEL=0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   297
        FILE=accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   298
        # Keep testing, up to a max of 10 levels to avoid infinite loop.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   299
        while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   300
        do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   301
          DOTS="$DOTS/.."
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   302
          LEVEL=`expr $LEVEL + 1`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   303
        done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   304
        if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   305
          ln -s $DOTS/$JAR_DIR/$FILE . || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   306
        fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   307
        FILE=gnome-java-bridge.jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   308
        if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   309
          cp $DOTS/$JAR_DIR/$FILE ext || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   310
        fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   311
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   312
        # Dynamically determine number of '..' required.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   313
        JAR_DIR=share/jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   314
        DOTS=.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   315
        LEVEL=0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   316
        FILE=accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   317
        # Keep testing, up to a max of 10 levels to avoid infinite loop.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   318
        while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   319
        do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   320
          DOTS="$DOTS/.."
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   321
          LEVEL=`expr $LEVEL + 1`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   322
        done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   323
        if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   324
          ln -s $DOTS/$JAR_DIR/$FILE . || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   325
  	  installf $PKGINST  ${JDK_DIR}/jre/lib/$FILE=$DOTS/$JAR_DIR/$FILE s || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   326
        fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   327
        FILE=gnome-java-bridge.jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   328
        if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   329
          cp $DOTS/$JAR_DIR/$FILE ext || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   330
  	  installf $PKGINST  ${JDK_DIR}/jre/lib/ext/$FILE f 0644 root bin || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   331
        fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   332
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   333
  	installf -f $PKGINST || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   334
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   335
  	return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   336
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   337
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   338
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   339
ExecuteDisklessCmds() {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   340
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   341
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   342
  if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ];
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   343
then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   344
	rm -f ${BASEDIR}/java/jre/lib/accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   345
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   346
  # Remove the incorrect /usr/java entries from the packaging database.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   347
  # Ignore errors for situation where files no longer in db as removing a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   348
  # non-existant reference does not cause any harm.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   349
  removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   350
  removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   351
  removef -f $PKGINST >/dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   352
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   353
  # Determine the full path (symlinks resolved) to JDK pointed to by /usr/java.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   354
  cd $BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   355
  JAVADIR=java
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   356
  JDK_DIR=$BASEDIR
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   357
  # If $JAVADIR is a symlink then we must resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   358
  if [ -d $JAVADIR -a -h $JAVADIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   359
  then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   360
    # Get symlink target.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   361
    DIR=`ls -l $JAVADIR | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   362
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   363
    # If the target is a symlink then need to resolve it.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   364
    if [ -d $DIR -a -h $DIR ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   365
    then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   366
      nextdir=`dirname $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   367
      cd $nextdir
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   368
      JDK_DIR="$JDK_DIR/$nextdir"  # Append this bit.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   369
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   370
      f=`basename $DIR`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   371
      nextdir=`ls -l $f | awk '{print $NF}'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   372
      JDK_DIR="$JDK_DIR/$nextdir"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   373
    else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   374
      # otherwise just append to $JDK_DIR and we're done.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   375
      JDK_DIR="$JDK_DIR/$DIR"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   376
    fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   377
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   378
    # If the 'java' item is not a symlink (presumably a dir) there will be no
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   379
    # symlink to installf items to.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   380
    return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   381
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   382
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   383
  cd ${JDK_DIR}/jre/lib || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   384
  # Dynamically determine number of '..' required.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   385
  JAR_DIR=share/jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   386
  DOTS=.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   387
  LEVEL=0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   388
  FILE=accessibility.properties
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   389
  # Keep testing, up to a max of 10 levels to avoid infinite loop.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   390
  while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   391
  do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   392
    DOTS="$DOTS/.."
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   393
    LEVEL=`expr $LEVEL + 1`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   394
  done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   395
  if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   396
    ln -s $DOTS/$JAR_DIR/$FILE . || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   397
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   398
  FILE=gnome-java-bridge.jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   399
  if [ -f $DOTS/$JAR_DIR/$FILE ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   400
    cp $DOTS/$JAR_DIR/$FILE ext || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   401
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   402
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   403
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   404
# Comment this out since diskless service root and usr packages are installed in seperate directories and do not have a common package database.  installf and removef will not work
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   405
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   406
#  installf $PKGINST  ${JDK_DIR}/jre/lib/accessibility.properties=../../../../../share/jar/accessibility.properties s || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   407
#  installf $PKGINST  ${JDK_DIR}/jre/lib/ext/gnome-java-bridge.jar f 0644 root bin || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   408
#  installf -f $PKGINST || exit 2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   409
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   410
  return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   411
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   412
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   413
ExecuteInProperEnvironment () {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   414
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   415
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   416
# The following is comment out since pkgcond does not support smosservice
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   417
# if $PKGCOND is_smosservice > /dev/null 2>&1 ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   418
	# Execute smosservice for diskless clients service commands.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   419
	# We use $BASEDIR because of diskless client restrictions
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   420
#	ExecuteDisklessCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   421
#	return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   422
#  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   423
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   424
  if $PKGCOND is_whole_root_nonglobal_zone > /dev/null 2>&1 ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   425
	# Execute non-global whole root zone commands.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   426
	# Should be same action as the default action.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   427
	ExecuteWholerootCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   428
	return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   429
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   430
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   431
  if $PKGCOND is_nonglobal_zone > /dev/null 2>&1 ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   432
     # Execute non-global zone commands. Should be no action here
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   433
    return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   434
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   435
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   436
  if $PKGCOND is_alternative_root > /dev/null 2>&1 ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   437
	# Execute commands specific to an alternate root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   438
	ExecuteDefaultCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   439
	return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   440
   fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   441
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   442
   if $PKGCOND is_global_zone > /dev/null 2>&1 ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   443
	# In a global zone and system is mounted on /.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   444
	# Execute all commands.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   445
	ExecuteDefaultCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   446
	return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   447
   fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   448
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   449
   return 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   450
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   451
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   452
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   453
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   454
if [ -n "$PKG_INIT_INSTALL" ] ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   455
   # initial installation of Solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   456
	ExecuteDefaultCmds
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   457
elif [ -n "$SUNW_PKG_INSTALL_ZONENAME" ] ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   458
   # initial installation of non-global zone
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   459
   # Execute non-global zone commands. Should be no action here
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   460
	exit 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   461
elif [ -x $PKGCOND ] ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   462
   # use pkgcond to determine what the package is being installed to
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   463
	   ExecuteInProperEnvironment && exit 0 || exit 1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   464
else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   465
   CheckZones
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   466
   if [ "${GLOBAL_ZONE}" = "true" ]; then
9546
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   467
        # Call LocalZones() to verify that the /usr/java/jre/lib dir is
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   468
        # writeable before trying to create the symlink and copy the file. The
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   469
	# function name is unfortunate. To minimize changes it is not being
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   470
	# renamed nor this 'if' statement removed. Fixes 6531193.
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   471
	LocalZones
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   472
   else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   473
	LocalZones
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   474
   fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   475
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   476
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   477
exit 0
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   478
%endif
9546
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   479
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   480
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   481
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   482
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   483
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   484
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   485
%{_libdir}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   486
%{_libdir}/bonobo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   487
%{_libdir}/gtk-2.0/modules/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   488
%{_libdir}/orbit-2.0/*.so
10017
11acbc57a6bf 2007-06-07 Damien Carbery <[email protected]>
dcarbery
parents: 9546
diff changeset
   489
%{_libdir}/python?.?
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   490
%{_libexecdir}/at-spi-registryd
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   491
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   492
%dir %attr (0755, root, sys) %{_datadir}/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   493
%dir %attr (0755, root, other) %{_datadir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   494
%{_datadir}/doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   495
%{_datadir}/gnome-mag
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   496
%if %option_with_java
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   497
%{_datadir}/jar
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   498
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   499
%{_datadir}/lib/freetts
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   500
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   501
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   502
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   503
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   504
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   505
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   506
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   507
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   508
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   509
%{_datadir}/idl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   510
%{_datadir}/gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   511
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   512
%dir %attr(0755, root, bin) %{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   513
%{_mandir}/man3/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   514
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   515
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   516
%files l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   517
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   518
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   519
%attr (-, root, other) %{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   520
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   521
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   522
%changelog
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11878
diff changeset
   523
* Mon Mar 31 2008 - [email protected]
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11878
diff changeset
   524
- Add copyright file
11878
8d2087fad20b 2008-03-19 Dermot McCluskey <[email protected]>
dermot
parents: 11430
diff changeset
   525
* Wed Mar 19 2008 - [email protected]
8d2087fad20b 2008-03-19 Dermot McCluskey <[email protected]>
dermot
parents: 11430
diff changeset
   526
- Add dep on SUNWj6rt so that gnome-java-bridge.jar and accessibility.properties
8d2087fad20b 2008-03-19 Dermot McCluskey <[email protected]>
dermot
parents: 11430
diff changeset
   527
  get installed in correct /usr/java link location. Fixes 6641866.
11430
c628da44e2b8 2008-01-10 Li Yuan <[email protected]>
liyuan
parents: 10620
diff changeset
   528
* Thu Jan 10 2008 - [email protected]
c628da44e2b8 2008-01-10 Li Yuan <[email protected]>
liyuan
parents: 10620
diff changeset
   529
- change owner to liyuan.
10619
a50a4a72fa9a 2007-10-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10574
diff changeset
   530
* Sun Oct  7 2007 - [email protected]
10620
ef0b1170eb49 2007-10-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10619
diff changeset
   531
- add /usr/X11/include to CFLAGS
10619
a50a4a72fa9a 2007-10-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10574
diff changeset
   532
- delete Nevada X deps
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   533
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10451
diff changeset
   534
- disable java access bridge if build without java support
10451
844c5b59d61b 2007-09-05 Damien Carbery <[email protected]>
dcarbery
parents: 10017
diff changeset
   535
* Wed Sep 05 2007 - [email protected]
844c5b59d61b 2007-09-05 Damien Carbery <[email protected]>
dcarbery
parents: 10017
diff changeset
   536
- Remove references to SUNWgnome-a11y-base-libs as its contents have been
844c5b59d61b 2007-09-05 Damien Carbery <[email protected]>
dcarbery
parents: 10017
diff changeset
   537
  moved to SUNWgnome-base-libs.
10017
11acbc57a6bf 2007-06-07 Damien Carbery <[email protected]>
dcarbery
parents: 9546
diff changeset
   538
* Thu Jun 07 2007 - [email protected]
11acbc57a6bf 2007-06-07 Damien Carbery <[email protected]>
dcarbery
parents: 9546
diff changeset
   539
- Add %{_libdir}/python?.? to %files and remove .pyo files in %install.
9546
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   540
* Tue Mar 13 2007 - [email protected]
d3f1546e9b49 2007-03-13 Damien Carbery <[email protected]>
dcarbery
parents: 9441
diff changeset
   541
- Incorporate %post changes from Mary Ding. Fixes 6531193.
9441
24105511a782 2007-03-05 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   542
* Mon Mar 05 2007 - [email protected]
24105511a782 2007-03-05 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   543
- Add Build/Requires SUNWgnome-config/-devel as gconf-2.0.pc is needed.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   544
* Fri Sep 01 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   545
- New Manpage tarball
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   546
* Sat Aug 12 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   547
- delete some unnecessary env variables
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   548
* Fri Jul 14 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   549
- Remove .la files before packaging.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   550
* Thu Jun 22 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   551
- Change 'return 0' to 'exit 0' in main function in %post share. Fixes 6437617.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   552
* Tue Jun 13 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   553
- Add dependencies on SUNWzoner/u and SUNWpkgcmdsu for zonename and pkgcond
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   554
  binaries that are used in the postinstall script. As suggested in 6377106.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   555
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   556
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   557
* Tue May 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   558
- Merge postinstall script from JDS3.1 branch. Include fix for 6431039.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   559
* Tue May 09 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   560
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   561
* Fri May 05 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   562
- Copy postinstall script from JDS3.1 branch. Incorporate dynamic code.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   563
* Tue Mar 14 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   564
- Add doc dir to share package.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   565
* Mon Feb 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   566
- Complete update of Build/Requires after running check-deps.pl script.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   567
* Thu Feb 16 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   568
- Update Build/Requires after running check-deps.pl script.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   569
- Move Requires SUNWj5rt to share package as postinstall that installs the 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   570
  symlink under a SUNWj5rt directory is in share package. Make base package
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   571
  require share package.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   572
* Fri Dec 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   573
- Add Requires SUNWj5rt so that symlink can be created.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   574
* Mon Nov 21 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   575
- Add %post share code to accomodate zones. Bug 6347858. Copied from 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   576
  cinnabar-solaris branch.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   577
* Mon Sep 12 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   578
- define l10n subpkg
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   579
* Tue Jun 14 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   580
- Fix packaging.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   581
* Fri Jun 10 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   582
- Call %freetts.build, and add lib/freetts dir to share package.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   583
* Mon Nov 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   584
- Fix for 6197816: gnopernicus moved to /usr/demo/jds so gnome-mag moved to
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   585
  SUNWgnome-a11y-libs package to remain in /usr/bin.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   586
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   587
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   588
* Mon Aug 30 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   589
- Bug 5091588 : sman3/4  files should be in a devel package
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   590
* Mon Aug 23 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   591
- s/SUNWpl5u/SUNWperl584usr/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   592
* Wed Aug 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   593
- Added back gtk-docs to packaging.  Needed because the at-cspi docs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   594
  are referred to from the libcspi.3 man page.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   595
* Wed Aug 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   596
- Change manpage perms for Solaris integration.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   597
* Fri Jul 23 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   598
- Move freetts from SUNWgnome-a11y-speech.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   599
* Tue Jun 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   600
- changed install location to /usr/lib and /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   601
* Wed Apr 14 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   602
- Add entry to %files for accessibility.properties and gnome-java-bridge.jar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   603
* Fri Mar 26 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   604
- add panel dependency
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   605
* Wed Mar 24 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   606
- Added SGML man page integration
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   607
* Tue Mar 23 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   608
- Remove gtk-doc and _datadir/lib from %files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   609
* Thu Feb 26 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   610
- Add devel-share subpkg for idl files and api docs