libsodium - Library for encryption, decryption, signatures, password hashing and more ChangeLog

HOWTO


# libsodium 1.0.18
# ================
# Slackware 15.0: libsodium 1.0.18

# Prerequisites:
# binutils

# Get it
cd
test -f installed/libsodium-1.0.18.tar.gz &&
mv -f installed/libsodium-1.0.18.tar.gz .
test ! -f libsodium-1.0.18.tar.gz &&
wget https://download.libsodium.org/libsodium/releases/\
libsodium-1.0.18.tar.gz

# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636\
c1  libsodium-1.0.18.tar.gz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 2B6F76DA > /dev/null 2>&1 || gpg --recv-keys 2B6F76DA ) &&
wget -nc https://download.libsodium.org/libsodium/releases/\
libsodium-1.0.18.tar.gz.sig &&
  gpg --verify libsodium-1.0.18.tar.gz.sig && rm libsodium-1.0.18.tar.gz.sig

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libsodium-*" -exec rm -r {} \;
tar xzvf ~/libsodium-1.0.18.tar.gz
cd libsodium-1.0.18
test $UID = 0 && chown -R root:root .

# To match the prefix that Slackware uses in it's package, use
# --prefix=/usr

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --libdir=/usr/lib64 --disable-shared

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --disable-shared

# Build it
# If the build fails with assembler errors, try upgrading binutils
make

# Check the build
make check

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libsodium

# Install it
make install
ldconfig

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libsodium-*.tar.*
mv -f libsodium-1.0.18.tar.gz installed/


# If you ever want to uninstall libsodium, this should do it:
cd
su
test -d src/libsodium-* && ( cd src/libsodium-* ; make uninstall )
test -d /usr/local/include/sodium && rm -r /usr/local/include/sodium
for libdir in /usr/local/lib /usr/local/lib64;
do
  test -d $libdir &&
   ( cd $libdir
     rm -f libsodium.*
     test -d pkgconfig && rm -f pkgconfig/libsodium.pc )
done
exit
find ~/src -maxdepth 1 -type d -name "libsodium-*" -exec rm -r {} \;
rm -f ~/installed/libsodium-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-08-09 2:18am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]