# Install required perl modules:
su -c "perl -MCPAN -e shell"
o conf prerequisites_policy follow
o conf make_install_arg UNINST=1
install Bundle::CPAN
install LWP
install URI
install HTML::Parser
install MIME::Base64
install Net::FTP
install Digest::MD5
install Mail::Send
install Time::Duration
exit
# If you want it to be able to check https URLs, also install Net::SSL
cd
test -f installed/checkbot-1.79.tar.gz && mv installed/checkbot-1.79.tar.gz .
test ! -f checkbot-1.79.tar.gz &&
wget http://degraaff.org/checkbot/checkbot-1.79.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "checkbot-*" -exec rm -r {} \;
tar xzvf ~/checkbot-1.79.tar.gz
cd checkbot-1.79
test $UID = 0 && chown -R root:root .
perl Makefile.PL
make
# Become root to install it
su
# Install it
make install
# If you want to use the sample checkbot.css, copy it somewhere
# in your web space and make it readable to the user that runs
# Apache:
cp checkbot.css /usr/local/apache/htdocs/checkbot.css
chown root:nobody /usr/local/apache/htdocs/checkbot.css
chmod 640 /usr/local/apache/htdocs/checkbot.css
# If you ever need to uninstall Checkbot, this should do it:
su
find /usr/lib/perl5/site_perl -type d -name "checkbot" -exec rm -r {} \;
rm -f /usr/bin/checkbot /usr/share/man/man1/checkbot.1
exit
find ~/src -maxdepth 1 -type d -name "checkbot-*" -exec rm -r {} \;
rm -f ~/installed/checkbot-*.tar.*