Bug 211056 - [NEW PORT] security/py-clamd: Python interface to Clamav daemon
Summary: [NEW PORT] security/py-clamd: Python interface to Clamav daemon
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks: 211061
  Show dependency treegraph
 
Reported: 2016-07-12 21:44 UTC by Danilo G. Baio
Modified: 2016-07-16 21:25 UTC (History)
1 user (show)

See Also:


Attachments
py-clamd.shar (1.75 KB, text/plain)
2016-07-12 21:44 UTC, Danilo G. Baio
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo G. Baio freebsd_committer freebsd_triage 2016-07-12 21:44:50 UTC
Created attachment 172437 [details]
py-clamd.shar

clamd is a portable Python module to use the ClamAV anti-virus engine
on Windows, Linux, MacOSX and other platforms. It requires a running
instance of the clamd daemon.
This is a fork of pyClamd v0.2.0 created by Philippe Lagadec and
published on his website: http://www.decalage.info/en/python/pyclamd
which in turn is a slightly improved version of pyClamd v0.1.1 created
by Alexandre Norman and published on his website:
http://xael.org/norman/python/pyclamd

This port will be used as a dependency for security/w3af.

- portlint compliant
- poudriere tests ok FreeBSD 9.3|10.3|11 - i386|amd64

Poudriere output as example:

build started at Tue Jul 12 18:40:38 BRT 2016
port directory: /usr/ports/security/py-clamd
building for: FreeBSD 103amd64-ports_dbaio 10.3-RELEASE-p3 FreeBSD 10.3-RELEASE-p3 amd64
maintained by: dbaio@bsd.com.br
ident warning: no id keywords in /usr/local/poudriere/data/.m/103amd64-ports_dbaio/ref//usr/ports/security/py-clamd/Makefile
Makefile ident: 
Poudriere version: 3.2-pre
Host OSVERSION: 1100120
Jail OSVERSION: 1003000
[...]
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
====>> Checking for staging violations... done
=======================<phase: package        >============================
===>  Building package for py27-clamd-1.0.2
===========================================================================
=======================<phase: install-mtree  >============================
===========================================================================
====>> Recording filesystem state for preinst... done
=======================<phase: install        >============================
===>  Installing for py27-clamd-1.0.2
===>   py27-clamd-1.0.2 depends on package: py27-setuptools27>0 - found
===>   py27-clamd-1.0.2 depends on file: /usr/local/bin/python2.7 - found
===>  Checking if py27-clamd already installed
===>   Registering installation for py27-clamd-1.0.2
[103amd64-ports_dbaio] Installing py27-clamd-1.0.2...
===========================================================================
====>> Checking shared library dependencies
=======================<phase: deinstall      >============================
===>  Deinstalling for py27-clamd
===>   Deinstalling py27-clamd-1.0.2
Updating database digests format: ....... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	py27-clamd-1.0.2

Number of packages to be removed: 1
[103amd64-ports_dbaio] [1/1] Deinstalling py27-clamd-1.0.2...
[103amd64-ports_dbaio] [1/1] Deleting files for py27-clamd-1.0.2: .......... done
===========================================================================
====>> Checking for extra files and directories
[00:00:21] ====>> Installing from package
[103amd64-ports_dbaio] Installing py27-clamd-1.0.2...
[103amd64-ports_dbaio] Extracting py27-clamd-1.0.2: .......... done
[00:00:21] ====>> Cleaning up
===>  Cleaning for py27-clamd-1.0.2
[00:00:21] ====>> Deinstalling package
Updating database digests format: . done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	py27-clamd-1.0.2

Number of packages to be removed: 1
[103amd64-ports_dbaio] [1/1] Deinstalling py27-clamd-1.0.2...
[103amd64-ports_dbaio] [1/1] Deleting files for py27-clamd-1.0.2: .......... done
build of security/py-clamd ended at Tue Jul 12 18:40:53 BRT 2016
build time: 00:00:15
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2016-07-14 16:56:26 UTC
Is there a reason not to use an upgraded version of security/py-pyclamd ?

That port is @0.2.2, upstream is @0.3.17, and says:

This version is compatible with python 3 (tested with 3.4.3) and python 2 (tested 2.7.3).
Comment 2 Danilo G. Baio freebsd_committer freebsd_triage 2016-07-15 16:36:56 UTC
(In reply to Kurt Jaeger from comment #1)

Hi Kurt.

I was following the w3af requirements that points out to this old version. But is valid your point, I will try w3af with this newer version.

Basically the functions are the same, maybe a slight change on import lines will be necessary.

Please, hold this bug until tomorrow. Thanks.
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2016-07-15 17:11:06 UTC
Please, if possible, test with the upgraded py-pyclamd version from

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211125
Comment 4 Danilo G. Baio freebsd_committer freebsd_triage 2016-07-16 21:25:54 UTC
It was necessary a small patch but it worked out.
I am closing this bug.

Thanks.