usbinstall: remove (replaced by external package with same name)

This commit is contained in:
Silvan Calarco 2012-03-12 15:02:22 +01:00
parent 1ff63acc8c
commit eb50508ce7
4 changed files with 0 additions and 269 deletions

View File

@ -46,7 +46,6 @@ mambawelcomedatadir = ${datadir}/openmamba/mambawelcome
mambaimagesdir = ${datadir}/openmamba/images
xramdrdatadir = ${datadir}/openmamba/xramdr
bootrecoverdatadir = ${datadir}/openmamba/bootrecover
usbinstalldatadir = ${datadir}/openmamba/usbinstall
iconsdir = ${datadir}/icons/hicolor
kdeprefixdir = $(shell kde-config --prefix)
kdedatadir = $(kdeprefixdir)/share
@ -92,7 +91,6 @@ pck_desktop := $(wildcard desktop/*.tar.bz2)
pck_catalogs := $(wildcard mambabase/po/*.po)
pck_catalogs1 := $(wildcard mambawelcome/po/*.po)
pck_catalogs2 := $(wildcard bootrecover/po/*.po)
pck_catalogs3 := $(wildcard usbinstall/po/*.po)
.SUFFIXES:
.SUFFIXES: .in .po .mo
@ -147,13 +145,6 @@ install-locales: locales
$(INSTALL_DIR) $$dir;\
$(INSTALL_DATA) $${f/.po/.mo} $$dir/bootrecover.mo;\
done
@for f in $(pck_catalogs3); do\
lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\
echo "installing i18n file for language \`$$lang'...";\
dir="$(DESTDIR)$(localesdir)/$$lang/LC_MESSAGES";\
$(INSTALL_DIR) $$dir;\
$(INSTALL_DATA) $${f/.po/.mo} $$dir/usbinstall.mo;\
done
install-kde-distro-addons: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
@ -280,11 +271,6 @@ install-desktop:
$(INSTALL_DATA) $(pck_desktop) $(DESTDIR)$(distrodesktopdir)
$(INSTALL_SCRIPT) desktop/desktop-firsttime.sh $(DESTDIR)$(xprofiledir)
install-usbinstall:
@$(INSTALL_DIR) $(DESTDIR)$(usbinstalldatadir)
$(INSTALL_SCRIPT) usbinstall/usbinstall.sh $(DESTDIR)$(usbinstalldatadir)
$(INSTALL_DATA) usbinstall/usbinstall.desktop $(DESTDIR)$(xdg_appsdir)
install-openmamba-update:
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) openmamba-update/openmamba-update $(DESTDIR)$(bindir)
@ -294,7 +280,6 @@ install: $(pck_infiles:.in=) \
install-kde-distro-addons \
install-distromenu \
install-srpms \
install-usbinstall \
install-desktop \
install-openmamba-update \
install-mambabase \

View File

@ -1,85 +0,0 @@
# Italian translation of openmamba-usbinstall.
# Copyright (C) 2009 Ercole 'ercolinux' Carpanetto
# This file is distributed under the same license as the openmamba-usbinstall package.
# Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>, 2009.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-01 23:12+0100\n"
"PO-Revision-Date: 2009-12-01 23:12+0100\n"
"Last-Translator: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: openmamba-usbinstall.sh:25
msgid ""
"Warning all the data on the usb key <b>${vendor[$chiave]} ${model[$chiave]}</"
"b> with <b>${size[$chiave]} GB</b> will be destroyed!"
msgstr ""
"Attenzione tutti i dati sulla chiavetta <b>${vendor[$chiave]} ${model[$chiave]}</"
"b> di <b>${size[$chiave]} GB</b> saranno cancellati!"
#: openmamba-usbinstall.sh:27
msgid "openmamba installation on USB device"
msgstr "Installazione di openmamba su dispositivo USB"
#: openmamba-usbinstall.sh:27
msgid "Starting installation..."
msgstr "Avvio dell'installazione..."
#: openmamba-usbinstall.sh:32
msgid "Creating partitions..."
msgstr "Creazione delle partizioni..."
#: openmamba-usbinstall.sh:51
msgid "Formatting..."
msgstr "Formattazione..."
#: openmamba-usbinstall.sh:55
msgid "Mounting and file creation..."
msgstr "Montaggio e creazione files..."
#: openmamba-usbinstall.sh:60
msgid "Verifing files and eventually download from internet..."
msgstr "Verifica dei files ed eventuale download da internet..."
#: openmamba-usbinstall.sh:63
msgid ""
"Please select the 'bootusb' archive or press Cancel to download it"
msgstr ""
"Seleziona l'archivio 'bootusb' o premi Cancella per scaricarlo"
#: openmamba-usbinstall.sh:66
msgid "Please select the ISO image or press Cancel to download it"
msgstr "Seleziona l'immagine ISO o premi Cancella per scaricarla"
#: openmamba-usbinstall.sh:72
msgid "Installing files..."
msgstr "Installazione dei files..."
#: openmamba-usbinstall.sh:76
msgid "Installing bootloader..."
msgstr "Installazione del bootloader..."
#: openmamba-usbinstall.sh:79
msgid "Copying ISO image..."
msgstr "Copia immagine ISO..."
#: openmamba-usbinstall.sh:116
msgid "USB key missing"
msgstr "Chiavetta USB non inserita"
#: openmamba-usbinstall.sh:116
msgid "Please insert a USB key or press No"
msgstr "Per favore inserisci una chiavetta USB o premi No"
#: openmamba-usbinstall.sh:128 openmamba-usbinstall.sh:131
#: openmamba-usbinstall.sh:134
msgid "Select the USB key on which you want to install openmamba"
msgstr "Seleziona la chiavetta USB su cui installare openmamba"

View File

@ -1,13 +0,0 @@
[Desktop Entry]
Name=openmamba USB installation
Name[it]=Installazione di openmamba USB
GenericName=Prepares an openmamba live system on a USB storage
GenericName[it]=Prepara una chiavetta USB con openmamba live
Exec=/usr/share/openmamba/usbinstall/usbinstall.sh
Icon=mamba
Terminal=0
Type=Application
Categories=X-openmamba;
X-KDE-RootOnly=true
X-KDE-SubstituteUID=true
X-KDE-Username=root

View File

@ -1,156 +0,0 @@
#!/bin/bash
# openmamba-usbinstall è uno script per la generazione automatica di una chiavetta di boot per openmamba snapshot.
# Se i file necessari sono presenti sul disco fisso verranno utilizzati quelli altrimenti
# scaricherà direttamente la versione attuale dal sito di openmamba.
# se il file iso è presente nella home verrà usato direttamente altrimenti si aprirà un dialogo dove sarà possibile cercarlo.
# (c) 2009 ercole 'ercolinux' carpanetto - ercole69@gmail.com
# (c) 2009-2010 Silvan Calarco - silvan.calarco@mambasoft.it
# rilasciato secondo la licenza GPL v.3
# per cambiare la versione della snapshot di openmamba modificare il valore qui sotto di conseguenza
version=20091201
version_cd=20091201
fileiso="~/openmamba-livecd-it-snapshot-"$version_cd".i586.iso"
filecpio=""~/openmamba-bootusb-it-snapshot-"$version".i586.cpio.gz""
#da qui in poi non c'è nulla da modificare
TEXTDOMAIN=usbinstall
TEXTDOMAINDIR=/usr/share/locale/
function get_udisks_key() {
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
}
# formattazione della chiavetta e installazione dei file necessari al boot di openmamba
installa(){
conferma=0
chiave=$c
kdialog --title $"openmamba installation on USB device" --yesno $"Warning all the data on the usb key <b>${vendor[$chiave]} ${model[$chiave]}</b> with <b>${size[$chiave]} GB</b> will be destroyed!" && conferma=1
if [ $conferma -eq 1 ]; then
dcopRef=$(kdialog --geometry 450x140 --title $"openmamba installation on USB device" --progressbar $"Starting installation..." 12)
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog maximum 20
sudo umount ${device[$chiave]}1
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 1
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Creating partitions..."
sudo fdisk ${device[$chiave]} <<EOF
d
4
d
3
d
2
d
n
p
1
1
a
1
w
EOF
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 3
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Formattazione..."
disk=${device[$chiave]}1
sudo mkfs.ext3 $disk -L openmamba_live
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 6
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Mounting and file creation..."
mkdir -p ~/tmpmamba
sudo mount $disk ~/tmpmamba
sudo chmod 777 ~/tmpmamba
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 10
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Verifing files and eventually download from internet..."
file=$filecpio
if [ ! -f $file ]; then
file=$(kdialog --title $"Please select the 'bootusb' archive or press Cancel to download it" --getopenfilename $HOME "openmamba*-bootusb-*.cpio.gz |openmamba files")
echo $file
if [ ! $file ]; then
file="~/openmamba-bootusb-it-snapshot-"$version".i586.cpio.gz"
wget http://www.openmamba.org/pub/openmamba/devel/media/bootusb/it/openmamba-bootusb-it-snapshot-$version.i586.cpio.gz
fi
fi
cd ~/tmpmamba
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 13
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Installing files..."
gunzip -c < $file | cpio -i
sudo extlinux --install boot
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 14
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Installing bootloader..."
sudo install-mbr -e 1 ${device[$chiave]}
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 15
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Copying ISO image..."
if [ ! -f $fileiso ];then
fileiso=$(kdialog --title $"Please select the ISO image or press Cancel to download it" --getopenfilename $HOME "openmamba-*.iso |iso files")
fi
if [ ! $fileiso ];then
sudo umount ~/tmpmamba
cd
qdbus $dcopRef org.kde.kdialog.ProgressDialog.close
exit 0
fi
cp $fileiso ./
ln -fs `basename $fileiso` ./openmamba-live.iso
cd ..
sudo umount ~/tmpmamba
fi
qdbus $dcopRef org.kde.kdialog.ProgressDialog.close
exit 0
}
scansione() {
#ricerca di tutte le periferiche di archiviazione usb
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n`
c=0
for dev in $devices; do
native_path=`get_udisks_key $dev native-path`
vend=`get_udisks_key $dev vendor`
prod=`get_udisks_key $dev model`
[ -e $native_path/partition ] && continue
is_system_internal=`get_udisks_key $dev "system internal"`
partition_scheme=`get_udisks_key $dev "scheme"`
if [ "$is_system_internal" != "1" -a "$partition_scheme" = "mbr" ]; then
c=$((c+1))
device[$c]=$dev
vendor[$c]=$vend
model[$c]=$prod
media_size[$c]=`get_udisks_key $dev size`
size[$c]=$((${media_size[$c]}/(1000*1000*1000)))
fi
done
if [ $c -eq 0 ]; then
t=$(kdialog --title $"USB key missing" --yesno $"Please insert a USB key or press No")
if [ ! $t ]; then
exit 0
fi
scansione
fi
}
menu(){
chiave=""
if [ $c -gt 1 ]; then
case $c in
2)
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2)
;;
3)
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2 3 "${vendor[3]} ${model[3]} ${size[3]} GB" 3)
;;
4)
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2 3 "${vendor[3]} ${model[3]} ${size[3]} GB" 3 4 "${vendor[4]} ${model[4]} ${size[4]} GB" 4)
;;
esac
if [ ! "$chiave" ]; then
exit 0
fi
fi
installa
}
scansione
menu
exit 0