diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-09 08:37:37 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-03-09 08:37:37 +0000 |
commit | 23d74dd8a5a1af14a7e39b1c4bf0b98cb42060a8 (patch) | |
tree | f6caa4805dd3db93b39506970c3fb821eef5d902 /www/linux-mozilla-devel/scripts | |
parent | - Fix Problem with 3des chiper (diff) |
Add a selection dialog from which the user can disable the chatzilla,
deflenus, mail, psm and talkback components. This is based on the
recent work on the www/linux-netscape6 port. When psm is omitted,
Mozilla still shows the Privacy and Security menus, and complains
about not being able to load libpipboot.so. When talkback is
omitted, Mozilla makes noise about the missing libqfaservices.so.
Notes
Notes:
svn path=/head/; revision=55759
Diffstat (limited to 'www/linux-mozilla-devel/scripts')
-rw-r--r-- | www/linux-mozilla-devel/scripts/configure | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/www/linux-mozilla-devel/scripts/configure b/www/linux-mozilla-devel/scripts/configure new file mode 100644 index 000000000000..bae76ba96ec1 --- /dev/null +++ b/www/linux-mozilla-devel/scripts/configure @@ -0,0 +1,43 @@ +#!/bin/sh +# +# $FreeBSD$ + +echo ${WRKSRC}/components.conf +if [ -f ${WRKSRC}/components.conf ]; then + exit +fi + +tempfile=`/usr/bin/mktemp -t checklist` + +echo "browser langenus regus venkman xpcom" > /tmp/checklist.tmp.$$; + +/usr/bin/dialog --title "Mozilla component selection" --clear \ + --checklist "\n\ +Choose which components of Mozilla to download and install. \n\ +Press the space bar to toggle selections." -1 -1 5 \ +"chatzilla" "IRC client (102 kB)" ON \ +"deflenus" "American English profile defaults (8 kB)" ON \ +"mail" "Mozilla Mail and News (1728 kB)" ON \ +"psm" "Personal Security Manager--recommended (656 kB)" ON \ +"talkback" "sends crash logs to Mozilla staff (832 kB)" ON \ +2>> /tmp/checklist.tmp.$$ + +retval=$? + +case $retval in + 1) echo "Cancel pressed." + exit 1 + ;; +esac + +choice=`cat /tmp/checklist.tmp.$$` +rm -f /tmp/checklist.tmp.$$ + +echo "$choice" +echo "$choice" \ + | sed -e "s/\"//g" \ + | sort -u \ + | sed -e "s/ /.xpi /g" \ + | sed -e "s/$/.xpi/g" \ + | perl -pi -e "s/ /\n/g" \ + > ${WRKSRC}/components.conf |