ports/157744: security/py-pyclamd maintainer update
Milan Obuch
bsd at dino.sk
Fri Jun 10 19:40:09 UTC 2011
>Number: 157744
>Category: ports
>Synopsis: security/py-pyclamd maintainer update
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 10 19:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Milan Obuch
>Release: 7.4, 8.2, 9.0
>Organization:
>Environment:
>Description:
There is new version at http://xael.org/norman/python/pyclamd and time to update...
>How-To-Repeat:
>Fix:
Apply attached patch. It is tested and used on couple boxes with current ClamAV successfully.
Note:
There is no versioning in distfile name on original site, so FreeBSD's local copy should be refreshed somehow, maybe manually.
Patch attached with submission follows:
diff -urN py-pyclamd/Makefile py-pyclamd-0.2.2/Makefile
--- py-pyclamd/Makefile 2009-02-15 00:32:14.000000000 +0100
+++ py-pyclamd-0.2.2/Makefile 2011-01-26 20:23:31.000000000 +0100
@@ -6,7 +6,7 @@
#
PORTNAME= pyclamd
-PORTVERSION= 0.1.1
+PORTVERSION= 0.2.2
CATEGORIES= security python
MASTER_SITES= http://xael.org/norman/python/pyclamd/
DISTFILES= pyclamd.py
diff -urN py-pyclamd/distinfo py-pyclamd-0.2.2/distinfo
--- py-pyclamd/distinfo 2009-02-15 00:29:44.000000000 +0100
+++ py-pyclamd-0.2.2/distinfo 2011-01-26 11:54:50.000000000 +0100
@@ -1,3 +1,2 @@
-MD5 (pyclamd.py) = fcdc195401e8c78a0d19ee6b8c23fdcb
-SHA256 (pyclamd.py) = 3542cc2271c8365a4205c563705a9f3090dca3f6242524119cb6560b7bbfcbaf
-SIZE (pyclamd.py) = 10498
+SHA256 (pyclamd.py) = 209673f947ce16d53bab43c19bfb8200f8b40cc70b26d4dbc9a0e203c561d16e
+SIZE (pyclamd.py) = 13101
diff -urN py-pyclamd/files/patch-pyclamd.py py-pyclamd-0.2.2/files/patch-pyclamd.py
--- py-pyclamd/files/patch-pyclamd.py 2009-01-10 00:24:06.000000000 +0100
+++ py-pyclamd-0.2.2/files/patch-pyclamd.py 2011-01-26 20:15:04.000000000 +0100
@@ -1,38 +1,38 @@
---- pyclamd.py.orig 2007-04-11 18:10:26.000000000 +0200
-+++ pyclamd.py 2007-08-28 11:28:48.000000000 +0200
-@@ -14,7 +14,7 @@
- # Network
- pyclamd.init_network_socket('localhost', 3310)
- # Unix local socket
-- #pyclamd.init_unix_socket('/var/run/clamd')
-+ #pyclamd.init_unix_socket('/var/run/clamav/clamd')
+--- pyclamd.py.orig 2011-01-26 20:08:38.000000000 +0100
++++ pyclamd.py 2011-01-26 20:14:58.000000000 +0100
+@@ -51,7 +51,7 @@
+ # Network
+ pyclamd.init_network_socket('localhost', 3310)
+ # Unix local socket
+- #pyclamd.init_unix_socket('/var/run/clamd')
++ #pyclamd.init_unix_socket('/var/run/clamav/clamd.sock')
- # Get Clamscan version
- print pyclamd.version()
-@@ -29,7 +29,7 @@
+ # Get Clamscan version
+ print pyclamd.version()
+@@ -66,7 +66,7 @@
Test strings :
^^^^^^^^^^^^
>>> try:
--... init_unix_socket('/var/run/clamd')
-+... init_unix_socket('/var/run/clamav/clamd')
+-... init_unix_socket('/var/run/clamav/clamd.ctl')
++... init_unix_socket('/var/run/clamav/clamd.sock')
... except ScanError:
- ... init_network_socket('localhost', 3310)
+ ... init_network_socket('localhost', 3310)
...
-@@ -68,7 +68,7 @@
+@@ -110,7 +110,7 @@
# Default values for globals
use_socket = None
--clamd_SOCKET = "/var/run/clamd"
-+clamd_SOCKET = "/var/run/clamav/clamd"
- clamd_HOST='127.0.0.1'
- clamd_PORT=3310
+-clamd_SOCKET = "/var/run/clamav/clamd.ctl"
++clamd_SOCKET = "/var/run/clamav/clamd.sock"
+ clamd_HOST = '127.0.0.1'
+ clamd_PORT = 3310
+ clamd_timeout = None #[PL] default timeout for sockets: None = blocking operations
+@@ -121,7 +121,7 @@
-@@ -85,7 +85,7 @@
-
############################################################################
--def init_unix_socket(filename="/var/run/clamd"):
-+def init_unix_socket(filename="/var/run/clamav/clamd"):
- """
- Init pyclamd to use clamd unix local socket
-
+-def init_unix_socket(filename="/var/run/clamav/clamd.ctl"):
++def init_unix_socket(filename="/var/run/clamav/clamd.sock"):
+ """
+ Init pyclamd to use clamd unix local socket
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list