27 April 2017

cvmfs

This post will be about the CernVM-FS.

http://cernvm.cern.ch/portal/filesystem

Proposed distro specific code changes to the GitHub repository.

https://github.com/cvmfs/cvmfs/tree/devel/cvmfs
cvmfs_config

sys_arch=$(uname)

case $sys_arch in
  Linux )
    if [ -x /sbin/service ]; then
      service="/sbin/service"
    elif [ -x /usr/sbin/service ]; then
      # Ubuntu
      service="/usr/sbin/service"
    elif [ -x /sbin/rc-service ] ; then
      # OpenRC
      service="/sbin/rc-service"
    elif [ -x /usr/bin/systemctl ] ; then
      # archlinux
      service="/usr/bin/systemctl"
    fi
    if [ -x /sbin/pidof ]; then
      pidof="/sbin/pidof"
    else
      # Ubuntu
      pidof="/bin/pidof"
    fi
-    if [ -x /sbin/fuser ]; then
+    if [ -x /bin/fuser ]; then
+      fuser="/bin/fuser"  # SuSE, Ubuntu
+    elif [ -x /sbin/fuser ]; then
      fuser="/sbin/fuser"  # RHEL
-    else
-      fuser="/bin/fuser"  # Ubuntu, SuSE
+    elif [ -x /usr/bin/fuser ]; then
+      fuser="/usr/bin/fuser"  # Slackware
    fi
    if [ -x /usr/bin/fusermount ]; then
      fusermount="/usr/bin/fusermount"  # RHEL, SuSE
    else
-      fusermount="/bin/fusermount"  # Ubuntu
+      fusermount="/bin/fusermount"  # Slackware, Ubuntu
    fi
    if [ ! -x /usr/bin/attr ]; then
      # Fedora
      if [ ! -x /bin/attr ]; then
        echo "attr utility required"
        exit 1
      fi
    fi
    fuse_fs_type="fuse"
    ;;

  Darwin )
    fuser="/usr/bin/fuser"
    fuse_fs_type="osxfusefs"
    ;;

  * )
    echo "Architecture $sys_arch is not supported"
    exit 1 ;;
esac

http://cvmfs.readthedocs.io/en/stable/cpt-squid.html

https://slackbuilds.org/repository/14.2/network/
squid-3.5.20.tar.xz
squid.tar.gz