LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > arniekat
User Name
Password

Notices


Rate this Entry

Slackware-14.1-Hacks-ClamAV/ClamTk

Posted 05-30-2014 at 08:08 PM by arniekat

ClamAV is an Open Source anti-virus application and ClamTk is the Graphical User Interface for ClamAV.

Before creating the clamav package or installing the package set, create the clamav user and group:

You need to create a "clamav" user and group - SlackBuilds.org suggests uid=210 and gid=210.

# groupadd -g 210 clamav
# useradd -g clamav -s /bin/false -u 210 clamav

Compile the following from SlackBuilds.org in the following order:

clamav-0.98.3
clamav-unofficial-sigs-3.7.2
perl-JSON-2.59
libgnomecanvas-2.30.3
zenity-3.6.0
perl-IO-HTML-1.00
perl-encode-locale-1.03
perl-http-date-6.02
perl-lwp-mediatypes-6.02
perl-html-tagset-3.20
perl-html-parser-3.71
perl-http-message-6.06
perl-extutils-pkgconfig-1.15
perl-extutils-depends-0.306
perl-glib-1.302
perl-cairo-1.104
perl-pango-1.224
perl-gtk2-1.248
perl-net-http-6.06
perl-www-robotrules-6.02
perl-file-listing-6.04
perl-http-negotiate-6.01
perl-http-cookies-6.01
perl-http-daemon-6.01
libwww-perl-6.05
perl-Net-LibIDN-0.12
Net-SSLeay-1.55
perl-IO-Socket-SSL-1.955
perl-Mozilla-CA-20130114
perl-LWP-Protocol-https-6.04
perl-Text-CSV-1.32
perl-Time-Piece-1.27
clamtk-5.06
thunar-sendto-clamtk-0.05
clamtk-kde-0.16

If you use the XFce Desktop, compile the thunar-sendto-clamtk application. If you use the KDE4 Desktop, Clamtk-KDE creates a Service Menu Entry so that you can right-click on a file or directory in Dolphin File Manager and send it to ClamAV for Viral Scanning. The source code can be downloaded from:

http://code.google.com/p/clamtk/

CLAMTK-KDE SLACKBUILD

#!/bin/sh

PRGNAM=clamtk-kde
VERSION=${VERSION:-0.16}
BUILD=${BUILD:-2}
TAG=${TAG:-_clam}

ARCH=noarch

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;

install -D -m644 $PRGNAM.desktop $PKG/usr/share/kde4/services/$PRGNAM.desktop
install -D -m644 $PRGNAM.1.gz $PKG/usr/man/man1/$PRGNAM.1.gz

mkdir -p $PKG/usr/share/icons/$PRGNAME
cp -a clamtk-kde.png clamtk-kde.xpm $PKG/usr/share/icons/$PRGNAME

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

SLACK-DESC

|-----handy-ruler---------------------------------------------------|
clamtk-kde: clamtk-kde (A clamtk plugin for Dolphin)
clamtk-kde:
clamtk-kde: A simple plugin to allow right-click scanning in Dolphin.
clamtk-kde:
clamtk-kde:
clamtk-kde:
clamtk-kde:
clamtk-kde:
clamtk-kde:
clamtk-kde: http://code.google.com/p/clamtk/
clamtk-kde:

The ClamAV package contains a start/stop script that needs to be executable.

# chmod +x /etc/rc.d/rc.clamav

Place the ClamAV startup section after the SASL authentication server section and before the Sendmail section.

# vi /etc/rc.d/rc.M

# Starting ClamAV daemons
if [ -x /etc/rc.d/rc.clamav ]; then
/etc/rc.d/rc.clamav start
fi

Save the file and exit.

Add your regular_user as a member of the "clamav" group

# vigr

clamav:x:210:regular_user

Save the file and exit.

Restart you computer and run freshclam to download fresh virus definitions.

# freshclam

root@apple:~# freshclam
ClamAV update process started at Fri May 30 12:52:55 2014
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 19052, sigs: 974598, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 241, sigs: 46, f-level: 63, builder: dgoddard)

Reboot again and see if everything is still OK.

In KDE4, ClamTk is located at System > ClamTk (Virus Scanner) in case you need to change the settings or scan files and folders and you can also right-click on Files and Folders and select Actions > Scan for threats to scan with ClamAV.
Posted in Uncategorized
Views 2237 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration