1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/french/linux-netscape6/scripts/configure
2002-05-23 13:00:10 +00:00

58 lines
1.4 KiB
Bash

#!/bin/sh
#
# $FreeBSD$
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 6 Sélection composants" --clear \
--checklist "\n\
Choisissez les composants que vous souhaitez télécharger et installer. \n\
Appuyez sur la barre d'espace pour basculer entre les états \n\
sélectionné et désélectionné." -1 -1 10 \
"browser" "navigateur (6576 ko)" ON \
"deflfrfr" "profil français par défaut (26 ko)" ON \
"flash" "plugin Flash (576 ko)" ON \
"jre" "plugin Java (13808 ko)" ON \
"langfrfr" "locale français (592 ko)" ON \
"mail" "lecteur de courrier et de nouvelles (1824 ko)" ON \
"regfr" "configurations régionales pour la France (54 ko)" ON \
"regus" "configurations régionales pour les Etats-Unis (56 ko)" ON \
"spellchecker" "vérificateur d'orthographe (832 ko)" ON \
"talkback" "analyseur de problèmes (envoi à Netscape) (832 ko)" 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 "Aucune sélection"
exit 1;
fi
;;
1) echo "Annulation demandée."
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