summaryrefslogtreecommitdiff
path: root/dev-perl/File-Scan-ClamAV
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-29 18:57:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-29 18:57:21 +0000
commit8455eae17683fbd2c785ca4b8443581622f388c7 (patch)
tree51bb7aac8b41b8f6e692f9e5b4e65001315b43fd /dev-perl/File-Scan-ClamAV
parentb2f1788f6f0365b76f55f257b2d170c1e68a8640 (diff)
gentoo auto-resync : 29:01:2024 - 18:57:21
Diffstat (limited to 'dev-perl/File-Scan-ClamAV')
-rw-r--r--dev-perl/File-Scan-ClamAV/File-Scan-ClamAV-1.950.0-r3.ebuild57
-rw-r--r--dev-perl/File-Scan-ClamAV/Manifest1
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-perl/File-Scan-ClamAV/File-Scan-ClamAV-1.950.0-r3.ebuild b/dev-perl/File-Scan-ClamAV/File-Scan-ClamAV-1.950.0-r3.ebuild
new file mode 100644
index 000000000000..91ca2489fab2
--- /dev/null
+++ b/dev-perl/File-Scan-ClamAV/File-Scan-ClamAV-1.950.0-r3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=ESAYM
+DIST_VERSION=1.95
+
+inherit perl-module
+
+DESCRIPTION="Connect to a local Clam Anti-Virus clamd service and send commands"
+
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+RDEPEND="
+ app-antivirus/clamav[clamapp(+)]
+"
+BDEPEND="
+ ${RDEPEND}
+ app-alternatives/gzip
+ app-arch/zip
+ virtual/perl-ExtUtils-MakeMaker
+"
+
+# Test's can't be run in parallel because they internally spawn a
+# clam server on the same shared socket
+DIST_TEST="do"
+
+src_prepare() {
+ eapply_user
+
+ # https://github.com/smith153/File-Scan-ClamAV/pull/7
+ # https://rt.cpan.org/Public/Bug/Display.html?id=132387
+ # https://rt.cpan.org/Public/Bug/Display.html?id=113277
+
+ gzip -c testfiles/clamavtest > testfiles/clamavtest.gz || die
+ zip testfiles/clamavtest.zip testfiles/clamavtest || die
+
+ # Clamav changed signatures
+ # https://docs.clamav.net/manual/Signatures/SignatureNames.html
+ sed -i -e 's/Eicar-Test-Signature/Win.Test.EICAR_HDB-1/' t/05streamscan.t || die
+}
+
+src_test() {
+ if [[ "${TEST_SCAN_CLAMAV:-0}" == "1" || -n "${DIST_TEST_OVERRIDE}" ]]; then
+ perl_rm_files t/pod-coverage.t t/pod.t
+ perl-module_src_test
+ else
+ einfo "Skipping Tests."
+ einfo
+ einfo "Tests require a manually and correctly configured ClamAV."
+ einfo
+ einfo "Set TEST_SCAN_CLAMAV=1 if you wish to run this test and have"
+ einfo "configured ClamAV"
+ fi
+}
diff --git a/dev-perl/File-Scan-ClamAV/Manifest b/dev-perl/File-Scan-ClamAV/Manifest
index 42b48870e6f1..626821fec70e 100644
--- a/dev-perl/File-Scan-ClamAV/Manifest
+++ b/dev-perl/File-Scan-ClamAV/Manifest
@@ -1,3 +1,4 @@
DIST File-Scan-ClamAV-1.95.tar.gz 15010 BLAKE2B 34e9d6b923cc7c302f8ddb012d387a138ac378774d3e1a92fa409306a57a92a7a2d284b82de7f0fd9388cfadc722348438ddbc2cdb8dc6922ea5cac845a21880 SHA512 604b3e4f876be41e0963e4969b8b06d4b720092d2e5e7b4b2f6f39db502fb213b38025d3904c1528d1c3d1aaf81e43e09924618efd1b29db221ac4e8e6149b93
EBUILD File-Scan-ClamAV-1.950.0-r2.ebuild 883 BLAKE2B 70fc3b6b417912cfc8659e7736b6d2da8567aa0c41c307ac2063a6fd87f4fb6458284b550ab8ed3fc415ab3e4ff1668949a074604219cfe4e679149760c2cc9e SHA512 b6de736df64d9f7236142b56f4b741851ae3a39312768e154937f7dfc6e0a0b35f4c1db7ec9a01050f3c7c525fb14d7a28efbb3333c7c01b3d13969dcbc68717
+EBUILD File-Scan-ClamAV-1.950.0-r3.ebuild 1433 BLAKE2B c444bfe90fd2e3131de3543ea8ee90929ad76a6413bd9a5a8ed7c15b675670ac3af9d653c45800fc2712ff2a3f5861c6e65db46def25e23f88bb92f0e2b16fda SHA512 3066886bb8babf8963a4aadccc14eca7c6777c2b8c1bb2dd97ef3c4c9aeaa26446ed01b2fe1c248684d344704ae206ec2f9e0eba73c5707641aa2fa670780c01
MISC metadata.xml 317 BLAKE2B fd6b8c41344cc7cfb84c0b3c8f3b3ffbfe9654d781b20391ca811a9a6b869255a13f6d7370755ce919570068c2d17f4f6451eb4676c143b4eea20144a939b9d3 SHA512 733ac1fa287cad34f9ab8b653a531b6eeded62c74663a9461aa59eef144efcfec56aa44fe3c32ca07ebcb7b7b9d6fb2dca7fef45067752bf21fbc9b24bc09319