diff options
author | rene <rene@FreeBSD.org> | 2016-05-30 20:19:57 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2016-05-30 20:19:57 +0800 |
commit | 917f3d5f0713c336635813321aa3830d8d39beb6 (patch) | |
tree | 30de24d1d4d2664b905fc0d10e1ff5fbff594a4b | |
parent | e74fa7ffcdc5cf88fa9bf18d2f7dc1a3d91dac4f (diff) | |
download | freebsd-ports-gnome-917f3d5f0713c336635813321aa3830d8d39beb6.tar.gz freebsd-ports-gnome-917f3d5f0713c336635813321aa3830d8d39beb6.tar.zst freebsd-ports-gnome-917f3d5f0713c336635813321aa3830d8d39beb6.zip |
Remove expired port:
2016-03-31 security/py-clamav: Not updated since 2008 by upstream and abandoned in favor of pyClamd (security/py-pyclamd)
-rw-r--r-- | MOVED | 1 | ||||
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/py-clamav/Makefile | 42 | ||||
-rw-r--r-- | security/py-clamav/distinfo | 2 | ||||
-rw-r--r-- | security/py-clamav/files/patch-pyclamav.c | 120 | ||||
-rw-r--r-- | security/py-clamav/pkg-descr | 10 |
6 files changed, 1 insertions, 175 deletions
@@ -8332,3 +8332,4 @@ devel/maven-ant-tasks||2016-05-27|Use Maven directly graphics/py-imaging|graphics/py-pillow|2016-05-28|Has expired: Unmaintained upstream; use graphics/py-pillow textproc/py-curator|textproc/py-elasticsearch-curator-py|2016-05-29|Follow existing Elasticsearch naming conventions databases/py-psycopg|databases/py-psycopg2|2016-05-29|Has expired: This port is obsoleted by databases/py-psycopg2. +security/py-clamav|security/py-pyclamd|2016-05-30|Has expired: Not updated since 2008 by upstream and abandoned in favor of pyClamd (security/py-pyclamd) diff --git a/security/Makefile b/security/Makefile index 1c7ab0546bb6..84fee77e22e5 100644 --- a/security/Makefile +++ b/security/Makefile @@ -824,7 +824,6 @@ SUBDIR += py-borg.localrole SUBDIR += py-cerealizer SUBDIR += py-certifi - SUBDIR += py-clamav SUBDIR += py-cpe SUBDIR += py-cracklib SUBDIR += py-crits diff --git a/security/py-clamav/Makefile b/security/py-clamav/Makefile deleted file mode 100644 index 6d432d0580d8..000000000000 --- a/security/py-clamav/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -# Created by: Marcus Alves Grando <mnag@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= clamav -PORTVERSION= 0.4.1 -PORTREVISION= 6 -CATEGORIES= security python -MASTER_SITES= http://xael.org/norman/python/pyclamav/ -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= py${PORTNAME}-${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= Python binding to libclamav written in C - -LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/gpl.txt - -BROKEN= unfetchable -DEPRECATED= Not updated since 2008 by upstream and abandoned in favor of pyClamd (security/py-pyclamd) -EXPIRATION_DATE= 2016-03-31 - -LIB_DEPENDS= libclamav.so:security/clamav - -DIST_SUBDIR= python -USES= python -USE_PYTHON= distutils autoplist -PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib - -DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME} -EXAMPLESDIR?= ${PREFIX}/share/examples/py-${PORTNAME} - -PORTDOCS= * -PORTEXAMPLES= * - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyclamav.so - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR} - -.include <bsd.port.mk> diff --git a/security/py-clamav/distinfo b/security/py-clamav/distinfo deleted file mode 100644 index ad7a96082ab7..000000000000 --- a/security/py-clamav/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (python/pyclamav-0.4.1.tar.gz) = 27f0ea9771a9c5d8f974761df829a85344a19cf47a4b23a3f69836de2717b81c -SIZE (python/pyclamav-0.4.1.tar.gz) = 12789 diff --git a/security/py-clamav/files/patch-pyclamav.c b/security/py-clamav/files/patch-pyclamav.c deleted file mode 100644 index 5785478ff497..000000000000 --- a/security/py-clamav/files/patch-pyclamav.c +++ /dev/null @@ -1,120 +0,0 @@ ---- pyclamav.c.orig 2009-03-24 18:25:44.000000000 -0300 -+++ pyclamav.c 2009-03-24 18:25:51.000000000 -0300 -@@ -33,25 +33,6 @@ - - /* ********************************************************* */ - --/* To be able to compile with -- releases 0.75 of libclamav -- -- Where cl_free was cl_freetrie -- and cl_build was cl_buildtrie -- CL_SCAN_STDOPT did not exist --*/ --#ifndef CL_SCAN_STDOPT --#define CL_SCAN_STDOPT CL_RAW | CL_ARCHIVE | CL_MAIL | CL_DISABLERAR | CL_OLE2 | CL_ENCRYPTED --void cl_free(struct cl_node *rootnode) { -- cl_freetrie(rootnode); -- return; --} -- --int cl_build(struct cl_node *rootnode) { -- return cl_buildtrie(rootnode); --} --#endif -- - /* For python prior to 2.3 */ - #ifndef PyMODINIT_FUNC - #define PyMODINIT_FUNC void -@@ -68,8 +49,7 @@ - unsigned int signumber = 0; - - /* Structures for clamav */ --struct cl_node *root = NULL; --struct cl_limits limits; -+struct cl_engine *root = NULL; - struct cl_stat dbstat; - - -@@ -86,21 +66,22 @@ - if (cl_statchkdir(&dbstat) == 1) - { - /* free the tree */ -- cl_free(root); -+ cl_engine_free(root); - signumber=0; - root=NULL; - - /* Load DB */ -- if((ret = cl_load(cl_retdbdir(), &root, &signumber, CL_DB_STDOPT))) { -+ if((ret = cl_load(cl_retdbdir(), root, &signumber, CL_DB_STDOPT)) != CL_SUCCESS) { - /* Raise exception with error message */ - PyErr_SetString(PyclamavError, cl_strerror(ret)); -+ cl_engine_free(root); - return -2; - } - - /* build the final tree */ -- if((ret = cl_build(root))) { -+ if((ret = cl_engine_compile(root)) != CL_SUCCESS) { - /* free the partial tree */ -- cl_free(root); -+ cl_engine_free(root); - /* Raise exception with error message */ - PyErr_SetString(PyclamavError, cl_strerror(ret)); - return -2; -@@ -231,7 +212,7 @@ - return NULL; - } - -- ret = cl_scanfile(file_to_scan, &virname, &size, root, &limits, CL_SCAN_STDOPT); -+ ret = cl_scanfile(file_to_scan, &virname, &size, root, CL_SCAN_STDOPT); - - /* Test return code */ - switch (ret) { -@@ -278,17 +259,28 @@ - /* Set documentation string for the module */ - PyDict_SetItemString(dict, "__doc__", PyString_FromString("pyclamav :\n\n This is a python binding to the C libclamav library\n (from the Clamav project - http://www.clamav.net).\n It can be used to easily allow a Python script to scan\n a file or a buffer against known viruses.\n\nAuthor : Alexandre Norman [norman@xael.org]\n\nFunctions :\n - scanfile(string filename) : Scan a file for virus.\n - get_numsig() : Return the number of known signatures.\n - get_version() : Return the version of Clamav.\n - version() : Return the version of pyclamav.\n")); - -+ if((ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS) { -+ /* Raise exception with error message */ -+ PyErr_SetString(PyclamavError, cl_strerror(ret)); -+ return; -+ } - -- if((ret = cl_load(cl_retdbdir(), &root, &signumber, CL_DB_STDOPT))) { -+ if(!(root = cl_engine_new())) { -+ PyErr_SetString(PyclamavError, "Can't create new engine."); -+ return; -+ } -+ -+ if((ret = cl_load(cl_retdbdir(), root, &signumber, CL_DB_STDOPT)) != CL_SUCCESS) { - /* Raise exception with error message */ - PyErr_SetString(PyclamavError, cl_strerror(ret)); -+ cl_engine_free(root); - return; - } - - /* build the final tree */ -- if((ret = cl_build(root))) { -+ if((ret = cl_engine_compile(root)) != CL_SUCCESS) { - /* free the partial tree */ -- cl_free(root); -+ cl_engine_free(root); - /* Raise exception with error message */ - PyErr_SetString(PyclamavError, cl_strerror(ret)); - return; -@@ -301,13 +293,6 @@ - - - -- /* set up archive limits */ -- memset(&limits, 0, sizeof(struct cl_limits)); -- limits.maxfiles = 1000; /* max files */ -- limits.maxfilesize = 10 * 1048576; /* maximal archived file size == 10 Mb */ -- limits.maxreclevel = 5; /* maximal recursion level */ -- limits.archivememlim = 0; /* disable memory limit for bzip2 scanner */ -- - return ; - } - diff --git a/security/py-clamav/pkg-descr b/security/py-clamav/pkg-descr deleted file mode 100644 index bc3ef7c85411..000000000000 --- a/security/py-clamav/pkg-descr +++ /dev/null @@ -1,10 +0,0 @@ -pyClamAV is a python binding to libclamav written -in C. - -By using pyClamAV, you can add virus detection -capabilities to your python software in an efficient -and easy way. - -WWW: http://xael.org/norman/python/pyclamav/ - -Marcus Alves Grando <mnag@FreeBSD.org> |