#!/bin/sh # # $FreeBSD: ports/www/netscape7/scripts/configure,v 1.3 2002/05/23 13:00:10 tre vor Exp $ echo ${WRKSRC}/components.conf if [ -f ${WRKSRC}/components.conf ]; then exit fi tempfile=`/usr/bin/mktemp -t checklist` if [ -z "${BATCH}" ]; then /usr/bin/dialog --title "Netscape 7 component selection" --clear \ --checklist "\n\ Choose components of Netscape 7 to install. \n\ Press the space bar to toggle selections." -1 -1 12 \ "browser" "Web browser (8448 kB)" ON \ "deflenus" "American English profile defaults (26 kB)" ON \ "flash" "Flash plugin (576 kB)" ON \ "jre" "Java plugin (28592 kB) needs linux_base-6" OFF \ "langenus" "American English language pack (800 kB)" ON \ "mail" "e-mail and news (2064 kB)" ON \ "regca" "regional settings for Canada (58 kB)" ON \ "regus" "regional settings for the USA (60 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