diff options
author | Hasan ÇALIŞIR <hasan.calisir@psauxit.com> | 2019-08-01 20:55:55 +0300 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2019-08-03 10:31:05 -0400 |
commit | 7d0d56e2f207c695c3be5fdcb685c19c4b08f96a (patch) | |
tree | cdeead8998963ca8464d4edffdb875a2802cafe1 /app-antivirus | |
parent | app-emulation/wine-staging: Drop old (diff) | |
download | gentoo-7d0d56e2f207c695c3be5fdcb685c19c4b08f96a.tar.gz gentoo-7d0d56e2f207c695c3be5fdcb685c19c4b08f96a.tar.bz2 gentoo-7d0d56e2f207c695c3be5fdcb685c19c4b08f96a.zip |
app-antivirus/clamav-unofficial-sigs: new version 6.0.1.
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@psauxit.com>
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav-unofficial-sigs/Manifest | 1 | ||||
-rw-r--r-- | app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-6.0.1.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest index af52a5be8e26..a557118db755 100644 --- a/app-antivirus/clamav-unofficial-sigs/Manifest +++ b/app-antivirus/clamav-unofficial-sigs/Manifest @@ -1 +1,2 @@ DIST clamav-unofficial-sigs-5.6.2.tar.gz 50931 BLAKE2B 6fea42f8f76ae5344c2b96c9203d2b09e755573d03f2b9d3d9ee2a488150fbb6f598e052b730daf12c551920a71fd8daad1dc10002fca12fa4a74554cf7d445e SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427 +DIST clamav-unofficial-sigs-6.0.1.tar.gz 52262 BLAKE2B 9523da749e88c5e93f0986d7d4a234c3b1eff7c207ceb266e63cd76d7cffdf4a85aedf90aa746f7e1c82be97018f40896bbaa2dfd8f749f3c167d3bff74293d7 SHA512 d4f619628c9b2804a6d5ad533adaad72e323bb0604334c045cf92fc550ffb114493653d097b68337b33f51dc1215dc073b4ec9dc42abea8707cb03aefa40b289 diff --git a/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-6.0.1.ebuild b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-6.0.1.ebuild new file mode 100644 index 000000000000..e2a1d380c127 --- /dev/null +++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-6.0.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit user + +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="" + +# 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. We set the owner/group later, in + # pkg_preinst, after the user/group is sure to exist (because we + # create them otherwise). + keepdir "/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_preinst() { + # Should agree with app-antivirus/clamav. We don't actually need + # clamav to function, so it isn't one of our dependencies, and + # that's why we might need to create its user ourselves. + enewgroup clamav + enewuser clamav -1 -1 /dev/null clamav + fowners clamav:clamav "/var/lib/${PN}" +} + +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 '' +} |