diff options
author | miwi <miwi@FreeBSD.org> | 2009-01-10 07:24:06 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-01-10 07:24:06 +0800 |
commit | 3b9988885d29c53e443d6af93525a8ea4edb0908 (patch) | |
tree | e0ef1924e6168267f7d02dfd73f36d881ab78b8a /security | |
parent | a161d545697345458d4d3e8688c417d8c6ce4fa9 (diff) | |
download | freebsd-ports-gnome-3b9988885d29c53e443d6af93525a8ea4edb0908.tar.gz freebsd-ports-gnome-3b9988885d29c53e443d6af93525a8ea4edb0908.tar.zst freebsd-ports-gnome-3b9988885d29c53e443d6af93525a8ea4edb0908.zip |
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
Diffstat (limited to 'security')
-rw-r--r-- | security/py-pyclamd/Makefile | 31 | ||||
-rw-r--r-- | security/py-pyclamd/distinfo | 3 | ||||
-rw-r--r-- | security/py-pyclamd/files/patch-pyclamd.py | 38 | ||||
-rw-r--r-- | security/py-pyclamd/files/patch-setup.py | 19 | ||||
-rw-r--r-- | security/py-pyclamd/pkg-descr | 3 | ||||
-rw-r--r-- | security/py-pyclamd/pkg-plist | 3 |
6 files changed, 97 insertions, 0 deletions
diff --git a/security/py-pyclamd/Makefile b/security/py-pyclamd/Makefile new file mode 100644 index 000000000000..28bffa80a9a8 --- /dev/null +++ b/security/py-pyclamd/Makefile @@ -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> diff --git a/security/py-pyclamd/distinfo b/security/py-pyclamd/distinfo new file mode 100644 index 000000000000..00eb05a9439e --- /dev/null +++ b/security/py-pyclamd/distinfo @@ -0,0 +1,3 @@ +MD5 (pyclamd.py) = fcdc195401e8c78a0d19ee6b8c23fdcb +SHA256 (pyclamd.py) = 3542cc2271c8365a4205c563705a9f3090dca3f6242524119cb6560b7bbfcbaf +SIZE (pyclamd.py) = 10498 diff --git a/security/py-pyclamd/files/patch-pyclamd.py b/security/py-pyclamd/files/patch-pyclamd.py new file mode 100644 index 000000000000..029b4ee6c049 --- /dev/null +++ b/security/py-pyclamd/files/patch-pyclamd.py @@ -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 + diff --git a/security/py-pyclamd/files/patch-setup.py b/security/py-pyclamd/files/patch-setup.py new file mode 100644 index 000000000000..1d1dea40572d --- /dev/null +++ b/security/py-pyclamd/files/patch-setup.py @@ -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=[''] ++ ) diff --git a/security/py-pyclamd/pkg-descr b/security/py-pyclamd/pkg-descr new file mode 100644 index 000000000000..eed312fdeeaf --- /dev/null +++ b/security/py-pyclamd/pkg-descr @@ -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. diff --git a/security/py-pyclamd/pkg-plist b/security/py-pyclamd/pkg-plist new file mode 100644 index 000000000000..afc9252dac66 --- /dev/null +++ b/security/py-pyclamd/pkg-plist @@ -0,0 +1,3 @@ +%%PYTHON_SITELIBDIR%%/pyclamd.py +%%PYTHON_SITELIBDIR%%/pyclamd.pyc +%%PYTHON_SITELIBDIR%%/pyclamd.pyo |