# cifs-utils 7.3
# ==============
# cifs-utils used to be bundled with Samba and prior to Slackware 14.0, was
# part of the Slackware 'samba' package
#
# Slackware 14.0, .1: cifs-utils 5.5
# Slackware 14.2: cifs-utils 6.4
# Slackware 15.0: cifs-utils 6.14
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --mandir=/usr/man
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg cifs-utils
# Install it
make install
# See online documentation referred to above, CIFS info in 'man mount' and
# 'man mount.cifs'
#
# The Linux CIFS Client Guide document is under ./doc/
# as an .odt (OpenDocument text file). If need be
# you can convert it to other formats using pandoc, or
# view it as a PDF - see link above.
# Running 'mount -t cifs ...' will execute /sbin/mount.cifs
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/cifs-utils-*.tar.*
mv -f cifs-utils-7.3.tar.bz2 installed/
# If you ever want to uninstall cifs-utils, this should do it:
cd
su
test -d src/cifs-utils-* && ( cd src/cifs-utils-* ; make uninstall )
( cd /usr/bin
rm -f cifscreds getcifsacl setcifsacl smb2-quota smbinfo )
( cd /usr/man/man1
rm -f cifscreds.1* getcifsacl.1* setcifsacl.1* smb2-quota.1* smbinfo.1* )
( cd /usr/man/man8
rm -f cifs.idmap.8* idmapwb.8* mount.cifs.8* )
rm -f /sbin/mount.cifs \
/usr/include/cifsidmap.h \
/usr/lib*/cifs-utils/idmapwb.so \
/usr/lib*/security/pam_cifscreds.so \
/usr/sbin/cifs.idmap
test -d /usr/lib/cifs-utils && rmdir /usr/lib/cifs-utils
test -d /usr/lib64/cifs-utils && rmdir /usr/lib64/cifs-utils
exit
find ~/src -maxdepth 1 -type d -name "cifs-utils-*" -exec rm -r {} \;
rm -f ~/installed/cifs-utils-*.tar.*