Linux HOWTOs

About | Home | Search


HOWTO: libmal
Description: A convenience library of the object files contained in malsync
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


# libmal 0.43
# ===========
Prerequisites:
# pilot-link

cd
test -f installed/libmal-0.43.tar.gz &&
 mv installed/libmal-0.43.tar.gz .
test ! -f libmal-0.43.tar.gz &&
 wget http://jasonday.home.att.net/code/libmal/libmal-0.43.tar.gz

# Verify tarball w/ md5sum:
echo "211d4db4f984512e5d3d10c35443b881  libmal-0.43.tar.gz" | md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "3d8c9df0f9dfbc41d3187fdd1b6c9dcc220e397b  libmal-0.43.tar.gz" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 2BEB2113 > /dev/null 2>&1 || gpg --recv-keys 2BEB2113 ) &&
 wget -nc http://jasonday.home.att.net/code/libmal/libmal-0.43.tar.gz.asc &&
  gpg --verify libmal-0.43.tar.gz.asc && rm libmal-0.43.tar.gz.asc

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmal-*" -exec rm -r {} \;
tar xzvf ~/libmal-0.43.tar.gz
cd libmal-0.43
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure
make

# Become root to install it
su

make install
ldconfig
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libmal-*.tar.*
mv libmal-*.tar.* installed/

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

Back to the list


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