# Install/update the perl XML::Parser module:
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Parser
exit
cd
test -f installed/gparted-0.2.5.tar.bz2 &&
mv installed/gparted-0.2.5.tar.bz2 .
test ! -f gparted-0.2.5.tar.bz2 &&
wget http://download.sf.net/gparted/gparted-0.2.5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gparted-*" -exec rm -r {} \;
tar xjvf ~/gparted-0.2.5.tar.bz2
cd gparted-0.2.5
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/gparted-*.tar.*
mv gparted-0.2.5.tar.bz2 installed/
# /usr/local/share/pixmaps/gparted.png can be used as a desktop icon
# gparted must be run as root. "su -c gparted" will work in an X-Term.
# There is an ISO image on the site for a live CD
# If you ever want to uninstall gparted, this should do it:
cd
su
test -d src/gparted-* && ( cd src/gparted-* ; make uninstall )
/usr/local/share/locale -type f -name "gparted.mo" -exec rm {} \;
rm -f /usr/local/bin/gparted /usr/local/share/pixmaps/gparted.png \
/usr/local/share/applications/gparted.desktop
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "gparted-*" -exec rm -r {} \;
rm -f ~/installed/gparted-*.tar.*