diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-18 19:14:06 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-18 19:14:06 +0000 |
| commit | e6fc564c40d23f49a149fdae8513f6d0309ec47a (patch) | |
| tree | 3fe00b469936a030ce8caec8af8ba21f23e4c225 /app-antivirus | |
| parent | ba4c1875f8c9ddf19f301d06ec0b76f59ea23a2a (diff) | |
| download | baldeagleos-repo-e6fc564c40d23f49a149fdae8513f6d0309ec47a.tar.gz baldeagleos-repo-e6fc564c40d23f49a149fdae8513f6d0309ec47a.tar.xz baldeagleos-repo-e6fc564c40d23f49a149fdae8513f6d0309ec47a.zip | |
Adding metadata
Diffstat (limited to 'app-antivirus')
| -rw-r--r-- | app-antivirus/fangfrisch/fangfrisch-1.9.2-r1.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/app-antivirus/fangfrisch/fangfrisch-1.9.2-r1.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.9.2-r1.ebuild new file mode 100644 index 000000000000..3e033de78acf --- /dev/null +++ b/app-antivirus/fangfrisch/fangfrisch-1.9.2-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..14} ) + +inherit distutils-r1 readme.gentoo-r1 systemd + +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}.gh.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: + +You can now enable /etc/cron.d/${PN} for periodic updates or +systemctl enable --now ${PN}.timer" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DOCS=(docs/fangfrisch.pdf) +HTML_DOCS=(docs/index.html) + +DEPEND=" + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-1.4.0[${PYTHON_USEDEP},sqlite] +" +RDEPEND="${DEPEND}" + +distutils_enable_tests unittest + +python_install_all() { + insinto /etc + doins "${FILESDIR}/${PN}.conf" + insinto /etc/cron.d + newins "${FILESDIR}/${PN}.cron" "${PN}" + exeinto /etc + doexe "${FILESDIR}/${PN}-has-news.sh" + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_dounit "${FILESDIR}/${PN}.timer" + distutils-r1_python_install_all + readme.gentoo_create_doc + + keepdir "${MY_DBDIR}" + fowners clamav:clamav "${MY_DBDIR}" +} + +pkg_postinst() { + readme.gentoo_print_elog + if [[ ! -e "${EROOT}${MY_DBDIR}/db.sqlite" ]]; then + elog + elog "Execute the following command to finish installation:" + elog + elog "# emerge --config \"=${CATEGORY}/${PF}\"" + fi +} + +pkg_config() { + einfo + einfo "Initializing database." + einfo + + fangfrisch -c "${MY_CONF}" initdb + chown clamav:clamav "${MY_DBDIR}/db.sqlite" +} |
