diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-antivirus/clamav-unofficial-sigs | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-antivirus/clamav-unofficial-sigs')
6 files changed, 246 insertions, 0 deletions
diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest new file mode 100644 index 000000000000..32c586acb8f4 --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/Manifest @@ -0,0 +1,7 @@ +AUX clamav-unofficial-sigs.8 4568 BLAKE2B 3bb0a56c11d733d0727c38588fb1b9b38b679e32cf9ac0b2c277f623e3a3508df2aa0ac65497fa0026d43a629ec69a0cad386ca57b9cb8178b30b3061fc2abf1 SHA512 8e688281c6918ea8c13f5d76c63fee65b6e3378ca1d2e92033a741b7f02d12607d838484075e0d3ae8d99680a5b235acee062fc80c63f7e5577cfee575b56573 +AUX clamav-unofficial-sigs.logrotate 109 BLAKE2B 662b268f5332f088670fb762dd5162c0fccba68ca3fad5d089f2330057f1d52c35785924e56a8174c3d9c2d7d6c9232f3d41adb83c2cd88c55d096b764781ed8 SHA512 3d79caf1bbc29218aacda9c6c411b6b9e827644c3a89a3a1b9e0d89baeb7927cdbda3322c9b5a5186e53f0efa598e165d10cfa698936a687bd6279f6e3866830 +DIST clamav-unofficial-sigs-3.7.2.tar.gz 38549 BLAKE2B 2f00e9adf5f54e2b38c602da56a2daeb70618123ab4e59a74804885252f3cad2c23f7b9b10f4ec664c6977bca849947b83d0fc69f76669dbae58ebff54c6755b SHA512 ee07bf521cca229bc85acb887c8e520149955732797a9d220e24f09cb9e89f9bd189ad77dc781c03c60bdaaec2bfa91a6c96cf7a0b689759cddf3ff231b8b0a4 +DIST clamav-unofficial-sigs-5.6.1.tar.gz 51024 BLAKE2B 6c1da70c0ef93738533e69902ea8dc418ed76004361bf10199a7a661bd54cbcbcd3cfd4b32d5f592155ff354e4f8330fd2a92ab06b6b7c05211224bc1892d86a SHA512 a3660abe301e96104393d337ff2b7f73324241bb921d71626e4a6ea4cec39709ce76dbb9432fd048c66441f0acbb1b92fa561397669ffdca98f463d7da8e7402 +EBUILD clamav-unofficial-sigs-3.7.2.ebuild 2808 BLAKE2B 859a3ee7a7d3486b7923460ad06b858b9af4fd5d86ef9b143c72b7326748ef5cad341acc322919e31a65833f4152240ae1aac285fa300d66a8ce4ce911dfe91a SHA512 2174641a412029828d0746c89c5b98074a74da636cd1de3e8f9a589708917b684a1a73625a2e9ebb064297a62cbb8572c62f2ca55eb568b4e5c0b9ff7d995a34 +EBUILD clamav-unofficial-sigs-5.6.1.ebuild 1607 BLAKE2B 73a2518a78c72860aeb2c219407cbcbadaab056312684559334effa4def4247713ecc8ef14845b13ab94cfb9075abc1d72a6e098fe75d7f61412946a790aa7a1 SHA512 6a601824bc1aba3e6f9af85a6a381075cdecbdaee6ebe3feda4dc6c11b83e97e5b67409b190b114e8cbca1daf8e16ce121956beb4200ef44791dbe023f9960fb +MISC metadata.xml 383 BLAKE2B 3640860216d88ba2817e3c23aea1bd8a6269319ee2f3efeeb384503e60f08d672d1fdbfb5add18b36027b54fd73e75b6a71c00cb97d88049c1c5935be93df2ef SHA512 05f6d2f4047ee61b977dc999baae20c7b607bd22182c23a1a9435c1e9a3e5c5a13189cc9976a01d4dc4f82024d907804e8263c4cbbfa1f8c994ea30a1e74addc diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild new file mode 100644 index 000000000000..6eddf2b6683e --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-3.7.2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Downloads and installs third-party clamav signatures" +HOMEPAGE="https://sourceforge.net/projects/unofficial-sigs" +SRC_URI="mirror://sourceforge/unofficial-sigs/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +# We need its user/group. +DEPEND="app-antivirus/clamav" + +# The script relies on either net-misc/socat, or Perl's +# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships +# with IO::Socket::UNIX, so we can leave out net-misc/socat here. +RDEPEND="${DEPEND} + app-crypt/gnupg + dev-lang/perl + net-dns/bind-tools + net-misc/curl" + +src_prepare() { + # First, fix the paths contained in the configuration file. Eventually + # these should be moved under /run, but for now we keep them sync'ed + # with the default clamd.conf. + local pid_default="/var/run/clamd.pid" + local pid_gentoo="/var/run/clamav/clamd.pid" + + # clamd listens on a local socket by default. The clamd_socket + # setting needs to be uncommented in the configuration file for it + # to take effect. + local socket_default="#clamd_socket=\"/var/run/clamd.socket\"" + local socket_gentoo="clamd_socket=\"/var/run/clamav/clamd.sock\"" + + sed -i -e '$a\pkg_mgr="emerge"' \ + -e "\$a\\pkg_rm=\"emerge -C ${PN}\"" \ + -e "s~${socket_default}~${socket_gentoo}~" \ + -e "s~${pid_default}~${pid_gentoo}~" \ + "${PN}.conf" \ + || die "failed to update paths in the ${PN}.conf file" + + # Now, change the script's working directory to point to + # /var/lib/${PN}. We'll need to make this writable by the clamav + # user during src_install. + sed -i -e "s~/usr/unofficial-dbs~/var/lib/${PN}~" "${PN}.conf" \ + || die "failed to update the work_dir variable in ${PN}.conf" + + # Tell the script that it's been configured. + local cfged_default='user_configuration_complete="no"' + local cfged_gentoo='user_configuration_complete="yes"' + sed -i "s/${cfged_default}/${cfged_gentoo}/" "${PN}.conf" \ + || die "failed to set user configuration completed in ${PN}.conf" +} + +src_install() { + dosbin "${PN}.sh" + + # We set the script's working directory to /var/lib/${PN} in + # src_compile, so make sure that the permissions are set correctly + # here. By default, it runs as clamav/clamav. + diropts -m 0755 -o clamav -g clamav + dodir "/var/lib/${PN}" + + insinto /etc/logrotate.d + doins "${PN}-logrotate" + + insinto /etc + doins "${PN}.conf" + + doman "${PN}.8" + dodoc CHANGELOG INSTALL README +} + +pkg_postinst() { + elog '' + elog "You will need to select databases in /etc/${PN}.conf." + elog "For details, please see the ${PN}(8) manual page." + elog '' + elog 'An up-to-date description of the available Sanesecurity' + elog 'databases is available at,' + elog '' + elog ' http://sanesecurity.com/usage/signatures/' + elog '' +} diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-5.6.1.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-5.6.1.ebuild new file mode 100644 index 000000000000..eb77bf7756be --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-5.6.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Download and install third-party clamav signatures" +HOMEPAGE="https://github.com/extremeshok/${PN}" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# We need its user/group. +DEPEND="app-antivirus/clamav" + +# The script relies on either net-misc/socat, or Perl's +# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships +# with IO::Socket::UNIX, so we can leave out net-misc/socat here. +RDEPEND="${DEPEND} + app-crypt/gnupg + dev-lang/perl + net-dns/bind-tools + || ( net-misc/wget net-misc/curl )" + +src_install() { + dosbin "${PN}.sh" + + # The script's working directory (set in the conf file). By default, + # it runs as clamav/clamav. + diropts -m 0755 -o clamav -g clamav + dodir "/var/lib/${PN}" + + insinto /etc/logrotate.d + doins "${FILESDIR}/${PN}.logrotate" + + insinto "/etc/${PN}" + doins config/{master,user}.conf + newins config/os.gentoo.conf os.conf + + doman "${FILESDIR}/${PN}.8" + dodoc README.md +} + +pkg_postinst() { + elog '' + elog "You will need to select databases in /etc/${PN}/master.conf." + elog "For details, please see the ${PN}(8) manual page." + elog '' + elog 'An up-to-date description of the available Sanesecurity' + elog 'databases is available at,' + elog '' + elog ' http://sanesecurity.com/usage/signatures/' + elog '' + ewarn 'The configuration file has moved in the 5.x version!' + ewarn "You should migrate your config from /etc/${PN}.conf to" + ewarn "/etc/${PN}/master.conf" + ewarn '' +} diff --git a/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.8 b/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.8 new file mode 100644 index 000000000000..d7cd1926f2fa --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.8 @@ -0,0 +1,75 @@ + +.\" Manual page for eXtremeSHOK.com ClamAV Unofficial Signature Updater +.TH clamav-unofficial-sigs 8 "07 May 2016" "Version: 5.3.0" "SCRIPT COMMANDS" +.SH NAME +clamav-unofficial-sigs \- Download, test, and install third-party ClamAV signature databases. +.SH SYNOPSIS +.B clamav-unofficial-sigs +.RI [ options ] +.SH DESCRIPTION +\fBclamav-unofficial-sigs\fP provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. It will also generate and install cron, logrotate, and man files. +.SH UPDATES +Script updates can be found at: \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP +.SH OPTIONS +This script follows the standard GNU command line syntax. +.LP +\fB Usage: clamav\-unofficial\-sigs.sh \fR [OPTION] [PATH|FILE] +.TP +\fB \-c, \-\-config \fR Use a specific configuration file or directory eg: '\-c /your/dir' or ' \-c /your/file.name' Note: If a directory is specified the directory must contain atleast: master.conf, os.conf or user.conf Default Directory: configgentoo +.TP +\fB \-F, \-\-force \fR Force all databases to be downloaded, could cause ip to be blocked +.TP +\fB \-h, \-\-help \fR Display this script's help and usage information +.TP +\fB \-V, \-\-version \fR Output script version and date information +.TP +\fB \-v, \-\-verbose \fR Be verbose, enabled when not run under cron +.TP +\fB \-s, \-\-silence \fR Only output error messages, enabled when run under cron +.TP +\fB \-d, \-\-decode\-sig \fR Decode a third\-party signature either by signature name (eg: Sanesecurity.Junk.15248) or hexadecimal string. This flag will 'NOT' decode image signatures +.TP +\fB \-e, \-\-encode\-string \fR Hexadecimal encode an entire input string that can be used in any '*.ndb' signature database file +.TP +\fB \-f, \-\-encode\-formatted \fR Hexadecimal encode a formatted input string containing signature spacing fields '{}, (), *', without encoding the spacing fields, so that the encoded signature can be used in any '*.ndb' signature database file +.TP +\fB \-g, \-\-gpg\-verify \fR GPG verify a specific Sanesecurity database file eg: '\-g filename.ext' (do not include file path) +.TP +\fB \-i, \-\-information \fR Output system and configuration information for viewing or possible debugging purposes +.TP +\fB \-m, \-\-make\-database \fR Make a signature database from an ascii file containing data strings, with one data string per line. Additional information is provided when using this flag +.TP +\fB \-t, \-\-test\-database \fR Clamscan integrity test a specific database file eg: '\-s filename.ext' (do not include file path) +.TP +\fB \-o, \-\-output\-triggered \fR If HAM directory scanning is enabled in the script's configuration file, then output names of any third\-party signatures that triggered during the HAM directory scan +.TP +\fB \-w, \-\-whitelist \fR Adds a signature whitelist entry in the newer ClamAV IGN2 format to 'my\-whitelist.ign2' in order to temporarily resolve a false\-positive issue with a specific third\-party signature. Script added whitelist entries will automatically be removed if the original signature is either modified or removed from the third\-party signature database +.TP +\fB \-\-check\-clamav \fR If ClamD status check is enabled and the socket path is correctly specifiedthen test to see if clamd is running or not +.TP +\fB \-\-install\-all \fR Install and generate the cron, logroate and man files, autodetects the values based on your config files +.TP +\fB \-\-install\-cron \fR Install and generate the cron file, autodetects the values based on your config files +.TP +\fB \-\-install\-logrotate \fR Install and generate the logrotate file, autodetects the values based on your config files +.TP +\fB \-\-install\-man \fR Install and generate the man file, autodetects the values based on your config files +.TP +\fB \-\-remove\-script \fR Remove the clamav\-unofficial\-sigs script and all of its associated files and databases from the system +.TP +.SH SEE ALSO +.BR clamd (8), +.BR clamscan (1) +.SH COPYRIGHT +Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com +.TP +You are free to use, modify and distribute, however you may not remove this notice. +.SH LICENSE +BSD (Berkeley Software Distribution) +.SH BUGS +Report bugs to \fBhttps://github.com/extremeshok/clamav-unofficial-sigs\fP +.SH AUTHOR +Adrian Jon Kriel :: admin@extremeshok.com +Originially based on Script provide by Bill Landry + + diff --git a/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.logrotate b/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.logrotate new file mode 100644 index 000000000000..1d18581588de --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/files/clamav-unofficial-sigs.logrotate @@ -0,0 +1,4 @@ +/var/log/clamav-unofficial-sigs/clamav-unofficial-sigs.log { + create 0640 clamav clamav + missingok +} diff --git a/app-antivirus/clamav-unofficial-sigs/metadata.xml b/app-antivirus/clamav-unofficial-sigs/metadata.xml new file mode 100644 index 000000000000..cb13edbbb596 --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">unofficial-sigs</remote-id> + <remote-id type="github">extremeshok/clamav-unofficial-sigs</remote-id> + </upstream> +</pkgmetadata> |