Before I go asleep, here is something to play with.
But you do it at your own risk, it might damage your system.
The idea:
A small script using Xdialog to install dotpups on other Distros like Suse or Mandrake.
I just tested it with this pup: http://www.murga.org/%7Epuppy/viewtopic.php?t=2123
, that I created with my new install-maker-script (version 06): http://www.murga.org/%7Epuppy/viewtopic.php?t=2081
If you run the installer, it will look like this (Linux Mandrake 9.2 with xorg 6.8.2):
http://noforum.de/pics/dotpupinstaller-alpha01.jpg
The installer rewrites "dotpup.sh" to allow to install a dotpup as normal user (not root) to ~/dotpup_apps instead to /usr/local
If someone wants to try it, here is the code:
Code: Select all
#!/bin/sh
mypath=`echo $0|sed 's/[^/]*$//'|sed 's/\/$//'`
if [ "$mypath" = "." ]; then
mypath=`pwd`
fi
cd $mypath
DIALOG=Xdialog
$DIALOG --title "DotPup-installer" \
--inputbox "
In Firefox, right-click the link to a DotPup.\n
Select \"copy link location\".\n
Then click in the inputbox below with the MIDDLE mousebutton.\n
" 14 60 2> /tmp/inputbox.tmp.$$
retval=$?
input=`tail -n 1 /tmp/inputbox.tmp.$$`
rm -f /tmp/inputbox.tmp.$$
case $retval in
0)
echo "Input string is '$input'";;
1)
echo "Cancel pressed.";;
255)
echo "Box closed.";;
esac
if [ "$retval" != "0" ];then
exit 0
fi
#xmessage -nearmouse "$input"
mkdir unzipped
rm -rf unzipped/*
wget -O "unzipped/dotpup.zip" $input
cd unzipped
unzip dotpup.zip
APPNAME=`ls *tgz | sed "s/.tgz//"`
cd "$mypath"
mkdir "$APPNAME"
mv unzipped/* "$APPNAME/"
rmdir unzipped
cd "$APPNAME"
MYUSER=`whoami`
cat dotpup.sh | sed "s