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
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).
(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.
Please, if possible, test with the upgraded py-pyclamd version from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211125
It was necessary a small patch but it worked out. I am closing this bug. Thanks.