summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2022-04-12 17:28:40 +0200
committerThierry Thomas <thierry@FreeBSD.org>2022-04-12 19:38:09 +0200
commit02c5def706fad2d802b611f03418e96434ecdedf (patch)
treea406a0462c7e592d454ea26270e0f047502c65a1
parentdevel/py-jenkins-job-builder: Update to 4.0.0 (diff)
security/py-yara-python-dex: adding prebuilt dex-enabled yara-python wheels
This is needed to upgrade APKiD. Also add a conflict with security/py-yara.
-rw-r--r--security/py-yara-python-dex/Makefile31
-rw-r--r--security/py-yara-python-dex/distinfo7
-rw-r--r--security/py-yara-python-dex/pkg-descr5
-rw-r--r--security/py-yara/Makefile2
4 files changed, 45 insertions, 0 deletions
diff --git a/security/py-yara-python-dex/Makefile b/security/py-yara-python-dex/Makefile
new file mode 100644
index 000000000000..793abb8ef29b
--- /dev/null
+++ b/security/py-yara-python-dex/Makefile
@@ -0,0 +1,31 @@
+# Created by: thierry@pompo.net
+
+PORTNAME= yara-python-dex
+PORTVERSION= 1.0.1
+CATEGORIES= security python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Prebuilt dex-enabled yara-python wheels
+
+LICENSE= APACHE20
+
+USE_GITHUB= yes
+GH_ACCOUNT= MobSF VirusTotal:yp VirusTotal:yp2
+GH_PROJECT= yara-python:yp yara:yp2
+GH_TAGNAME= 188cb6e85137f715fef563f61c6b4f21ad026562:yp \
+ ed1a1a430c64cf908b61a5fadc3958866a840bc6:yp2
+GH_SUBDIR= yara-python:yp yara-python/yara:yp2
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}yara
+
+USES= python:3.7+ ssl
+USE_PYTHON= distutils
+
+.if !defined(WITH_DEBUG)
+LDFLAGS+= -s
+.endif
+
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/yara%%PYTHON_EXT_SUFFIX%%.so
+
+.include <bsd.port.mk>
diff --git a/security/py-yara-python-dex/distinfo b/security/py-yara-python-dex/distinfo
new file mode 100644
index 000000000000..2aa15a092748
--- /dev/null
+++ b/security/py-yara-python-dex/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1649780121
+SHA256 (MobSF-yara-python-dex-1.0.1_GH0.tar.gz) = c393b7f457f75d6e8ac7a3cca5676b89ba005491948051d3a23cb11f6c7f3018
+SIZE (MobSF-yara-python-dex-1.0.1_GH0.tar.gz) = 4423
+SHA256 (VirusTotal-yara-python-188cb6e85137f715fef563f61c6b4f21ad026562_GH0.tar.gz) = f685495d280ba2105fa4ca31e0ac8173f16c93c28514c2e66b25a57c7d2d45b8
+SIZE (VirusTotal-yara-python-188cb6e85137f715fef563f61c6b4f21ad026562_GH0.tar.gz) = 31860
+SHA256 (VirusTotal-yara-ed1a1a430c64cf908b61a5fadc3958866a840bc6_GH0.tar.gz) = 282b97f106076f389e8f74e8e957bdcefbe87cc34887a8be6b5efd64cc96f920
+SIZE (VirusTotal-yara-ed1a1a430c64cf908b61a5fadc3958866a840bc6_GH0.tar.gz) = 773459
diff --git a/security/py-yara-python-dex/pkg-descr b/security/py-yara-python-dex/pkg-descr
new file mode 100644
index 000000000000..c13f5c1d5a77
--- /dev/null
+++ b/security/py-yara-python-dex/pkg-descr
@@ -0,0 +1,5 @@
+With this library you can use YARA from your Python programs. It covers all
+YARA’s features, from compiling, saving and loading rules to scanning files,
+strings and processes.
+
+WWW: https://github.com/MobSF/yara-python-dex
diff --git a/security/py-yara/Makefile b/security/py-yara/Makefile
index ee5b78d42496..430a692e99be 100644
--- a/security/py-yara/Makefile
+++ b/security/py-yara/Makefile
@@ -10,6 +10,8 @@ COMMENT= Python bindings for yara
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}yara-python-dex
+
LIB_DEPENDS= libyara.so:security/yara
USE_GITHUB= yes