diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-04 11:27:29 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-04 11:27:29 +0000 |
commit | 990bb9c1158342b54d39f157a0f21f83a774b97f (patch) | |
tree | 203414fd250186c4c1dd2ef2d3ebf0d33df5b744 /japanese/netscape7/scripts | |
parent | Remove this file, since it will now be generated entirely in the (diff) |
Add new port of Netscape 6 (Linux binary) with Japanese localization.
Notes
Notes:
svn path=/head/; revision=55515
Diffstat (limited to 'japanese/netscape7/scripts')
-rw-r--r-- | japanese/netscape7/scripts/configure | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/japanese/netscape7/scripts/configure b/japanese/netscape7/scripts/configure new file mode 100644 index 000000000000..36bf0ce28344 --- /dev/null +++ b/japanese/netscape7/scripts/configure @@ -0,0 +1,61 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/japanese/netscape7/scripts/Attic/configure,v 1.1 2002-03-04 11:27:29 trevor Exp $ + +echo ${WRKSRC}/components.conf +if [ -f ${WRKSRC}/components.conf ]; then + exit +fi + +tempfile=`/usr/bin/mktemp -t checklist` + +if [ "${BATCH}" ]; then + if [ "${NETSCAPE6_OPTIONS}" ]; then + set ${NETSCAPE6_OPTIONS} + else + set \"zlib\" \"MySQL\" + fi +else + +/usr/bin/dialog --title "Netscape 6 component selection" --clear \ + --checklist "\n\ +Choose components of Netscape 6 to download and install. \n\ +Press the space bar to toggle selections." -1 -1 10 \ +"browser" "Web browser (6592 kB)" ON \ +"defljajp" "Japanese/Japan profile defaults (26 kB)" ON \ +"flash" "Flash plugin (576 kB)" ON \ +"jre" "Java plugin (13808 kB)" ON \ +"langjajp" "Japanese/Japan language pack (624 kB)" ON \ +"mail" "e-mail and news (1824 kB)" ON \ +"regjp" "regional settings for Japan (54 kB)" ON \ +"regus" "regional settings for the USA (56 kB)" ON \ +"spellchecker" "spell-checker (544 kB)" ON \ +"talkback" "sends bug reports to Netscape staff (832 kB)" ON \ +2> /tmp/checklist.tmp.$$ + +retval=$? + +choice=`cat /tmp/checklist.tmp.$$` +rm -f /tmp/checklist.tmp.$$ + +case $retval in + 0) if [ -z "$choice" ]; then + echo "Nothing selected" + exit 1; + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; +esac + +echo "$choice" \ + | sed -e "s/\"//g" \ + | sed -e "s/mail/mail browser/g" \ + | sed -e "s/browser/browser psm xpcom/g" \ + | sort -u \ + | sed -e "s/ /.xpi /g" \ + | sed -e "s/$/.xpi/g" \ + | perl -pi -e "s/ /\n/g" \ + > ${WRKSRC}/components.conf +fi |