mkdir ~/src
cd ~/src
test -d ./vesautils && ( cd vesautils ; svn up ; make distclean )
test ! -d ./vesautils &&
svn checkout svn://svn.mplayerhq.hu/vesautils/trunk vesautils
cd vesautils
test $UID = 0 && chown -R root:root .
# As it is in Subversion right now, I had to comment out some things in the
# Makefile because it referenced things that don't exist. I removed mode3
# and vga_reset from the "all = " line and commented out the vga_reset and
# install targets.
# Build and install libvbe
cd libvbe
make distclean
make
# Become root to install it
su
# Remove old library files, install it
rm -f /usr/local/lib/libvbe.*
make install
ldconfig
# Make sure your non-root user can remove the source later
cd ..
chown -R $USER .
chmod -R u+w .
cd
mkdir -p -m 0700 installed
echo "vesautils was installed from Subversion in ~/src/vesautils" \
> installed/vesautils.README
chmod 600 installed/vesautils.README
# If you ever want to uninstall LRMI and Vesautils, this should do it:
su
( cd /usr/local/bin ; rm -f dosint vbemodeinfo vbetest vbetool )
rm -f /usr/local/lib/liblrmi.* /usr/local/include/lrmi.h \
/usr/local/include/vbetool.h /usr/local/man/man1/vbetool.1
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "lrmi-*" -exec rm -r {} \;
test -d ~/src/vesautils && rm -r ~/src/vesautils
rm -f ~/installed/lrmi-*.tar.*