diff options
Diffstat (limited to 'app-antivirus/clamav-unofficial-sigs')
6 files changed, 248 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..834791082cea --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/Manifest @@ -0,0 +1,9 @@ +AUX clamav-unofficial-sigs.8 4568 SHA256 6bd8774a3ae3d054f3a9cd8b525e13ddbe32d33fc46fa88733f5430e51fcb5de SHA512 8e688281c6918ea8c13f5d76c63fee65b6e3378ca1d2e92033a741b7f02d12607d838484075e0d3ae8d99680a5b235acee062fc80c63f7e5577cfee575b56573 WHIRLPOOL 471b5ae57e9918037da3b5e5cbba3edd835aab2be8d3241397a642f1fb53052f389ad69e46d745536024afda8209f85a691901ef6898e450cacc66bc812f6ea7 +AUX clamav-unofficial-sigs.logrotate 109 SHA256 48d181052c53f96b13b28b282d15af5794c69125e5c682dfa22a3632c5b34d58 SHA512 3d79caf1bbc29218aacda9c6c411b6b9e827644c3a89a3a1b9e0d89baeb7927cdbda3322c9b5a5186e53f0efa598e165d10cfa698936a687bd6279f6e3866830 WHIRLPOOL 6b19327c5b571f8862c4ddbe4f9dddf940b2359629e3b1d11e89865dc64e9025af69140b882e2615844d45b382e0c6f25d74a3a8371c26ce08aaaa15b8176dff +DIST clamav-unofficial-sigs-3.7.2.tar.gz 38549 SHA256 96e98e6e4434c5950fa9831c6a43236fed7eabae44beded16171305cf3f9bdb9 SHA512 ee07bf521cca229bc85acb887c8e520149955732797a9d220e24f09cb9e89f9bd189ad77dc781c03c60bdaaec2bfa91a6c96cf7a0b689759cddf3ff231b8b0a4 WHIRLPOOL af4925c8a9bb8c09472131f98026b809da13e122a530c4a48614014b8156a259d37303cb1042da98d0bd8b0f4abef3cd7c05f2d549f87e1b7cd533d4a8d4d188 +DIST clamav-unofficial-sigs-5.6.1.tar.gz 51024 SHA256 5c26410470e1010d0bd167fc8ae75a7035c6c0977f2f0af1da4b004064e43c81 SHA512 a3660abe301e96104393d337ff2b7f73324241bb921d71626e4a6ea4cec39709ce76dbb9432fd048c66441f0acbb1b92fa561397669ffdca98f463d7da8e7402 WHIRLPOOL fac1394ace0ae81ba1b57dab54aef659b8d58716341d5962f07d97fe7487acec3d994d52073b989128adcf2e43991aef277db166048d7bbd328595b2cecdf3ad +EBUILD clamav-unofficial-sigs-3.7.2.ebuild 2808 SHA256 d937c17410654cc27588710f34b53e4a6ab85e2c87b487b4da558ce4c869dfb1 SHA512 2174641a412029828d0746c89c5b98074a74da636cd1de3e8f9a589708917b684a1a73625a2e9ebb064297a62cbb8572c62f2ca55eb568b4e5c0b9ff7d995a34 WHIRLPOOL d64d25d4b6ebfab0ff53756012cb6ce3833d74711297149a95d67825c2a4c3b852afa6f58d0e43929306828d217a28eab2f1a6404f0f259b6d661917a4916f96 +EBUILD clamav-unofficial-sigs-5.6.1.ebuild 1607 SHA256 d11a4182c57a53908e0181b6a5c072ce0cd404a055a6bf0898a06e17a3cb9e44 SHA512 6a601824bc1aba3e6f9af85a6a381075cdecbdaee6ebe3feda4dc6c11b83e97e5b67409b190b114e8cbca1daf8e16ce121956beb4200ef44791dbe023f9960fb WHIRLPOOL a01a5a07fb74cb64f6a48b0bd020998c70f72b18c0a16b9f42d9c783cec144b3c157b8f71eaf2a7e2c52f70fe2e5640bfde01394e19113a5a7f1e240cd330877 +MISC ChangeLog 5027 SHA256 aac524ea5d70f589af14d8e60261d802542133af926765c9c9f1b8ee63801584 SHA512 c8330e7abc59677996a312b902e7d214f3b7d7001141579297c6c0041f7063b15f312da383cddee10e29267022f8c865f7ab5e498f572ca053902f799d2c89e7 WHIRLPOOL de65baa392293aff6b3f43e1851f6987ff4feae43a57c2e043e6a607976b8bc0842d256d1fbe01fa23ba5cd5230cfcbbfdafd05b1ffc5a41ca69febb5a7da4f2 +MISC ChangeLog-2015 1003 SHA256 5ad0d278eb740a31c71ac03d700cd1960ad53d49e682b58613770e5f0bd9242a SHA512 a6d171097d010cdb4a4b93bbd5396faed7fe6b8b6908ddddb418d52309532caa9c638411d9cf919017d7e9c912f1a9703f5eaa0a53bfb5e7278a24f3cb456432 WHIRLPOOL 5ad9249c8fcd762d2aa6e7303adf80d4b4d4ff194aedaaf54484ca8a7d430843b184c72982ef9d9cc16320b8e9fb549597e7c9a35ebeda89e5b284654a6eaede +MISC metadata.xml 383 SHA256 f703f540e3e956de8b940027dcd182ae8c736ec83455dc411fb4055489463401 SHA512 05f6d2f4047ee61b977dc999baae20c7b607bd22182c23a1a9435c1e9a3e5c5a13189cc9976a01d4dc4f82024d907804e8263c4cbbfa1f8c994ea30a1e74addc WHIRLPOOL f816b8258c84812da356a11f6fca1a29551af0735876d35c52368c0e05bcaddef918bd810249bf39a3055245d715668528afbc688c7e6b0d3a853ee8db0dbfef 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> |