# quota-tools 3.13
# ================
# Slackware 8.1's 'quota' package includes version 3.06, 9.0's includes
# 3.08, 9.1's includes 3.09, and 10.0's, 10.1's, and 10.2's include 3.12
cd
test -f installed/quota-3.13.tar.gz && mv installed/quota-3.13.tar.gz .
test ! -f quota-3.13.tar.gz &&
wget http://download.sf.net/linuxquota/quota-3.13.tar.gz
mkdir -p -m 0700 src
cd src
test -d ./quota-tools && rm -r ./quota-tools
find -maxdepth 1 -type d -name "quota-tools-*" -exec rm -r {} \;
tar xzvf ~/quota-3.13.tar.gz
mv quota-tools quota-tools-3.13
cd quota-tools-3.13
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --disable-nls --enable-rootsbin
make
## If make fails with an error like this:
# cannot find any C preprocessor (cpp)
# rpcgen: C preprocessor failed with exit code 1
## re-run it like this:
# make RPCGEN="rpcgen -Y /usr/bin"
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg quota
rm -f /sbin/convertquota
make install
# To view the docs, use sgml-tools:
cd doc
# html:
sgml2html quotadoc.sgml
lynx ./quotadoc.html
# text:
sgml2txt quotadoc.sgml
less ./quotadoc.txt
# info:
sgml2info quotadoc.sgml
info ./quotadoc.info
# If you want to set up warnquota to e-mail users when they are over their
# softlimit, modify /etc/warnquota.conf as necessary, then create a cronjob
# to run it every day. See 'man warnquota' for commandline options. If the
# user accounts on the machine don't actually get mail locally, make sure
# there's an alias or .forward for each user sending their mail to where
# they do get it.
cat << EOF > /etc/cron.daily/warnquota
#!/bin/sh
/usr/sbin/warnquota
EOF
chmod 700 /etc/cron.daily/warnquota