add clamav-unofficial-sigs-5.6.2 (systemd support)
This commit is contained in:
parent
3d88ee5a99
commit
29349cb503
|
@ -0,0 +1,4 @@
|
|||
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-5.6.2.tar.gz 50931 SHA256 233404d767fcb7d2b82defef831d584cbbcc7105f6bbc586d69a0a960bc0d4df SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427 WHIRLPOOL a427937e99afad89ea6b0ee14599024a3877d19894da16cda631980cc0daa236560b1c1a899d2b8ac04a886e29562ad9ec6eeaa1048ee4b765bdc333ad003eaf
|
||||
EBUILD clamav-unofficial-sigs-5.6.2.ebuild 1939 SHA256 9ca960f5092510a4432aa3385dd1ccf6ad25cc9e1a0bff8a1f1fde1a4ea5c3b8 SHA512 5b2190bd677122fd5ac6b333b617febab7f793d06cc686c324ca74eda7a72eef4c0ec5b778caa79948631dc143b3adaa818bf25074f207b9458a57587b93fc36 WHIRLPOOL 71be946f2484c922bdce72ca46b89759116910d142a3c944199cb09169afe45235619692917e29ee5c1a7be6e7e0ad75c9af4eb79e30ead19097479d672a3e3e
|
|
@ -0,0 +1,67 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd
|
||||
|
||||
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
|
||||
|
||||
sed -i 's#ExecStart=/usr/local/sbin/clamav-unofficial-sigs.sh#ExecStart=/usr/sbin/clamav-unofficial-sigs.sh#' systemd/clamav-unofficial-sigs.service || die
|
||||
systemd_dounit "systemd/clamav-unofficial-sigs.service"
|
||||
systemd_dounit "systemd/clamav-unofficial-sigs.timer"
|
||||
systemd_dounit "systemd/clamd.scan.service"
|
||||
}
|
||||
|
||||
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 ''
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
/var/log/clamav-unofficial-sigs/clamav-unofficial-sigs.log {
|
||||
create 0640 clamav clamav
|
||||
missingok
|
||||
}
|
Loading…
Reference in New Issue