Difference between pages "News:New Media Mix-ins" and "Package:Clamav"

(Difference between pages)
 
m (finish up ebuild)
 
Line 1: Line 1:
{{News
+
{{Ebuild
|Summary=Funtoo Linux now has new media mix-ins. Learn about them and how to use them.
+
|Summary=Clam Anti-Virus Scanner
|News Format=Extended
+
|CatPkg=app-antivirus/clamav
|News Category=General
+
|Homepage=http://www.clamav.net/
|Author=Drobbins
+
|Publication Status=Published
+
|Publication Date=2015/01/11
+
 
}}
 
}}
Hello everyone,
+
Clamav is an open source antivirus solution.
  
Funtoo Linux has amazing support for all different kinds of audio, video and graphics formats, as well as media devices that can be enabled via USE flags -- but let's face it  -- with all this flexibility has come a certain amount of complexity in enabling all the USE flags you need for a particular application. I've tried to address this by [[Funtoo Profiles|enhancing the profile system]] to include flavors and mix-ins, and creating a {{c|media}} mix-in that enables stuff that a lot of people will want, which is auto-enabled in the {{c|desktop}} and {{c|workstation}} profile. But I always knew that this, while an improvement, was not the final word on media support in Funtoo Linux, and that we needed to do more work here.
+
=== Installation ===
 +
{{console|body=###i## emerge app-antivirus/clamav}}
  
Recently, thanks to assistance from [[User:Mgorny|Michał Górny]], we have been able to implement my design for second-generation media support to Funtoo Linux! Here's how it works. Rather than have a single mix-in called "media", we now have finer-grained categories, and the existing {{c|media}} mix-in has been upgraded to pull in a subset of these categories. Let's look at all the new mix-ins:
+
Virus definitions need to be installed before starting the clamd service
 +
{{console|body=###i## freshclam}}
  
=== Media Device Mix-ins ===
+
=== Configuration ===
 +
Configuration files are located at {{c|/etc/conf.d/clamd}}, {{c|/etc/clamd.conf}}, and {{c|/etc/freshclam.conf}}
  
Media device mix-ins have been created to support media devices, including external and portable devices, and associated low-level hardware support and hardware-focused codecs. Media devices have been categorized into audio and video categories, and consumer and professional categories. "Consumer" devices are those devices that regular desktop users might typically use, while "professional" devices are those that professionals, hobbyists or enthusiasts would typically use. Here are the new mix-ins for media devices:
+
=== Runtime ===
 +
{{console|body=###i## rc-update add clamd default
 +
###i## rc}}
  
{{TableStart}}
+
==== Testing ====
<tr><th class="active">Mix-in</th><th class="active">Description</th></tr>
+
To make sure things are installed correctly, test this harmless file:
<tr><td>{{c|mediadevice-base}}</td><td>Common, universally-supported media devices, like IEEE-1394 (Firewire), CDDA, CDIO. Other mediadevice mix-ins have this as a parent.</td></tr>
+
{{console|body=###i## wget -O- http://www.eicar.org/download/eicar.com.txt | clamscan -
<tr><td>{{c|mediadevice-audio-consumer}}</td><td>Consumer audio devices, such as personal portable media players (iOS, iPod, etc.)</td></tr>
+
###i##rm eicar.com.txt}}
<tr><td>{{c|mediadevice-audio-pro}}</td><td>Pro audio support, such as JACK.</td></tr>
+
<tr><td>{{c|mediadevice-video-consumer}}</td><td>Consumer video support, such as DVD, Blu Ray, V4L</td></tr>
+
<tr><td>{{c|mediadevice-video-pro}}</td><td>Pro video support, such as dv, dc1394.</td></tr>
+
{{TableEnd}}
+
  
=== Media Format Mix-ins ===
+
==== Usage ====
 +
To scan single files:
 +
{{console|body=###i## clamscan /usr/bin/portageq}}
  
Media format mix-ins have been created to support media formats for reading, writing, encoding and decoding images, audio and video. They have been organized into a "common" collection, for popular formats, and an "extra" collection, which is intended to include "everything else". Let's look at the new mix-ins:
+
To scan a directory:
 
+
{{console|body=###i## clamscan -ir /var/www/localhost/htdocs/
{{TableStart}}
+
----------- SCAN SUMMARY -----------
<tr><th class="active">Mix-in</th><th class="active">Description</th></tr>
+
Known viruses: 3736482
<tr><td>{{c|mediaformat-video-common}}</td><td>Common (ie. popular) video formats.</td></tr>
+
Engine version: 0.98.6
<tr><td>{{c|mediaformat-video-extra}}</td><td>More esoteric video formats.</td></tr>
+
Scanned directories: 663
<tr><td>{{c|mediaformat-audio-common}}</td><td>Common (ie. popular) audio formats.</td></tr>
+
Scanned files: 6067
<tr><td>{{c|mediaformat-audio-extra}}</td><td>More esoteric audio formats.</td></tr>
+
Infected files: 0
<tr><td>{{c|mediaformat-gfx-common}}</td><td>Common (ie. popular) graphics formats.</td></tr>
+
Total errors: 8
<tr><td>{{c|mediaformat-gfx-extra}}</td><td>More esoteric graphics formats.</td></tr>
+
Data scanned: 58.61 MB
{{TableEnd}}
+
Data read: 36.59 MB (ratio 1.60:1)
 
+
Time: 42.691 sec (0 m 42 s)
=== How to Use Them ===
+
}}
 
+
Our existing {{c|media}} mix-in still exists, and is still pulled in by the {{c|desktop}} and {{c|workstation}} flavors automatically. It now includes the following parent mix-ins:
+
 
+
* {{c|mediadevice-audio-consumer}}
+
* {{c|mediadevice-video-consumer}}
+
* {{c|mediaformat-audio-common}}
+
* {{c|mediaformat-gfx-common}}
+
* {{c|mediaformat-video-common}}
+
 
+
In addition, there is a new {{c|media-pro}} mix-in which needs to be enabled manually, which pulls in the following mix-ins:
+
 
+
* {{c|mediadevice-audio-pro}}
+
* {{c|mediadevice-video-pro}}
+
 
+
So typically, you would enable the {{c|desktop}} or {{c|workstation}} flavor, and if you need professional hardware support, you'd also enable the {{c|media-pro}} mix-in. If you needed any additional media formats support, you could enable one or more of the {{c|mediaformat-*-extra}} mix-ins to add the formats you needed. Of course, it's possible to enable only the specific mix-ins you need, and also complement these mix-ins with specific USE variable settings you might require.
+
 
+
If you're new to Funtoo Profiles, see the [[Funtoo Profiles]] pages for more information on how they work.
+
 
+
=== Conclusion ===
+
  
Going forward, these mix-ins can be maintained to include new USE flags that are created, providing an easy way for people to enable the features they need without looking through long lists of USE variables. I hope you like the new system!
+
=== External Resources ===
{{NewsFooter}}
+
http://www.clamav.net/doc/install.html
 +
{{EbuildFooter}}

Latest revision as of 10:36, February 3, 2015

app-antivirus/clamav


Source Repository:Gentoo Portage Tree
Homepage

Summary: Clam Anti-Virus Scanner

Use Flags

clamdtop
A Top like tool which shows what clamd is currently scanning amongst other things
metadata-analysis-api
Enables collection of file property metadata using ClamAV API for analysis by ClamAV bytecode programs.

News

Drobbins

RSS/Atom Support

You can now follow this news feed at http://www.funtoo.org/news/atom.xml .
10 February 2015 by Drobbins
Drobbins

Creating a Friendly Funtoo Culture

This news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
2 February 2015 by Drobbins
Mgorny

CPU FLAGS X86

CPU_FLAGS_X86 are being introduced to group together USE flags managing CPU instruction sets.
31 January 2015 by Mgorny
View More News...

Clamav

Tip

This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Clamav is an open source antivirus solution.

Installation

# emerge app-antivirus/clamav


Virus definitions need to be installed before starting the clamd service

# freshclam


Configuration

Configuration files are located at /etc/conf.d/clamd, /etc/clamd.conf, and /etc/freshclam.conf

Runtime

# rc-update add clamd default
# rc


Testing

To make sure things are installed correctly, test this harmless file:

# wget -O- http://www.eicar.org/download/eicar.com.txt


Usage

To scan single files:

# clamscan /usr/bin/portageq


To scan a directory:

# clamscan -ir /var/www/localhost/htdocs/
----------- SCAN SUMMARY -----------
Known viruses: 3736482
Engine version: 0.98.6
Scanned directories: 663
Scanned files: 6067
Infected files: 0
Total errors: 8
Data scanned: 58.61 MB
Data read: 36.59 MB (ratio 1.60:1)
Time: 42.691 sec (0 m 42 s)


External Resources

http://www.clamav.net/doc/install.html