1 |
commit: 5ac8bf8b6356551985345cb3881a191433b1716e |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Sat Feb 22 13:19:52 2020 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 21:47:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac8bf8b |
7 |
|
8 |
app-antivirus/fangfrisch: New package |
9 |
|
10 |
Update and verify unofficial Clam Anti-Virus signatures. |
11 |
Designed as a secure and easy-to-configure replacement for |
12 |
clamav-unofficial-sigs. |
13 |
|
14 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
15 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/14740 |
17 |
Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org> |
18 |
|
19 |
app-antivirus/fangfrisch/Manifest | 1 + |
20 |
app-antivirus/fangfrisch/fangfrisch-1.0.1.ebuild | 47 ++++++++++++++++++++++++ |
21 |
app-antivirus/fangfrisch/files/fangfrisch.conf | 22 +++++++++++ |
22 |
app-antivirus/fangfrisch/files/fangfrisch.cron | 4 ++ |
23 |
app-antivirus/fangfrisch/metadata.xml | 23 ++++++++++++ |
24 |
5 files changed, 97 insertions(+) |
25 |
|
26 |
diff --git a/app-antivirus/fangfrisch/Manifest b/app-antivirus/fangfrisch/Manifest |
27 |
new file mode 100644 |
28 |
index 00000000000..1986a4e4749 |
29 |
--- /dev/null |
30 |
+++ b/app-antivirus/fangfrisch/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST fangfrisch-1.0.1.tar.gz 93770 BLAKE2B 00334a8ede062a6cb62305b3881eb520ab13a1acb77e1adf9f5c3158b73760f2867e9326d1985b8eeba89232c7af5a7841f42e27a389d2eb7c4226d964b5a416 SHA512 c1ec85f58a24ccbce701cd7695a94ed0fadadae8cd384590fa801003b6f77417f95e9656a51c59f09ca30589f855c2a5a03f8445e689c3ba8b39a044b0c38d98 |
33 |
|
34 |
diff --git a/app-antivirus/fangfrisch/fangfrisch-1.0.1.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.0.1.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..3348a1f01ef |
37 |
--- /dev/null |
38 |
+++ b/app-antivirus/fangfrisch/fangfrisch-1.0.1.ebuild |
39 |
@@ -0,0 +1,47 @@ |
40 |
+# Copyright 1999-2020 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
46 |
+PYTHON_COMPAT=( python3_{7,8} ) |
47 |
+ |
48 |
+inherit distutils-r1 readme.gentoo-r1 |
49 |
+ |
50 |
+DESCRIPTION="Update and verify unofficial Clam Anti-Virus signatures" |
51 |
+HOMEPAGE="https://github.com/rseichter/fangfrisch https://pypi.org/project/fangfrisch/" |
52 |
+SRC_URI="https://github.com/rseichter/fangfrisch/archive/${PV}.tar.gz -> ${P}.tar.gz" |
53 |
+DOC_CONTENTS=" |
54 |
+Before enabling /etc/cron.d/${PN} you need to configure Fangfrisch and |
55 |
+manually run the 'initdb' command once. |
56 |
+ |
57 |
+See https://rseichter.github.io/fangfrisch/ for more information. |
58 |
+" |
59 |
+ |
60 |
+LICENSE="GPL-3+" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+ |
64 |
+DEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/sqlalchemy-1.3.11[${PYTHON_USEDEP}]" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+ |
68 |
+distutils_enable_tests unittest |
69 |
+ |
70 |
+python_prepare_all() { |
71 |
+ sed -i -e '/SQLAlchemy/d' setup.py || die |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_install_all() { |
76 |
+ insinto /etc |
77 |
+ doins "${FILESDIR}/${PN}.conf" |
78 |
+ insinto /etc/cron.d |
79 |
+ newins "${FILESDIR}/${PN}.cron" ${PN} |
80 |
+ distutils-r1_python_install_all |
81 |
+ readme.gentoo_create_doc |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ FORCE_PRINT_ELOG=1 readme.gentoo_print_elog |
86 |
+} |
87 |
|
88 |
diff --git a/app-antivirus/fangfrisch/files/fangfrisch.conf b/app-antivirus/fangfrisch/files/fangfrisch.conf |
89 |
new file mode 100644 |
90 |
index 00000000000..d1641f56540 |
91 |
--- /dev/null |
92 |
+++ b/app-antivirus/fangfrisch/files/fangfrisch.conf |
93 |
@@ -0,0 +1,22 @@ |
94 |
+# See https://rseichter.github.io/fangfrisch/ for detailed documentation |
95 |
+ |
96 |
+[DEFAULT] |
97 |
+db_url = sqlite:////var/lib/fangfrisch/db.sqlite |
98 |
+local_directory = /var/lib/clamav |
99 |
+on_update_exec = clamdscan --reload |
100 |
+ |
101 |
+[malwarepatrol] |
102 |
+enabled = yes |
103 |
+# Replace with your personal Malwarepatrol receipt |
104 |
+receipt = abcd1234 |
105 |
+ |
106 |
+[sanesecurity] |
107 |
+enabled = yes |
108 |
+ |
109 |
+[securiteinfo] |
110 |
+enabled = yes |
111 |
+# Replace with your personal SecuriteInfo customer ID |
112 |
+customer_id = abcdef123456 |
113 |
+ |
114 |
+[urlhaus] |
115 |
+enabled = yes |
116 |
|
117 |
diff --git a/app-antivirus/fangfrisch/files/fangfrisch.cron b/app-antivirus/fangfrisch/files/fangfrisch.cron |
118 |
new file mode 100644 |
119 |
index 00000000000..55595c8e20c |
120 |
--- /dev/null |
121 |
+++ b/app-antivirus/fangfrisch/files/fangfrisch.cron |
122 |
@@ -0,0 +1,4 @@ |
123 |
+# HOME=/var/lib/fangfrisch |
124 |
+# LOG_LEVEL=WARNING |
125 |
+# minute hour day-of-month month day-of-week user command |
126 |
+# */10 * * * * clamav fangfrisch -c /etc/fangfrisch.conf refresh |
127 |
|
128 |
diff --git a/app-antivirus/fangfrisch/metadata.xml b/app-antivirus/fangfrisch/metadata.xml |
129 |
new file mode 100644 |
130 |
index 00000000000..86c7e98f50e |
131 |
--- /dev/null |
132 |
+++ b/app-antivirus/fangfrisch/metadata.xml |
133 |
@@ -0,0 +1,23 @@ |
134 |
+<?xml version="1.0" encoding="UTF-8"?> |
135 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
136 |
+<pkgmetadata> |
137 |
+ <maintainer type="person"> |
138 |
+ <email>gentoo@××××××××.de</email> |
139 |
+ <name>Ralph Seichter</name> |
140 |
+ </maintainer> |
141 |
+ <maintainer type="person"> |
142 |
+ <email>dilfridge@g.o</email> |
143 |
+ <name>Andreas K. Huettel</name> |
144 |
+ </maintainer> |
145 |
+ <longdescription lang="en"> |
146 |
+ Fangfrisch (German for "freshly caught") is a sibling of the |
147 |
+ Clam Anti-Virus freshclam utility. It allows downloading virus |
148 |
+ definition files that are not official ClamAV canon, e.g. from |
149 |
+ Sanesecurity, URLhaus and others. Fangfrisch was designed with |
150 |
+ security in mind, to be run by an unprivileged user only. |
151 |
+ </longdescription> |
152 |
+ <upstream> |
153 |
+ <remote-id type="github">rseichter/fangfrisch</remote-id> |
154 |
+ <remote-id type="pypi">fangfrisch</remote-id> |
155 |
+ </upstream> |
156 |
+</pkgmetadata> |