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 F0E6B1382C5 for ; Fri, 15 May 2020 20:13:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D7A1E0ADE; Fri, 15 May 2020 20:13:31 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 D9FD9E0ADE for ; Fri, 15 May 2020 20:13:30 +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 4171834F18F for ; Fri, 15 May 2020 20:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C751118F for ; Fri, 15 May 2020 20:13:24 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1589573588.c10a0883a161b7ca01c27c3d65abdc7a424430be.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/fangfrisch/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-antivirus/fangfrisch/fangfrisch-1.2.0-r1.ebuild X-VCS-Directories: app-antivirus/fangfrisch/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: c10a0883a161b7ca01c27c3d65abdc7a424430be X-VCS-Branch: master Date: Fri, 15 May 2020 20:13:24 +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: 50c238d1-8b98-48f1-9d04-67ceb3194fa3 X-Archives-Hash: 7ef52a4ef5fa9c7b064756bf6a580c15 commit: c10a0883a161b7ca01c27c3d65abdc7a424430be Author: Ralph Seichter seichter de> AuthorDate: Tue May 12 14:05:14 2020 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Fri May 15 20:13:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c10a0883 app-antivirus/fangfrisch: Disable unit tests 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. Closes: https://bugs.gentoo.org/721794 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Ralph Seichter seichter.de> Closes: https://github.com/gentoo/gentoo/pull/15765 Signed-off-by: Andreas K. Hüttel gentoo.org> .../fangfrisch/fangfrisch-1.2.0-r1.ebuild | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/app-antivirus/fangfrisch/fangfrisch-1.2.0-r1.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.2.0-r1.ebuild new file mode 100644 index 00000000000..8aca5a69d47 --- /dev/null +++ b/app-antivirus/fangfrisch/fangfrisch-1.2.0-r1.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} ) + +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 +}