f957632b960a0a42999b38ded7089fa602b41745Kay Sieversjds-src=Sources for JDS Common Packages
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poetteringgnome=GNOME 2.17 Desktop
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmekgnome-src=GNOME 2.17 Source
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmekmozilla=Mozilla 1.7 Web Browser
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmekmozilla-src=Mozilla Source
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmekfirefox=Firefox Web Browser
d19e85f0d474ed1882561b458d528cbae49f640eZbigniew Jędrzejewski-Szmekfirefox-src=Firefox Source
3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817Harald Hoyerthunderbird=Thunderbird Email and News Client
afe3ab588a6b2992efe5a9b22ed038545ba3cdbfLennart Poetteringthunderbird-src=Thunderbird Source
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poetteringevolution=Evolution Email and Calendar
f85857df75cfedbc0d10b8ca2400188dc8f4c22eLennart Poetteringevolution-src=Evolution Source
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poetteringglow=Integrated Collaboration Environment
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poetteringjai=Java Advanced Imaging
81429136905a6204875174b60a179333b7f3c9e4Kay Sieversjai-iio=Java Advanced Imaging
e7b4d43ec3d5eb0099a3978f98a46f3c15443b23Lennart Poetteringjava=Java Runtime Environment
58f55364fa00a6a4706df2c4a01c6967f432e531Lennart Poetteringjavaapps=Java Applications
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmekjavaapps-src=Java Applications Sources
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmekjdk=Java Development Kit
83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0Zbigniew Jędrzejewski-Szmekjdic=Java Desktop Integration Components
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringjdnc=Java Desktop Network Components
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringjinput=Java Controller API
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringjoal=Java bindings for OpenAL API
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringjogl=Java bindings for OpenGL API
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringl10n=Globalization Tools
fbe1a1a94f19112d7e5d60c40d87487ad24e2ce4Lennart Poetteringl10n-src=Globalization Tools Sources
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringl10nmessages=Localized Messages
7c75c5ca68970d2d47f211f068883e9b8c3ff5e7Lennart Poetteringiiim=Input Method Switcher
6ce02c2a3a2aa888c3e074ae235d94808a165f9aLennart Poetteringiiim-src=Input Method Switcher Sources
7c75c5ca68970d2d47f211f068883e9b8c3ff5e7Lennart Poetteringplugins=Third Party Browser Plugins
35c594e044bea03baf5b9b6c429b9ac9bb5aa0b5Lennart Poetteringstaroffice=StarOffice office suite
40d6f6a35e7c66ccb8ea060b4539aa2565b4ebf9David Herrmannstarsuite=StarSuite office suite
40d6f6a35e7c66ccb8ea060b4539aa2565b4ebf9David Herrmannso-sdk=StarOffice Software Development Kit
fa607802f332e06f4044c3eb38dbea41076c803dLennart Poetteringnodist=Extra packages for JDS developers
fa607802f332e06f4044c3eb38dbea41076c803dLennart Poetteringnodist-src=Extra sources for JDS developers
fa607802f332e06f4044c3eb38dbea41076c803dLennart Poetteringapoc-daemon=APOC Daemon
a47e6701bfc45519a4e038daa52e9236e932f59aLennart Poetteringapoc-daemon-src=APOC Daemon Sources
fa607802f332e06f4044c3eb38dbea41076c803dLennart Poetteringapoc-sol-$ARCH=APOC Configuration Manager
fa607802f332e06f4044c3eb38dbea41076c803dLennart Poetteringapoc-sol-$ARCH-src=APOC Configuration Manager Sources"
a47e6701bfc45519a4e038daa52e9236e932f59aLennart PoetteringALL_PATCHDIRS="patches-xserver=X server patches
a47e6701bfc45519a4e038daa52e9236e932f59aLennart Poetteringpatches-mozilla=Patches required for the Mozilla Web browser
a47e6701bfc45519a4e038daa52e9236e932f59aLennart Poetteringpatches-gnome=Patches required for the GNOME Desktop"
c3a0d00d6dd6f5997d673e133ef6f9f856550b0aLennart PoetteringLOGFILE=/var/sadm/install/logs/jds-install.log.$$
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering# ask "question" variable_name "default answer"
de146bb2aac13361ade3050d37696499ac4ca9aeLennart Poettering if [ ! -z $3 ]; then
2a441c8afe7c81f74cc2ceccdf9a71301cd39d4dLennart Poettering# ask_yes_no "question" variable_name "default answer"
0a86c1a9d8066267b878dfeddc5e0087dda6a37bLennart Poettering echo "$the_ans" | grep -i "^`l10n_print yes`$" > /dev/null
0a86c1a9d8066267b878dfeddc5e0087dda6a37bLennart Poettering if [ $? = 0 ]; then
0a86c1a9d8066267b878dfeddc5e0087dda6a37bLennart Poettering echo "$the_ans" | grep -i "^`l10n_print no`$" > /dev/null
0a86c1a9d8066267b878dfeddc5e0087dda6a37bLennart Poettering if [ $? = 0 ]; then
e3286870fdf20c3c93e944b24fd9af53620f7dbaLennart Poettering grep -i "^$1[ ]*=[ ]*" $INFOFILE | cut -f2 -d= | tr -d ' '
7b0fce617c48eda32b2d4e04b5f0e4376e8c0106Lennart Poettering for n in `echo $1 | sed -e 's/Generic/999999/' | tr -cs "[0-9]" "[ *]"`; do
264b8070715d2d19344c4991ace21147d998f56dLennart Poettering for n in `echo $2 | sed -e 's/Generic/999999/' | tr -cs "[0-9]" "[ *]"`; do
7e27f3121e5a10629302b5221eb21345f832724aLennart Poettering typeset -i n=0
d48b7bd271b1e70924c8485d2f95c2f5a1ae77cbLennart Poettering if [ ${version1[$n]} -lt ${version2[$n]} ]; then
25e14499c4c5b02229d05a5bc26c3693ade5f987Lennart Poettering if [ ${version1[$n]} -gt ${version2[$n]} ]; then
b857e042d621ffb98a652f33850b431fafbece43Lennart Poettering typeset n=$n+1
706d97503df83d141d241b645d2c920d691b3d62Lennart Poettering l10n_print "Install the Java Desktop System, GNOME 2.17, Solaris Edition"
3bcde97e8502c48b53f7420e2433ca68e601662dLennart Poettering l10n_print " -h, --help display this help"
3bcde97e8502c48b53f7420e2433ca68e601662dLennart Poettering l10n_print " --quiet, -q less verbose operation."
533bb267f13e2f7b4d7b78de30e821dc81c82335Lennart Poettering l10n_print " --force, -f ignore any errors and continue."
533bb267f13e2f7b4d7b78de30e821dc81c82335Lennart Poettering l10n_print " --ignore, -i ignore file conflicts and continue."
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering l10n_print " -n non-interactive installation."
533bb267f13e2f7b4d7b78de30e821dc81c82335Lennart Poettering l10n_print " -R rootdir install into an alternative root directory."
b42de08aa4c97636e42c28c7bce08f0d7c2a719aZbigniew Jędrzejewski-Szmek l10n_print " -p prod1,prod2,..."
b42de08aa4c97636e42c28c7bce08f0d7c2a719aZbigniew Jędrzejewski-Szmek l10n_print " select products for installation"
b42de08aa4c97636e42c28c7bce08f0d7c2a719aZbigniew Jędrzejewski-Szmek l10n_print " -a install all products"
b42de08aa4c97636e42c28c7bce08f0d7c2a719aZbigniew Jędrzejewski-Szmek l10n_print " --nopatch don't install OS patches"
202aea456dfb279cd34da7bfd1880f6ac0fd849fLennart Poettering l10n_print " --accept accept the license terms"
42aeb14a4a0fa7d43da96a8ed0fb0e180a2dd5c8Lennart Poettering l10n_print " --tmpdir dir create temporary files in dir instead of /tmp"
b873d33ec9583c92a0c2bc6807d010720fa31595Lennart Poettering while [ $# != 0 ]; do
157a180e4fc827606833a6724834ba7b0246d650Tom Gundersen l10n_print "Option %s requires an argument" "-R"
3f77a1b19f5a8ce33566f7f6e28e94c08ea30841Kay Sievers l10n_print "Option %s requires an argument" "-R"
3c779fa59d1825d7db2a9516669d34ded7916913Lennart Poettering l10n_print "Option %s requires an argument" "--tmpdir"
37efac5ddb21fd91ed420c070ed07f375e78b3b9Lennart Poettering l10n_print "Error: %s: invalid argument" "$1"
edb2935c5c5b95c42b8679086f60da5eafad74cbLennart Poettering echo "*** command output follows ***" >> $LOGFILE
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart Poettering ( "${@}" 2>&1 ; echo $? > $status_file ) | tee -a $LOGFILE
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart Poettering ( "${@}" 2>&1 ; echo $? > $status_file ) >> $LOGFILE
6a3f892a23db71544d0439355f96c44350dafa8fLennart Poettering echo "*** command output ends ***" >> $LOGFILE
eda8f06755bd98c4639293c26b856c225f0d1fe1Lennart Poettering l10n_print "Saving file %s as %s~" "$1" "$1"
eda8f06755bd98c4639293c26b856c225f0d1fe1Lennart Poettering mv "$1" "$1~" || msg_fatal "Failed to back up file %s" "$1"
09ecd746c9d6581664873674c2188f8c93ed7780Lennart Poettering l10n_msg=`TEXTDOMAINDIR="$MYDIR"/.install gettext -d "$TEXTDOMAIN" "$1"`
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering if [ $FORCE = no ]; then
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering ask_yes_no "`l10n_print 'Would you like to continue?'`" ans \
7f79cd7109a60810140a045cc725291fc5515264Lennart Poettering test -f $LOGFILE || return
bdeeb6b543a2a2d0a494f17b85f1498859cdfc2fLennart Poettering# check_disk_space directory minsize(kB)
bdeeb6b543a2a2d0a494f17b85f1498859cdfc2fLennart Poettering while [ ! -d $dir_to_check ]; do
4e09014daf8f98584b3f15e64e93bed232e70a6bLennart Poettering freespace=`df -k "$dir_to_check" | awk '!/Filesystem/ {print $4}'`
6bb648a16ae4a682ad4784412af706d2e6a3e4daTom Gundersen if [ $freespace -le $2 ]; then
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt# so_disk_space_check prodname
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering # Need large tmp area (>=1GB) for StarOffice/StarSuite installation.
80caea6cc72ebd311a311b1527cc6b87201c13bfLennart Poettering msg_error "Your %s directory has less than 1GB free.\nYou need to specify an alternative temp dir with the --tmpdir switch." "$BASE_TEMPDIR"
df98a87ba389bdfc0359beedf47557411f3af434Lennart Poettering /usr/bin/id | /usr/bin/grep '^uid=0(' > /dev/null 2>&1
6a8b5fa4635ed858788fb10099ec9b62b3359a0aLennart Poettering if [ $? != 0 ]; then
69727e6dc69ae5d9b5ae3681723778a3faa354e9Lennart Poettering msg_fatal "Only root can install this product."
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering if [ $FORCE = no ]; then
e8a7a315391a6a07897122725cd707f4e9ce63d7Lennart Poetteringinstance=unique
461bd8e47cafacfcd38389e7558330bfb6e902adLennart Poetteringrunlevel=nocheck
ab8e074ce25b9947314c69e17afe1bd2527ee26dLennart Poetteringidepend=nocheck
ab8e074ce25b9947314c69e17afe1bd2527ee26dLennart Poetteringrdepend=nocheck
b5c03638d48c07aa0eaf13b5f54000c7133e1883Lennart Poetteringconflict=nocheck
356ce9915ab1a4a1e6dc26954df34936a69e7c12Lennart Poettering mps=`df -kl | grep '^/' | awk '{print $6}' | sort -r`
09f727eebd87661f263d3c2c1e0de7b7771acd40Lennart Poettering typeset -i i=0
c144692179098c1861f2aeafc67689a74439cf4cLennart Poettering typeset i=$i+1
0be8342c04bbf129b4a21e5073eacccbbce4e896Lennart Poettering# disk_usage_add <dir> <size>
0be8342c04bbf129b4a21e5073eacccbbce4e896Lennart Poettering typeset -i i=0
e5ec62c56963d997edaffa904af5dc45dac23988Lennart Poettering while [ $i -lt $MOUNT_POINT_COUNT ]; do
3679d1126bae52e02f6cd60fca196f616b9e660dLennart Poettering typeset i=$i+1
490b7e47093d491a2bdb1084fe92b796f4e07eefLennart Poettering typeset -i i=0
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering while [ $i -lt $MOUNT_POINT_COUNT ]; do
e41814846c19a48f4490169d82e359e005c4db45Lennart Poettering if [ $mpsize -gt 0 ]; then
e9fd44b728ff1fc0d1f24fccb87a767f6865df27Lennart Poettering msg_error "Your %s filesystem has less than %s kB free\nYou will not be able to install JDS." "$ROOTDIR$mpname" "$mpsize"
e9fd44b728ff1fc0d1f24fccb87a767f6865df27Lennart Poettering typeset i=$i+1
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering#install_pkgs <dir>
e6c6e7afffa80ad74efdb1ddfa815294624f1608Lennart Poettering if [ -r $ORDERFILE ]; then
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering ALL_PKGS=$(echo $(cat $ORDERFILE | sed -e 's/$/.tar.gz/'))
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering ALL_PKGS=$(cd $MYDIR/$1; find . -name '*.tar.gz' -print -o -name '*.tgz' -print)
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering msg_log "Starting installation of %s at %s" "$1" "`LANG=C LC_ALL=C date`"
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering if [ $1 == 'firefox' -o $1 == 'thunderbird' ]; then
279f036675536d55c901562b49f9df146af1a0e3Lennart PoetteringSUNWmoznss-devel
279f036675536d55c901562b49f9df146af1a0e3Lennart PoetteringSUNWmoznspr-devel
279f036675536d55c901562b49f9df146af1a0e3Lennart PoetteringSUNWmozjs-debugger
279f036675536d55c901562b49f9df146af1a0e3Lennart PoetteringSUNWmozilla-devel
e673ad0415d89c322e5b1a121e411f1b1d8075c0Lennart PoetteringSUNWmozdom-inspector
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart PoetteringSUNWthunderbird-devel"
c06bf414042cd1bf94e0af63e9e2a0c291bfc546Kay Sievers is_installed "$moz_pkg" && remove_pkg "$moz_pkg"
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt # Remove evolution-socs-connect packages as they are incompatible with
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering # evolution-jescs (connector for Java Enterprise System Calendar Server)
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart PoetteringSUNWevolution-socs-connect-share"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering is_installed "$evo_pkg" && remove_pkg "$evo_pkg"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering msg_fatal "ERROR: Failed to create temporary directory %s" "$TEMPDIR"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering if [ ! -r $MYDIR/$1/$pkg ]; then
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering msg_error "ERROR: cannot read file %s" "$pkg"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering logrun sh -c "gunzip -c $MYDIR/$1/$pkg | /bin/tar xf -"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering if [ $? != 0 ]; then
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering msg_error "ERROR: Failed to unpack %s" "$pkg"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering pkg0=$(echo "$pkg0" | sed -e 's/\.tar.gz$//' -e 's/\.tgz$//')
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering if [ ! -d $pkg0 ]; then
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering msg_error "ERROR: Package %s not found in %s" "$pkg0" "$pkg"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering l10n_print "Installing package %s" "$pkg0"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering logrun $PKGADD -R "$ROOTDIR" -a $ADMIN -n -d $TEMPDIR $pkg0 || \
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering msg_error "ERROR: Failed to install package %s" "$pkg0"
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering logrun $PKGADD -a $ADMIN -n -d $TEMPDIR $pkg0 || \
279f036675536d55c901562b49f9df146af1a0e3Lennart Poettering msg_error "ERROR: Failed to install package %s" "$pkg0"
8b8f259170e35b93e6c6d1757cb8b835bbdaa40cZbigniew Jędrzejewski-Szmek l10n_print "Uninstalling %s" "$1"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering logrun $PKGRM -R "$ROOTDIR" -a $ADMIN -n "$1"'.*' || \
eb124a97fb72d076014253b1acde69d428f15ecfLennart Poettering msg_error "ERROR: Failed to remove package %s" "$1"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering msg_error "ERROR: Failed to remove package %s" "$1"
b44be3ecf6326c27aa2c6c6d1fe34e22e22592a0Lennart Poettering pkgs_to_remove="`cat $MYDIR/$1/.remove-always`"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart Poettering pkgs_to_remove="`cat $MYDIR/$1/.remove-if-older`"
1cb88f2c61f590083847d65cd5a518e834da87d3Lennart Poettering echo ",--------------------------------------------------------------------------"
603cd8fe07cb03e8b11722d1a732e569e5a46347Lennart Poettering echo "| 1) " `l10n_print "Default Installation"`
a7a3f28be404875eff20443a0fa8088bcc4c18dfLennart Poettering echo "| 2) " `l10n_print "Custom Installation"`
9ee58bddeb6eb044753167e0047fe836479ca5dbKay Sievers ask '`---> '"`l10n_print 'Please select:'`" "menu_sel" "1"
38a60d7112d33ffd596b23e8df53d75a7c09e71bLennart Poettering echo ",--------------------------------------------------------------------------"
68f160039eb78fe122cfe0d4c49695ae91f6f0d1Lennart Poettering echo "| 1) " `l10n_print "Install All Products"`
0790b9fed42eefc4e22dbbe2337cba9713b7848cLennart Poettering echo "| 2) " `l10n_print "Select Products to Install"`
68f160039eb78fe122cfe0d4c49695ae91f6f0d1Lennart Poettering echo "| 3) " `l10n_print "Select Patches to Install"`
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt echo "| I) " `l10n_print "Start Installation"`
fd4d89b2c0b31da01d134301e30916931ae3c7d9Lennart Poettering ask '`---> '"`l10n_print 'Please select:'`" "menu_sel" "I"
7f110ff9b8828b477e87de7b28c708cf69a3d008Lennart Poettering echo ",--------------------------------------------------------------------------"
87a8baa35d6d65ac3b58ae8e26e338e67f8ae8edLennart Poettering ask '`---> '"`l10n_print 'Please select:'`" "menu_sel" "1"
1258097cd3cdbc5dd3d264850119e553a29c5068Lennart Poettering echo ",--------------------------------------------------------------------------"
1258097cd3cdbc5dd3d264850119e553a29c5068Lennart Poettering typeset -i N=1
55cdcbacf70f05a40a155af24f6d2da6b478cba6Lennart Poettering pname=`echo "$ALL_PATCHDIRS" | grep "^$pdir=" | cut -f2- -d= | cut -c-60`
8d0e38a2b966799af884e78a54fd6a2dffa44788Lennart Poettering n=`echo " $N" | sed -e 's/^.*\(..\)$/\1/'`
88a07670cfa974a605c7c7b520b8a3135fce37f9Lennart Poettering if [ $res = 0 ]; then
916abb21d0a6653e0187b91591e492026886b0a4Lennart Poettering elif [ $res = 1 ]; then
7a2a0b907b5cc60f5d9a871997d7d6e7f62bf4d8Lennart Poettering typeset N=$N+1
a19554ed92a7460b4e709cc40c558cde827ab85bLennart Poettering echo "| S) " `l10n_print "Select individual patches"`
a73d88fa024b5668ed7dde681e99547d41e6a864Lennart Poettering echo "| I) " `l10n_print "Start Installation"`
a74a8793b04de9886b4f6987b9cb86fa02c73520Lennart Poettering echo "| R) " `l10n_print "Return to previous menu"`
3679d1126bae52e02f6cd60fca196f616b9e660dLennart Poettering ask '`---> '"`l10n_print 'Enter item to select/unselect:'`" "menu_sel" "R"