cd
test -f installed/pyorbit-2.0.1.tar.bz2 &&
mv installed/pyorbit-2.0.1.tar.bz2 .
test ! -f pyorbit-2.0.1.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/pyorbit/2.0/pyorbit-2.0.1.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "pyorbit-*" -exec rm -r {} \;
tar xjvf ~/pyorbit-2.0.1.tar.bz2
cd pyorbit-2.0.1
test $UID = 0 && chown -R root:root .
# Here you should use the same prefix that you used for python
./configure --prefix=/usr
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/pyorbit-*.tar.*
mv pyorbit-2.0.1.tar.bz2 installed/
# If you ever want to uninstall pyorbit, this should do it:
cd
su
test -d src/pyorbit-* && ( cd src/pyorbit-* ; make uninstall )
test -d /usr/include/pyorbit-2 && rm -r /usr/include/pyorbit-2
( cd /usr/lib/python2.4/site-packages
rm -f CORBA.py ORBit.* PortableServer.py )
rm -f /usr/lib/pkgconfig/pyorbit-2.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "pyorbit-*" -exec rm -r {} \;
rm -f ~/installed/pyorbit-*.tar.*