aboutsummaryrefslogtreecommitdiff
path: root/www/linux-mozilla
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2004-11-28 23:38:43 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2004-11-28 23:38:43 +0000
commit903a91163e7488ba79bd00b9db28606761f72c60 (patch)
treebd36dc8e9100caa5e2e1ee1c9e898807f7bd0761 /www/linux-mozilla
parent092109a2bcd087ded9350555cccf99fc62ee4c4c (diff)
downloadports-903a91163e7488ba79bd00b9db28606761f72c60.tar.gz
ports-903a91163e7488ba79bd00b9db28606761f72c60.zip
Notes
Diffstat (limited to 'www/linux-mozilla')
-rw-r--r--www/linux-mozilla/scripts/configure47
1 files changed, 47 insertions, 0 deletions
diff --git a/www/linux-mozilla/scripts/configure b/www/linux-mozilla/scripts/configure
new file mode 100644
index 000000000000..1b48693e7ba8
--- /dev/null
+++ b/www/linux-mozilla/scripts/configure
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo ${WRKSRC}/components.conf
+if [ -f ${WRKSRC}/components.conf ]; then
+ exit
+fi
+
+tempfile=`/usr/bin/mktemp -t checklist`
+
+echo "browser deflenus langenus psm regus 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 6 \
+"chatzilla" "IRC client (160 kB)" ON \
+"inspector" "DOM inspector (124 kB)" ON \
+"mail" "mail and news client (1904 kB)" ON \
+"spellcheck" "Spelling checker for mail and news (304 kB)" ON \
+"venkman" "JavaScript debugger (224 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
+
+echo "* Your choices are saved. You must run the \"make\" command again to"
+echo "* complete the build. Ignore the \"Error code 1\" below."
+exit 1