mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
pyClamd is a python interface to Clamd (Clamav daemon).
By using pyClamd, you can add virus detection capabilities to your python software in an efficient and easy way. PR: ports/130312 Submitted by: Milan Obuch
This commit is contained in:
parent
e2c0b5376c
commit
2367e4c0e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=225619
@ -503,6 +503,7 @@
|
||||
SUBDIR += py-libgmail
|
||||
SUBDIR += py-milter
|
||||
SUBDIR += py-ppolicy
|
||||
SUBDIR += py-pyclamd
|
||||
SUBDIR += py-spambayes
|
||||
SUBDIR += py-spf
|
||||
SUBDIR += py-turbomail
|
||||
|
31
mail/py-pyclamd/Makefile
Normal file
31
mail/py-pyclamd/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: pyClamd
|
||||
# Date created: Jan 7, 2009
|
||||
# Whom: Milan Obuch
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pyclamd
|
||||
PORTVERSION= 0.1.1
|
||||
CATEGORIES= mail python
|
||||
MASTER_SITES= http://xael.org/norman/python/pyclamd/
|
||||
DISTFILES= pyclamd.py
|
||||
|
||||
MAINTAINER= bsd@dino.sk
|
||||
COMMENT= Python ClamD interface module
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS=yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}/${PKGNAME}
|
||||
if ! (cd ${WRKDIR} && ${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PKGNAME}/); \
|
||||
then \
|
||||
exit 1; \
|
||||
fi; \
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
mail/py-pyclamd/distinfo
Normal file
3
mail/py-pyclamd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (pyclamd.py) = fcdc195401e8c78a0d19ee6b8c23fdcb
|
||||
SHA256 (pyclamd.py) = 3542cc2271c8365a4205c563705a9f3090dca3f6242524119cb6560b7bbfcbaf
|
||||
SIZE (pyclamd.py) = 10498
|
38
mail/py-pyclamd/files/patch-pyclamd.py
Normal file
38
mail/py-pyclamd/files/patch-pyclamd.py
Normal file
@ -0,0 +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')
|
||||
|
||||
# Get Clamscan version
|
||||
print pyclamd.version()
|
||||
@@ -29,7 +29,7 @@
|
||||
Test strings :
|
||||
^^^^^^^^^^^^
|
||||
>>> try:
|
||||
-... init_unix_socket('/var/run/clamd')
|
||||
+... init_unix_socket('/var/run/clamav/clamd')
|
||||
... except ScanError:
|
||||
... init_network_socket('localhost', 3310)
|
||||
...
|
||||
@@ -68,7 +68,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
|
||||
|
||||
@@ -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
|
||||
|
19
mail/py-pyclamd/files/patch-setup.py
Normal file
19
mail/py-pyclamd/files/patch-setup.py
Normal file
@ -0,0 +1,19 @@
|
||||
--- setup.py.orig 2009-01-07 13:42:10.000000000 +0100
|
||||
+++ setup.py 2009-01-07 13:42:27.000000000 +0100
|
||||
@@ -0,0 +1,16 @@
|
||||
+#!/usr/bin/python
|
||||
+
|
||||
+import glob
|
||||
+import os
|
||||
+import sys
|
||||
+from distutils.core import setup
|
||||
+
|
||||
+setup(name="pyclamd",
|
||||
+ version="0.1.1",
|
||||
+ description="Python ClamD module.",
|
||||
+ author="Alexandre Norman",
|
||||
+ author_email="norman@xael.org",
|
||||
+ url="http://xael.org/norman/python/pyclamd/",
|
||||
+ license="GPL",
|
||||
+ packages=['']
|
||||
+ )
|
3
mail/py-pyclamd/pkg-descr
Normal file
3
mail/py-pyclamd/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
pyClamd is a python interface to Clamd (Clamav daemon).
|
||||
By using pyClamd, you can add virus detection capabilities
|
||||
to your python software in an efficient and easy way.
|
3
mail/py-pyclamd/pkg-plist
Normal file
3
mail/py-pyclamd/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.py
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.pyo
|
31
security/py-pyclamd/Makefile
Normal file
31
security/py-pyclamd/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: pyClamd
|
||||
# Date created: Jan 7, 2009
|
||||
# Whom: Milan Obuch
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pyclamd
|
||||
PORTVERSION= 0.1.1
|
||||
CATEGORIES= mail python
|
||||
MASTER_SITES= http://xael.org/norman/python/pyclamd/
|
||||
DISTFILES= pyclamd.py
|
||||
|
||||
MAINTAINER= bsd@dino.sk
|
||||
COMMENT= Python ClamD interface module
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS=yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}/${PKGNAME}
|
||||
if ! (cd ${WRKDIR} && ${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PKGNAME}/); \
|
||||
then \
|
||||
exit 1; \
|
||||
fi; \
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
security/py-pyclamd/distinfo
Normal file
3
security/py-pyclamd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (pyclamd.py) = fcdc195401e8c78a0d19ee6b8c23fdcb
|
||||
SHA256 (pyclamd.py) = 3542cc2271c8365a4205c563705a9f3090dca3f6242524119cb6560b7bbfcbaf
|
||||
SIZE (pyclamd.py) = 10498
|
38
security/py-pyclamd/files/patch-pyclamd.py
Normal file
38
security/py-pyclamd/files/patch-pyclamd.py
Normal file
@ -0,0 +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')
|
||||
|
||||
# Get Clamscan version
|
||||
print pyclamd.version()
|
||||
@@ -29,7 +29,7 @@
|
||||
Test strings :
|
||||
^^^^^^^^^^^^
|
||||
>>> try:
|
||||
-... init_unix_socket('/var/run/clamd')
|
||||
+... init_unix_socket('/var/run/clamav/clamd')
|
||||
... except ScanError:
|
||||
... init_network_socket('localhost', 3310)
|
||||
...
|
||||
@@ -68,7 +68,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
|
||||
|
||||
@@ -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
|
||||
|
19
security/py-pyclamd/files/patch-setup.py
Normal file
19
security/py-pyclamd/files/patch-setup.py
Normal file
@ -0,0 +1,19 @@
|
||||
--- setup.py.orig 2009-01-07 13:42:10.000000000 +0100
|
||||
+++ setup.py 2009-01-07 13:42:27.000000000 +0100
|
||||
@@ -0,0 +1,16 @@
|
||||
+#!/usr/bin/python
|
||||
+
|
||||
+import glob
|
||||
+import os
|
||||
+import sys
|
||||
+from distutils.core import setup
|
||||
+
|
||||
+setup(name="pyclamd",
|
||||
+ version="0.1.1",
|
||||
+ description="Python ClamD module.",
|
||||
+ author="Alexandre Norman",
|
||||
+ author_email="norman@xael.org",
|
||||
+ url="http://xael.org/norman/python/pyclamd/",
|
||||
+ license="GPL",
|
||||
+ packages=['']
|
||||
+ )
|
3
security/py-pyclamd/pkg-descr
Normal file
3
security/py-pyclamd/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
pyClamd is a python interface to Clamd (Clamav daemon).
|
||||
By using pyClamd, you can add virus detection capabilities
|
||||
to your python software in an efficient and easy way.
|
3
security/py-pyclamd/pkg-plist
Normal file
3
security/py-pyclamd/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.py
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pyclamd.pyo
|
Loading…
Reference in New Issue
Block a user