From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15C4F1382C5 for ; Tue, 15 Dec 2020 04:09:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 647F2E087F; Tue, 15 Dec 2020 04:09:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3FF3CE087F for ; Tue, 15 Dec 2020 04:09:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 69A57340E9E for ; Tue, 15 Dec 2020 04:09:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CFC0F53 for ; Tue, 15 Dec 2020 04:09:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1608005342.18d44b335931bdabd80f1f237baab8779f8adece.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/fangfrisch/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-antivirus/fangfrisch/Manifest app-antivirus/fangfrisch/fangfrisch-1.3.0.ebuild X-VCS-Directories: app-antivirus/fangfrisch/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 18d44b335931bdabd80f1f237baab8779f8adece X-VCS-Branch: master Date: Tue, 15 Dec 2020 04:09:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b74b7efb-a054-4357-80e9-65b67d2bb32a X-Archives-Hash: 5153a38413c3b6eb98d76e9c84de636f commit: 18d44b335931bdabd80f1f237baab8779f8adece Author: Ralph Seichter seichter de> AuthorDate: Sat Nov 14 18:30:51 2020 +0000 Commit: Sam James gentoo org> CommitDate: Tue Dec 15 04:09:02 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d44b33 app-antivirus/fangfrisch: Bump to version 1.3.0 Upstream feature release. Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Ralph Seichter seichter.de> Closes: https://github.com/gentoo/gentoo/pull/18260 Signed-off-by: Sam James gentoo.org> app-antivirus/fangfrisch/Manifest | 1 + app-antivirus/fangfrisch/fangfrisch-1.3.0.ebuild | 69 ++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/app-antivirus/fangfrisch/Manifest b/app-antivirus/fangfrisch/Manifest index 45c9e0c1f8b..324c2f1d531 100644 --- a/app-antivirus/fangfrisch/Manifest +++ b/app-antivirus/fangfrisch/Manifest @@ -1 +1,2 @@ DIST fangfrisch-1.2.0.tar.gz 113088 BLAKE2B 9fb5f4b838e6337128c9e988f5749864cadacb74c9e3006f29cf8b976592af88c00ff5359cd70e4d6901e24cfc01b061861b7b1a563a82d66b2d71c970627c26 SHA512 6f6c0cfc4d840f99186c83e6109c6234ff5bfb44e19bcd3309056347392e46da56e17106259508864b05397d39ea92500ab6863b50d55efc790d88b59f88ee3b +DIST fangfrisch-1.3.0.tar.gz 114361 BLAKE2B eca124f02f814d2915c4dbba45b6e4dc620e250730a32b34d3f5f5eaa33945e697d2d887f29251f1f8a3b1813476a54092091235a786e84695a3bc1cadebad28 SHA512 9c138737908a02efa5c9b4c6792a31e2a4908f8ab27e8cecab78612f812ab151afef75a405f47695779a949485aa88a3a5830efd02344ec334e6f37425cffe49 diff --git a/app-antivirus/fangfrisch/fangfrisch-1.3.0.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.3.0.ebuild new file mode 100644 index 00000000000..5de7fdc59bb --- /dev/null +++ b/app-antivirus/fangfrisch/fangfrisch-1.3.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit distutils-r1 readme.gentoo-r1 + +DESCRIPTION="Update and verify unofficial Clam Anti-Virus signatures" +HOMEPAGE="https://github.com/rseichter/fangfrisch https://pypi.org/project/fangfrisch/" +SRC_URI="https://github.com/rseichter/fangfrisch/archive/${PV}.tar.gz -> ${P}.tar.gz" + +MY_CONF="/etc/${PN}.conf" +MY_DBDIR="/var/lib/${PN}" +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS="See https://rseichter.github.io/fangfrisch/ for the official +documentation. + +### Fresh installations: + +Modify ${MY_CONF} according to your preferences. +Assuming you place the database into ${MY_DBDIR} +(recommended), execute the following commands in a root shell: + +mkdir -m 0770 ${MY_DBDIR} +chgrp clamav ${MY_DBDIR} +sudo -u clamav -- fangfrisch -c ${MY_CONF} initdb + +You can now enable /etc/cron.d/${PN} for periodic updates. + +### Alternative: Updating from release 1.0.1: + +Either create a fresh database or manually delete all existing +database tables, then run the initdb command as shown above." + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-1.3.11[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_prepare_all() { + sed -i -e '/SQLAlchemy/d' setup.py || die + # Due to the nature of Fangfrisch, most tests require network + # connectivity. Upstream CI reports show that the tests are + # successful, so instead of a pick-and-choose approach, the + # complete tests directory is removed in this ebuild. + if [ -d tests ]; then + rm -r tests || die + fi + distutils-r1_python_prepare_all +} + +python_install_all() { + insinto /etc + doins "${FILESDIR}/${PN}.conf" + insinto /etc/cron.d + newins "${FILESDIR}/${PN}.cron" ${PN} + distutils-r1_python_install_all + readme.gentoo_create_doc +} + +pkg_postinst() { + FORCE_PRINT_ELOG=1 readme.gentoo_print_elog +}