1 |
commit: 7d0d56e2f207c695c3be5fdcb685c19c4b08f96a |
2 |
Author: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit <DOT> com> |
3 |
AuthorDate: Thu Aug 1 17:55:55 2019 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 3 14:31:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d0d56e2 |
7 |
|
8 |
app-antivirus/clamav-unofficial-sigs: new version 6.0.1. |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit.com> |
12 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
13 |
|
14 |
app-antivirus/clamav-unofficial-sigs/Manifest | 1 + |
15 |
.../clamav-unofficial-sigs-6.0.1.ebuild | 65 ++++++++++++++++++++++ |
16 |
2 files changed, 66 insertions(+) |
17 |
|
18 |
diff --git a/app-antivirus/clamav-unofficial-sigs/Manifest b/app-antivirus/clamav-unofficial-sigs/Manifest |
19 |
index af52a5be8e2..a557118db75 100644 |
20 |
--- a/app-antivirus/clamav-unofficial-sigs/Manifest |
21 |
+++ b/app-antivirus/clamav-unofficial-sigs/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST clamav-unofficial-sigs-5.6.2.tar.gz 50931 BLAKE2B 6fea42f8f76ae5344c2b96c9203d2b09e755573d03f2b9d3d9ee2a488150fbb6f598e052b730daf12c551920a71fd8daad1dc10002fca12fa4a74554cf7d445e SHA512 79978db065a22d778490d0a2673f5a0bb7ab73e42de64563e7d26ac23459f7e5b2e73b0548e1ea6483e3c5f43eed65cdbc6814037cc0c46a339366a0150e5427 |
24 |
+DIST clamav-unofficial-sigs-6.0.1.tar.gz 52262 BLAKE2B 9523da749e88c5e93f0986d7d4a234c3b1eff7c207ceb266e63cd76d7cffdf4a85aedf90aa746f7e1c82be97018f40896bbaa2dfd8f749f3c167d3bff74293d7 SHA512 d4f619628c9b2804a6d5ad533adaad72e323bb0604334c045cf92fc550ffb114493653d097b68337b33f51dc1215dc073b4ec9dc42abea8707cb03aefa40b289 |
25 |
|
26 |
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 |
27 |
new file mode 100644 |
28 |
index 00000000000..e2a1d380c12 |
29 |
--- /dev/null |
30 |
+++ b/app-antivirus/clamav-unofficial-sigs/clamav-unofficial-sigs-6.0.1.ebuild |
31 |
@@ -0,0 +1,65 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit user |
38 |
+ |
39 |
+DESCRIPTION="Download and install third-party clamav signatures" |
40 |
+HOMEPAGE="https://github.com/extremeshok/${PN}" |
41 |
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="" |
47 |
+ |
48 |
+# The script relies on either net-misc/socat, or Perl's |
49 |
+# IO::Socket::UNIX. We already depend on Perl, and Gentoo's Perl ships |
50 |
+# with IO::Socket::UNIX, so we can leave out net-misc/socat here. |
51 |
+RDEPEND="${DEPEND} |
52 |
+ app-crypt/gnupg |
53 |
+ dev-lang/perl |
54 |
+ net-dns/bind-tools |
55 |
+ || ( net-misc/wget net-misc/curl )" |
56 |
+ |
57 |
+src_install() { |
58 |
+ dosbin "${PN}.sh" |
59 |
+ |
60 |
+ # The script's working directory (set in the conf file). By default, |
61 |
+ # it runs as clamav/clamav. We set the owner/group later, in |
62 |
+ # pkg_preinst, after the user/group is sure to exist (because we |
63 |
+ # create them otherwise). |
64 |
+ keepdir "/var/lib/${PN}" |
65 |
+ |
66 |
+ insinto /etc/logrotate.d |
67 |
+ doins "${FILESDIR}/${PN}.logrotate" |
68 |
+ |
69 |
+ insinto "/etc/${PN}" |
70 |
+ doins config/{master,user}.conf |
71 |
+ newins config/os.gentoo.conf os.conf |
72 |
+ |
73 |
+ doman "${FILESDIR}/${PN}.8" |
74 |
+ dodoc README.md |
75 |
+} |
76 |
+ |
77 |
+pkg_preinst() { |
78 |
+ # Should agree with app-antivirus/clamav. We don't actually need |
79 |
+ # clamav to function, so it isn't one of our dependencies, and |
80 |
+ # that's why we might need to create its user ourselves. |
81 |
+ enewgroup clamav |
82 |
+ enewuser clamav -1 -1 /dev/null clamav |
83 |
+ fowners clamav:clamav "/var/lib/${PN}" |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ elog '' |
88 |
+ elog "You will need to select databases in /etc/${PN}/master.conf." |
89 |
+ elog "For details, please see the ${PN}(8) manual page." |
90 |
+ elog '' |
91 |
+ elog 'An up-to-date description of the available Sanesecurity' |
92 |
+ elog 'databases is available at,' |
93 |
+ elog '' |
94 |
+ elog ' http://sanesecurity.com/usage/signatures/' |
95 |
+ elog '' |
96 |
+} |