Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: libmspack
Description: Compression and decompression of M$ file formats
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# libmspack
# =========
# The latest release is 2006-09-20, I was unable to compile it
# with gcc 4.1.2  Below that are instructions for building it
# from CVS, which I was able to compile.


# libmspack 2006-09-20
# ====================
cd
test -f installed/libmspack-0.0.20060920alpha.tar.gz &&
 mv installed/libmspack-0.0.20060920alpha.tar.gz .
test ! -f libmspack-0.0.20060920alpha.tar.gz &&
 wget http://www.kyz.uklinux.net/downloads/libmspack-0.0.20060920alpha.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmspack-*" -exec rm -r {} \;
tar xzvf ~/libmspack-0.0.20060920alpha.tar.gz
cd libmspack-0.0.20060920alpha
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libmspack.*
make install
ldconfig
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libmspack-*.tar.*
mv libmspack-0.0.20060920alpha.tar.gz installed/


# libmspack CVS
# =============
# Prerequisites:
# CVS
# autoconf
# automake
# libtool

mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libmspack-*" -exec rm -r {} \;

# Either get it from CVS, or update it if you already have it
test -d ./libmspack && ( cd libmspack ; cvs update )
test ! -d ./libmspack &&
 ( cvs -d:pserver:anonymous@libmspack.cvs.sourceforge.net:/cvsroot/\
libmspack login
   # Hit enter for the password
   cvs -z3 -d:pserver:anonymous@libmspack.cvs.sourceforge.net:/\
cvsroot/libmspack co -P libmspack )

cd libmspack
test $UID = 0 && chown -R root:root .

# Create ./configure, etc.
autoreconf -f -i

./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libmspack.*
make install
ldconfig
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libmspack-*.tar.*
echo "libmspack was installed from CVS" > installed/libmspack.README
echo "Source is in ~/src/libmspack" >> installed/libmspack.README


# If you ever want to uninstall libmspack, this should do it:
cd
su
test -d src/libmspack-* && ( cd src/libmspack-* ; make uninstall )
rm -f /usr/local/include/mspack.h /usr/local/lib/libmspack.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libmspack-*" -exec rm -r {} \;
rm -f ~/installed/libmspack-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>